postfix uses hostname instead of myhostname.
Posted
by sunny.oxide
on Server Fault
See other posts from Server Fault
or by sunny.oxide
Published on 2010-05-25T08:28:50Z
Indexed on
2010/05/25
8:32 UTC
Read the original article
Hit count: 316
Hi there,
I am trying to set up an outgoing mail server for sending emails which is to relay to our ISP.
In /etc/postfix/main.cf I have myhostname to ourcompany.example.com and myorigin and mydomain to $myhostname. ourcompany.example.com is resolvable.
But looking at the logs in /var/log/maillog it appears that postfix does use the myhostname for the send address, but uses whatever from getmyhostname(), which is set to an internal DNS name since this is an internal server and we only send email out, but not handling incoming email.
Any ideas?
© Server Fault or respective owner