Date: Wed, 09 Jul 2008 18:37:41 -0500 From: Derek Ragona <derek@computinginnovations.com> To: Nicolas Letellier <nicolas@nicoelro.net>, FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: problem with sendmail and su Message-ID: <6.0.0.22.2.20080709183556.026b1890@mail.computinginnovations.com> In-Reply-To: <20080709124404.30ed661d@nogrod.nicoelro.net> References: <20080709124404.30ed661d@nogrod.nicoelro.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.0.22.2.20080709183556.026b1890>