Submitted by malc_b on Sat, 09/13/2014 - 08:51
Hi,
Recent install of webmin/virtualmin via install.sh. In postfix general settings, what domains to receive mail for is set to
mydomain.co.uk, localhost.co.uk, , localhost
Is this correct? I note there is a blank entry. The help and elsewhere says it should be
localhost.$mydomain, localhost, mail.example.com
Note mydomain.co.uk is not a virtual site domain.
Status:
Active
Comments
Submitted by andreychek on Sat, 09/13/2014 - 11:28 Comment #1
Howdy -- the blank entry is harmless (though we're looking into correcting that for a future Virtualmin release).
Your initial mydestination line looks good though, it just needs to include your hostname, it does not need to include the Virtual Server names.
Submitted by malc_b on Sat, 09/13/2014 - 11:55 Comment #2
OK so let's say I have xyz.co.uk as domain name. Host name is currently xyz.co.uk too, I wonder if hostname should be mail.xzy.co.uk and then you would have
$myhostname, localhost.$mydomain $mydomain (from postfix man)
i.e.
mail.xzy.co.uk, localhost.xzy.co.uk, xyz.co.uk
and maybe add localhost too
mail.xzy.co.uk, localhost.xzy.co.uk, xyz.co.uk, localhost
And if so where would I change this?
Submitted by malc_b on Sun, 09/14/2014 - 12:24 Comment #3
I think confusion arises because of what do name a VPS. I have a digital oceans vps droplet. The name of that has to be the FQDN, say this is xyz.co.uk. This has to be xzy.co.uk and not something like server.xyz.co.uk because the droplet name is the PTR record. So when checking an email sent by auser@xyz.co.uk then rDNS of xyz.co.uk returns the IP of my droplet, which then matches the IP of the email.
However, when this droplet is then created it sets the linux hostname to xyz.co.uk and this is assumed to be in the form server.xyz.co.uk which it isn't. Stripping the front to give the domain then gives .co.uk and not the correct value of xyz.co.uk.
I've change the settings in postfix to be more sensible: Internet hostname of this mail system = mail.xyz.co.uk Local internet domain name = xyz.co.uk What domains to receive mail for = xyz.co.uk, localhost.xyz.co.uk, mail.xyz.co.uk, localhost
That seems to fit $myhostname, localhost.$mydomain $mydomain, I've seen suggested plus localhost.
Does that seems right? I have dns entry for mail.xyz.co.uk.
And is there anything else that this might have affected?
Submitted by andreychek on Sun, 09/14/2014 - 20:05 Comment #4
My suggestion would be to give that a try, and just make sure you can receive email to any of the domains setup on your server. Also make sure that any name listed in the "mydestination" list also has an entry in /etc/hosts.