On 02/26/2010 01:25 PM, Wietse Venema wrote:
> Pavel Urban:
>> Hello,
>>
>> I've tried to migrate some 90 servers from Sendmail to Postfix, trying
>> to keep the behavior as similar as possible. They were all simple null
>> clients, sending mail via relayhost only. After some time I've noticed
>> that some servers are sending their daily logwatch outputs with
>>
>> From: "r...@n2rhps88.localdomain" <r...@n2rhps88.localdomain>
>>
>> , while others have
>>
>> From: Root n2rhps23 PGRLF <u...@o2bs.com>
> 
> Postfix does NOT CREATE these headers. 
> 
> Postfix RECEIVES these headers.
> 
> Postfix-generated headers look like
> 
>     From: u...@example.com (fullname)
> 
> This non-standard format will eventually be fixed when I have time.
> 
>       Wietse
> 

That's strange. It seems like logwatch invokes 'sendmail -t' and creates
headers like:

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?


-- 
***********************************************************************
Pavel Urban (pavel.urban (at) o2bs.com)
O2 BS system disaster
Telefonica O2 Business Solutions, spol. s r.o. - www.o2bs.com
***********************************************************************
   Vegetables should not operate electronic equipment.
          Computer Stupidities, http://rinkworks.com/stupid/
***********************************************************************

Reply via email to