On Fri, Feb 26, 2010 at 02:20:06PM +0100, Pavel Urban wrote:

> open(OUTFILE,"|$Config{'mailer'}") or die "Can't execute
> $Config{'mailer'}: $!\n";
> print OUTFILE "To: $Config{'mailto'}\n";
> print OUTFILE "From: $Config{'mailfrom'}\n";
> print OUTFILE "Subject: Logwatch for $Config{'hostname'} (${OStitle})\n";
> 
> , when $Config{'mailfrom'} is 'root' and $Config{'mailer'} is 'sendmail
> -t'. Anybody knows what could make the final substitution, then?

Postfix does not rewrite the "From:" header if it is already present.
To get the default "From:" header, don't supply one at all.

-- 
        Viktor.

P.S. Morgan Stanley is looking for a New York City based, Senior Unix
system/email administrator to architect and sustain our perimeter email
environment.  If you are interested, please drop me a note.

Reply via email to