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: Sandy Drobic (postfix-usersjapantest.homelinux.com)
Date: Mon Nov 21 2005 - 06:39:16 CST


Aaron Harwood wrote:

>
> Here is what happens when I try to send mail to a destination outside
> of my domain:
>
> Nov 21 23:27:46 home postfix/smtpd[6286]: connect from
> localhost.localdomain[127.0.0.1]
> Nov 21 23:27:46 home postfix/smtpd[6286]: 4D10C538B20:
> client=localhost.localdomain[127.0.0.1]

Okay, so you are sending from the server itself (localhost). No problem.
Please note that your hostname is obviously "localhost.localdomain". You
probably have an entry in /etc/hosts with that value.

> Nov 21 23:27:46 home postfix/cleanup[6289]: 4D10C538B20: message-
> id=<200511211227.jALCRknY006285localhost.localdomain>
> Nov 21 23:27:46 home postfix/qmgr[6026]: 4D10C538B20:
> from=<aharwoodlocalhost.localdomain>, size=588, nrcpt=1 (queue active)

so, your servername is still "localhost.localdomain"? Again, please show
"postconf -n", and as a quick test "postconf myhostname". Please
remember that after every change to main.cf or master.cf you need to
tell postfix to reload its config with "postconf reload".

> Nov 21 23:27:46 home sendmail[6285]: jALCRknY006285:
> to=aharwoodcs.mu.oz.au, ctladdr=aharwood (500/500), delay=00:00:00,
> xdelay=00:00:00, mailer=relay, pri=30057, relay=[127.0.0.1]
> [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 4D10C538B20)
> Nov 21 23:27:46 home postfix/smtpd[6286]: disconnect from
> localhost.localdomain[127.0.0.1]
> Nov 21 23:27:46 home postfix/smtp[6290]: 4D10C538B20:
> to=<aharwoodcs.mu.oz.au>, relay=mulga.cs.mu.oz.au[128.250.1.22],
> delay=0, status=bounced (host mulga.cs.mu.oz.au[128.250.1.22] said:
> 553 5.1.8 <aharwoodlocalhost.localdomain>... Domain of sender
> address aharwoodlocalhost.localdomain does not exist (in reply to
> MAIL FROM command))

The reject happens because the server cs.mu.oz.au asks for a valid
sender domain. "localhost.localdomain" is not resolvable, thus no
bounces or replies can be send and the server cs.mu.oz.au wisely refuses
to accept such a mail.

> Nov 21 23:27:46 home postfix/cleanup[6289]: BD931538B27: message-
> id=<20051121122746.BD931538B27mail.aerosoul.com.au>
> Nov 21 23:27:46 home postfix/qmgr[6026]: BD931538B27: from=<>,
> size=2659, nrcpt=1 (queue active)
> Nov 21 23:27:46 home postfix/qmgr[6026]: 4D10C538B20: removed
> Nov 21 23:27:46 home postfix/smtp[6290]: BD931538B27:
> to=<aharwoodlocalhost.localdomain>, relay=none, delay=0,
> status=bounced (mail for localhost.localdomain loops back to myself)
> Nov 21 23:27:46 home postfix/qmgr[6026]: BD931538B27: removed

Now it looks as though your server doesn't know either what to do with a
mail from "localhost.localdomain". (^-^)

Please show again "postconf -n".

Sandy