Mufit Eribol wrote:> Hello,
>
> After a server crash, I re-installed postfix, cyrus-imapd,
> amavisd-new, spamassassin on a Centos 5.1 box. But, now mail system
> behaves somewhat different.
>
> There is no problem with mail receiving/sending from/to internet.
>
> Before the crash, mail system used to sent internal messages to
> root at example.com. But now, I can't receive internal messages as it
> tries to send them to root at server.example.com. I used the same
> postfix, cyrus-imapd, amavisd-new, /etc/aliases conf files from the
> previous setup.
>
> Must be a configuration issue I overlook. Could anybody please tell me
> what to check?
>
> Best wishes,
> Mufit
>
> main.cf:
> mydomain = example.com
> myhostname = server.example.com
> mydestination = example.com ...
>
> amavisd.conf
> $mydomain = 'example.com';
> $myhostname = 'server.example.com';
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
In main.cf check this setting. Someone probably has a better answer then me
but just for thought.
myorigin = $mydomain
hth.
<p>
# SENDING MAIL
#
# The myorigin parameter specifies the domain that locally-posted
# mail appears to come from. The default is to append $myhostname,
# which is fine for small sites. If you run a domain with multiple
# machines, you should (1) change this to $mydomain and (2) set up
# a domain-wide alias database that aliases each user to
# user at that.users.mailhost.
#
# For the sake of consistency between sender and recipient addresses,
# myorigin also specifies the default domain name that is appended
# to recipient addresses that have no @domain part.
#
#myorigin = $myhostname
myorigin = $mydomain
</p>