From owner-freebsd-questions Sat Nov 10 11:39: 6 2001 Delivered-To: freebsd-questions@freebsd.org Received: from pr0n.kutulu.org (pr0n.kutulu.org [151.196.107.157]) by hub.freebsd.org (Postfix) with ESMTP id E316937B417 for ; Sat, 10 Nov 2001 11:39:03 -0800 (PST) Received: from cc191573g (kutulu@cc191573-g.longhill1.md.home.com [24.37.104.136]) by pr0n.kutulu.org (8.11.6/8.11.6) with SMTP id fAAJcpk25644 for ; Sat, 10 Nov 2001 14:38:54 -0500 (EST) (envelope-from kutulu@kutulu.org) Message-ID: <006501c16a1e$acfc8d00$88682518@longhill1.md.home.com> From: "Kutulu" To: References: <20011110135827.C36908@keyslapper.org> <002501c16a1a$13204360$88682518@longhill1.md.home.com> <20011110142200.D36908@keyslapper.org> Subject: Re: Security Check output mailing? Date: Sat, 10 Nov 2001 14:34:09 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----- Original Message ----- From: "Louis LeBlanc" To: ; Sent: Saturday, November 10, 2001 2:22 PM Subject: Re: Security Check output mailing? > Which I assume means it gets sent to root@localhost. But the From > header is still 'undisclosed-recipients'. > > I know this may be risking going OT, but I do have the following in my > sendmail.mc file: define(`confNO_RCPT_ACTION', `add-to-undisclosed') The reason the From: header says this is that the script doesn't provide it's own From: header. Since this is being sent locally, it doesn't go through the SMTP process. The local mailer is called, passed the account name, and the body of the mail including (or not including) any normal mail headers, is written to your mailbox. That's where procmail picks it up and discards it. > Any idea how to get security to be sent explicitly to > root@keyslapper.org? Edit /etc/security to echo mail headers at the top. I did this in a hurry and haven't bothered to clean it up, but something like this: host=`hostname` [ $sflag = FALSE ] && echo "From: Charlie Root " [ $sflag = FALSE ] && echo "To: Kutulu " [ $sflag = FALSE ] && echo "Subject: ${host} daily security output log" [ $sflag = FALSE ] && echo "" --K To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message