I’ve been trying for over a week to set this up correctly.
Running on debian 9.1 and default virtualmin 6 installation. (webmin 1.852, usermin 1.720, virtualmin 6.00) PHP 7.0 fcgi (if relevant)
I have several domains hosted. All are created with only the default (virtualmin created) user and only alias “info@domain.com” was added for all of the domains.
SFTP and Usermin work fine with said usernames and passwords.
But thunderbird fetches the auto-configuration file and applies these settings:
Incoming: IMAP, mail.domain.com, SSL/TLS (port 993) (normal password)
Outgoing: SMTP, domain.com, No Encryption (port 587) (normal password)
Username: username (not username.usergroup or other)
Then I hit “Done” and thunderbird hits me with a warning: “Outgoing settings: domain.com does not use encryption”
After accepting this warning, thunderbird is “checking the password…” and after a while it fails: “Configuration could not be verified - is the username or password wrong?”
Username and password are definitely right, I checked many times. Must have something to do with sasl/pam authentication or default firewall rules.
In Server Templates, “Format for usernames that include domain” is set to default (username.domain)
My DNS records look good - A records go through cloudlfare:
A domain.com -> ip
A mail -> ip
MX domain.com -> mail.domain.com
In FirewallD I have enabled smtps and ports 587, 993, 143, 465. I haven’t touched anything else since installation in FirewallD, Linux Firewall or Fail2Ban.
SSL certificates are self-signed.
Here’s my Thunderbird auto-configuration XML (but I now have set it to be automatically generated):
Is there something else I should be looking at?
Ideally I should be able to connect using thunderbird on ports 993 & 465 over SSL/TLS both for IMAP and SMTP.
Thank you!