I love the mail client autoconfiguration options, however it’s currently set to use plaintext authentication on port 25 for SMTP.
I have “Enable TLS encryption?” set to Always and Port 25 firewalled off for to help with PCI DSS compliance, so it would be great if I could edit the autoconfiguration template, or if it could pickup some more sensible detaults based on the server configuration.
I see you have “Added a template section to configure the mail client auto-configuration XML, for example if some domains use custom mail servers.” on the release notes for 3.99 - this sound like exactly what I’m looking for but I can’t find it anywhere (I’m running 3.99.gpl on CentOS 6.4 and using Postfix).
Also, when I enabled the Mail Client Autoconfiguration I get the following output (although I think it worked the fist time I ran it):
Enabling mail client autoconfiguration for 5 virtual servers …
Failed for domain1.com :
Which looks right - but how to I change the values of the variables so that I can set it to use TLS by default for SMTP? (Port 587 etc). Should I just remove the variables and replace with the static values? Or is there another page where they are calculated pre-account?
The remaining problem I ran into is that the autoconfig is being populated (most of the time?) with a bad username.
On our server, we use short usernames (without the domain name or TLD) most of the time, but if there is a conflict, the system creates usernames in the form of ‘username.domain’ (not username.domain.tld).
The autoconfiguration appears to be plugging in ‘username.domain’ all the time which fails most of the time.
How might I tweak te XML template for just ‘username’?
The autoconfig script doesn’t have access to the user database (as it just runs as a regular CGI script), so it doesn’t know which users have been given short names.
It seems to me that the configuration-settings for the XML-template are not read from Postfix/Dovecot. I have changed some authentication-settings (e.g. from plaintext-password to crypted) but this value was not changed in the xml template - even if set up a new virtual server for testing.
Is this right that i have to change the variables in /cgi-bin/autoconfig.cgi for every host manually if i change the postfix/dovecot configuration?
If yes, please fix it so that the new changes will be rolled out to every installed virtual server. Thanks!
These settings should be read from the active Postfix and Dovecot settings.
For example, with Dovecot if not running in SSL mode and if the disable_plaintext_auth directive is set to yes , then password-encrypted mode will be used for IMAP in the XML.
The script will use whatever username format is configured for the domain, at the time autoconfiguration was enabled. Unfortunately because it runs as a CGI, it doesn’t have access to the actual username, so its guess can be wrong if the username format was changed.
You can use $mailbox
This is a bug - the new XML should be applied when you change the template. Currently you have to disable and then re-enabled autoconfiguration to force the new template to be used.
I just discovered the new autoconfiguration feature and updated webmin/virtualmin accordingly.
On my SMTP/POP/IMAP server I manage all mail accounts with Webmin.
I tried to “Enable mail client autoconfiguration”.
And I get the message : “No virtual servers with email enabled exist”. Well… all the virtual servers are there only for email (the web sites are elsewhere).
How can I find more about what’s causing the pb ? I do not see anything in webmin.log, miniserv.log and miniserv.error.
You could try enabling a website for one domain, manually fetching the autoconfig XML, and then having it served from your real webserver for other domains.