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


Thanks Sany, two other people pointed out that sendmail was being
rude and
needed to be uninstalled. Then things started worked like the
textbook says.
You also saw that as well but you were not forceful enough to tell me
to ditch
sendmail.
--Aaron

On 22/11/2005, at 12:57 AM, Sandy Drobic wrote:

> Aaron Harwood wrote:
>
>
>>
>>
>> Well I solved the problem by fixing my hosts file, it is now this:
>>
>> aharwoodhome ~]$ cat /etc/hosts
>> # Do not remove the following line, or various programs
>> # that require network functionality will fail.
>> 127.0.0.1 localhost
>> 192.168.1.1 gateway.aerosoul.com.au gateway
>> [aharwoodhome ~]$
>>
>>
>> However, now my email address is listed as
>>
>> userhome.aerosoul.com.au
>>
>>
> If you don't use fully qualified mail addresses for recipient and
> sender then postfix will add the hostname to get a FQDN address.
>
>
>> rather than
>>
>> useraerosoul.com.au
>>
>>
> For that you can use /etc/postfix/canonical to rewrite the address,
> but I suggest you use correct address so you do not need to worry
> about this behaviour.
> Please set the complete email address including domain in your
> client program.
>
>
>> It looks like the address is dependent on things outside postfix;
>> the postfix
>> configuration specifies mail.aerosoul.com.au as the myhostname,
>> however the
>> single server has a name of home.aerosoul.com.au to the outside
>> world. Probably
>> what /dev/rob0 was saying about the sendmail command doing
>> something is the
>> place to look. I'm not sure where or how to remove that culprit
>> though (not
>> /dev/rob0, the sendmail command :)
>>
>
> As I said, it should use the myhostname in main.cf. Can you post
> postconf -n again? Maybe we missed something.
>
> Sandy
>