In a VPS with Ubuntu 12.04 LTS, I have installed postfix. The domain name is
example.com
, the VPS hostname isserver.example.com
. For the domainexample.com
I create an MX record. After that a mail servermail.example.com
is up and running.How to in postfix configuration
main.cf
setmyhostname
?myhostname=server.example.com
OR
myhostname=mail.example.com
Answer
The hostname is really the name of your VPS host. The name in your MX record goes into mydomain.
myhostname=server.example.com
mydomain=mail.example.com # if you receive emails as me@mail.example.com, or mydomain=example.com if you receive emails as me@example.com
Attribution
Source : Link , Question Author : ptheo , Answer Author : Calimo