[CentOS] postfix - hostname

Mon Nov 27 16:48:53 UTC 2006
Alex Palenschat <alex at nssmgmt.com>

> On 11/25/06, R Lists06 <lists06 at abbacomm.net> wrote:
> > > From: Guillermo Garron
> > > Hi,
> > > I have this problem
> > > my email server's DNS name is
> > > ns1.mydomain.com, and it is registered in the reverse DNS 
> also with 
> > > that name, when i installed my server at the hostname i entered 
> > > centos-server.mydomain.com when i tried to send an email from the 
> > > root console with
> > >
> > > # mail root
> > >
> > > the email is returned saying that
> > >
> > > root at centos-server.mydomain.com, could not be verified
> > >
> > > i used the command
> > > # hostname ns1.mydomain.com
> > > and also edited the file.
> > >
> > > /etc/hosts,
> > > but i have the same result, the hostname did not change, i even 
> > > restart my server with no luck. what am I missing?
> > > regards,
> > > Guillermo.
> > > PS my server is a CentOS 4.4, with postfix
> > > Guillermo Garron

The hostname is stored in /etc/sysconfig/network and when you are
dealing with postfix there is a line in the /etc/postfix/main.cf file
that needs to be edited that starts with myorigin=

alex