ok so I can easily send emails from my Virtualmin virtual servers, and they are being received at the other end as (eg) president@domain.com or secretary@domain.com.
having said that, for some reason, I am unable to receive emails unless they are sent too user@hostname.fqdn.com (the webserver itself…not the virtualmin>virtual server/domain).
Your message couldn’t be delivered. Despite repeated attempts to deliver your message, querying the Domain Name System (DNS) for the recipient’s domain location information failed.
I am not using the Bind to control dns on the hosting server. I simplly point an A record at the server ipaddress…so dns is controlled externally by registrar.
I note that in Virtualmin docs it says…if one wishes to have multiple domains using emails where there is a chance "joe"@domain.com could be used for any number of different domains, any email sent to “joe” would get delivered to any user on the entire webhosting server. That makes one figure, ok, I need to setup Postfix Virtual Hosting…however, then i read the following…
Postfix Virtual Hosting
Note: Webmin can be used for virtual hosting most easily with the Virtualmin hosting control panel. It automates all of the following tasks, as well as many others commonly needed in a virtual hosting environment, such as setting up email, name service, and databases
this is all good and well, however, where in the docs does it provide an example of a stock Virtualmin installation, where Postfix and Dovecot are working, for us to compare with? (this is a huge problem)
what i really need is a detailed working example of exactly how to configure a postfix/dovecot mail server in Webmin/Virtualmin that can provide email for multiple domains+SSL with the format mail@domain.com (not “mail@hostserver.fqdn.com”).
Even when we go onto the web looking for other tutorials on setting up postfix, one thing i really struggle with is the inconsistency in naming convention used in Virtualmin…it does not exactly line up with commonly used terms in various tutorials on the internet. So its easy for those on this forum who are way less skilled than me (and whilst i am good with webhosting, email servers certainly aren’t my forte)
I have sent an email to president@domain.com, then checked webmin>postfix mail server>Mail queue…its empty.
Does multiple domains work with mail if I am not using Bind in Virtualmin? (ie Virtualmin>Edit Virtual server> dns domain enabled = unchecked
How does president@domain.com resolve in Virtualmin if “dns domain enabled” is not checked? (i ask this because of dns error above)