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 - 07:03:08 CST


On 21/11/2005, at 11:39 PM, Sandy Drobic wrote:
>
> 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.

[roothome postfix]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain home.aerosoul.com.au
localhost home mail.aerosoul.com.au mail
192.168.1.1 gateway.aerosoul.com.au gateway
[roothome postfix]#

>
>
>> 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".

[roothome postfix]# /usr/sbin/postconf myhostname
myhostname = mail.aerosoul.com.au
[roothome postfix]#

>
>
>> 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.

understood.

>
>
>> 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". (^-^)

(:-)

--Aaron