Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jan 2008 10:46:30 +0000
From:      Jim Bow <jimbow@darq.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: mail from: field question
Message-ID:  <4785F786.1010706@darq.net>
In-Reply-To: <443at70zy1.fsf@be-well.ilk.org>
References:  <47834FB2.9010907@darq.net> <443at70zy1.fsf@be-well.ilk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Lowell Gilbert wrote:

> The answer will probably depend on the MTA you're using (which you
> didn't mention, so it's probably sendmail)

You've guessed it. Its out-of-the-box sendmail.

> Run the script from the command line and in particular just call 
 > mail the way the script does.

If I run the script (or just send a mail) on the command line using 
sudo, then it's sent as me and not root. Same happens if I su to root first.

The only way I can get it to be sent from root is if I explicitly login 
as root.

>  Make sure the results are the same (if they're not, the MTA isn't
 > the problem).

So it looks like it isn't. What can be the cause of this then?


Thanks for your help.


JimBow



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4785F786.1010706>