postfix uses hostname instead of myhostname.
- by sunny.oxide
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?