From owner-freebsd-questions@FreeBSD.ORG Wed Jul 9 23:38:09 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D6961065670 for ; Wed, 9 Jul 2008 23:38:09 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (mail.computinginnovations.com [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id A0D8D8FC13 for ; Wed, 9 Jul 2008 23:38:08 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.14.2/8.14.2) with ESMTP id m69NbxKn094385; Wed, 9 Jul 2008 18:38:00 -0500 (CDT) (envelope-from derek@computinginnovations.com) Message-Id: <6.0.0.22.2.20080709183556.026b1890@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Wed, 09 Jul 2008 18:37:41 -0500 To: Nicolas Letellier , FreeBSD Questions From: Derek Ragona In-Reply-To: <20080709124404.30ed661d@nogrod.nicoelro.net> References: <20080709124404.30ed661d@nogrod.nicoelro.net> Mime-Version: 1.0 X-Antivirus: avast! (VPS 080709-1, 07/09/2008), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: ClamAV 0.93/6806/Wed Apr 16 15:50:16 2008 on betty.computinginnovations.com X-Virus-Status: Clean X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: m69NbxKn094385 X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: problem with sendmail and su X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2008 23:38:09 -0000 At 05:44 AM 7/9/2008, Nicolas Letellier wrote: >Hello. > >I use FreeBSD 7 with sendmail. I have a problem for sending email. More >precisely, with the sender of the mail. >When I'm logged to my machine in root, the mail is sent with >"root@mymachine.com" with sender. OK, no problems. >When I'm logged to my machine in nicolas, the mail is sent with >"nicolas@mymachine.com" with sender. OK, no problems. > >However, when I'm logged in nicolas to my machine, and if I do a "su >root" or "su - root", and I send a mail, the sender will be >"nicolas@mymachine.com" and not "root@mymachine.com". > >It's a problem, because I done a "su" to be logged as root. > >I don't have this problem with a FreeBSD/Postfix. > >Thanks for your advices and helps. I don't understand this problem. > >Regards, > >-- > - Nicolas. That is exactly working as designed. The reason sendmail sends the mail as your actual login user is so you cannot spoof so easily. If you have certain emails like system reports you are sending and want them sent as root, add them to roots crontab file. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.