Change E-Mail Server adress

7 posts / 0 new
Last post
#1 Fri, 02/12/2016 - 10:22
Helias10

Change E-Mail Server adress

Hey together, I want to disable the feature that all Domains have their own mail.domain.tld that links to my mailserver. I just want the direkt linkt to the mailserver. Where can I set this option?

Its really important for me, because SSL is working improperly without this.

Greeting Helias10

Sat, 02/13/2016 - 18:08
andreychek

Howdy,

Hmm, I don't believe it's possible to disable creation of those alias records.

Those are just aliases though.

Those shouldn't cause a problem with SSL. You can have your users connect using any hostname you like, you don't need to use the "mail" aliases.

If you're having problems with that though, can you explain what issue you're seeing?

-Eric

Mon, 02/15/2016 - 12:43
Helias10

Hey, thanks i thought that so far, but the autoconfiguration for mail client software automaticly gets the mail.domain.tld server adress. Thge certificate is just created for the hostname and for every single domain seperatly. Because they mail domanis point to the hostname it´s causing errors.

How can i change the autoconfig or set the hostname permanently as mail server?

Wed, 02/17/2016 - 12:46
andreychek

Howdy,

I don't recall if this feature is in Virtualmin GPL or not -- by if you look in the "Email Messages" menu on the left, is there a "Mail Client Configuration" option?

-Eric

Thu, 02/18/2016 - 13:26 (Reply to #4)
Helias10

Hey, yes it is, but this option does not work for mozilla thunderbird and the mobile gmail app. I change all server names to the hostname. To be more specific, all this relates to an ssl issue i have. I created a certificate for my mailserver, but the clients are connecting through the domains and not directly so outlook for example is showing an a security warning.

Thu, 02/18/2016 - 14:16
joe443

Are you sure you checked the mail client autoconfiguration templates?

Go to:

System Settings : Server Templates : Default Settings : Mail client auto-configuration

You will see two templates. Edit these to make the mail server be the name of the server itself. And check the radio buttons that say "XML template below". Then do Save.

In theory, mail clients will now autoconfigure to use whatever server name(s) you specified.

Also, go to:

System Settings : Server Templates : Default Settings : Mail for domain

and edit the mail template so the various servers are all specified as the machine itself. E.g.:

SMTP server:             ${HOSTNAME}
...
IMAP server:             ${HOSTNAME}
...
POP3 server:             ${HOSTNAME}

Disclaimer: This is what the Virtualmin menus tell me. I haven't verified that it will work.

Sun, 02/25/2018 - 11:38
philmck
philmck's picture

Technically that undocumented {HOSTNAME} fix works and Virtualmin is now sending out the right thing. I do find it confusing though that the settings are all under System Settings > Server Templates > Mail client auto-configuration rather than Email Settings > Mail Client Configuration (which would be better named Mail Client Autoconfiguration).

However, the mail clients themselves are buggy and Outlook 365 in particular ignores the "Server" setting and makes up its own, resulting in a certificate warning about non-matching hostname. I've read all the documentation and bug reports and spent some hours on this but I can't find any configuration that works. The very first line of the documented configuration is a bug because "http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006" no longer exists. It's a mess, as usual with closed-source software - not reviewed, not standards compliant, misleading documentation and impossible to debug or fix.

Other clients only work with IMAP, or only with POP, or ignore their priority setting. But most of them don't work at all, or only with unencrypted connections. Thunderbird is not too bad in this instance but I've never had a customer that uses it.

Phil McKerracher www.beeches.it

Topic locked