OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: all outgoing mail is written as userlocalhost.localdomain

From: Aaron Harwood (aharwoodcs.mu.oz.au)
Date: Mon Nov 21 2005 - 05:51:33 CST


On 21/11/2005, at 10:37 PM, Sandy Drobic wrote:

> Aaron Harwood wrote:
>
>
>> With the above settings, problem remains.
>>
>>
>>
> Okay, now it's getting a bit weird (not unusual on a monday after
> all). I don't think there is a problem with your basic
> configuration any more. Let's have a look at other possiblilities
> that might account for the rewriting of the address. Could you post
> the logentries of a message from client connect to delivery in /var/
> log/maillog?

Nov 21 22:46:03 home postfix/postfix-script: stopping the Postfix
mail system
Nov 21 22:46:03 home postfix/master[5633]: terminating on signal 15
Nov 21 22:46:06 home postfix/postfix-script: starting the Postfix
mail system
Nov 21 22:46:06 home postfix/master[6024]: daemon started -- version
2.1.5
Nov 21 22:46:40 home sendmail[6064]: jALBke5u006064: from=aharwood,
size=54, class=0, nrcpts=1,
msgid=<200511211146.jALBke5u006064localhost.localdomain>,
relay=aharwoodlocalhost
Nov 21 22:46:40 home postfix/smtpd[6065]: connect from
localhost.localdomain[127.0.0.1]
Nov 21 22:46:40 home postfix/smtpd[6065]: 1B3A6538B20:
client=localhost.localdomain[127.0.0.1]
Nov 21 22:46:40 home postfix/cleanup[6068]: 1B3A6538B20: message-
id=<200511211146.jALBke5u006064localhost.localdomain>
Nov 21 22:46:40 home postfix/qmgr[6026]: 1B3A6538B20:
from=<aharwoodlocalhost.localdomain>, size=593, nrcpt=1 (queue active)
Nov 21 22:46:40 home sendmail[6064]: jALBke5u006064:
to=aharwoodaerosoul.com.au, ctladdr=aharwood (500/500),
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30054, relay=
[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as
1B3A6538B20)
Nov 21 22:46:40 home postfix/smtpd[6065]: disconnect from
localhost.localdomain[127.0.0.1]
Nov 21 22:46:40 home postfix/local[6069]: 1B3A6538B20:
to=<aharwoodaerosoul.com.au>, relay=local, delay=0, status=sent
(delivered to mailbox)
Nov 21 22:46:40 home postfix/qmgr[6026]: 1B3A6538B20: removed

I've tried with -v set in master.cf for cleanup and trivial-
rewrite ... it has some
extra clues, but I couldn't make much of them.
It would appear that smptd is connecting with localhost.localdomain
and forcing this as
the sending address. Cleanup and trivial rewrite don't seem to change
localhost.localdomain
into what it should be.

> Rewriting is possible with /etc/postfix/canonical, etc/postfix/
> generical (postfix 2.2+), /etc/postfix/virtual, /etc/postfix/
> aliases. Please check if there are some rewriting matches that
> might explain your problem.
>

Ummm... I'll start looking around :]

--Aaron