SYSTEM INFORMATION | |
---|---|
OS type and version | Ubuntu 20.04-LTS |
Webmin version | 2.202 |
Virtualmin version | 7.30.3 PRO |
Webserver version | apache |
Related packages | PostFix 3.4.13 |
Ok, everything works, except receiving emails from outlook.com.
But when an email from outlook.com arrives, one domain works fine (it has a mail.domain alias server configured in Virtualmin), and one that hasn’t it doesn’t receive such emails. But once I add the mail.domain alias subdomain, the non-working domain works suddenly.
Before that, I had:
the one that works had this line found in mail.logs:
postfix/smtpd[2679529]: maps_file_find: tls_server_sni_maps: hash:/etc/postfix/sni_map(0,lock|fold_fix|src_rhs_is_file):
and the one that isn’t working, had instead this line is in logs:
maps_file_find: tls_server_sni_maps: mail.mydomain.com: not found
And in the /etc/postfix/sni_map
file the mail.domain was missing, but adding it and re-doing a postmap was not enough, as in mail.log , although the previous error disappeared, following errors appeared, after adding mail.domain.com in sni_maps and rehashed:
warning: table hash:/etc/postfix/sni_map.db: key mail.mydomain.com: malformed BASE64 value: /home/mydomain/ssl.key,/home/
warning: tls_server_sni_maps: mail.mydomain.com map lookup problem
Then removed the mail.domain entry in sni_map, re-postmaping the sni_map file into sni_map.db, reloading postfix, verified that original error was back when trying to send email from outlook.com.
Then simply created an alias server mail.domain for the non-working domain (with same email addresses, no apache server as it was already configured, with DNS entries and mail) added the missing mail.domainand .mail.domain entries in sni_map, and probably configured more things, and then the incoming emails from outlook.com arrived fine.
EDIT: complement: the DNS MX entry for the domain, with highest priority, is mail.domain