Mail Client auto Configuration to use SSL/TLS

3 posts / 0 new
Last post
#1 Mon, 08/08/2016 - 06:55
northrich

Mail Client auto Configuration to use SSL/TLS

Good Day Guys,

When Thunderbird (for example) queries my server with the default mail auto-configure or the XML below; both auto populate the SMTP settings to "no encryption". If I change Thunderbird to use encryption it works fine but how can I tell this XML script to offer SSL or StartTLS to begin with?

Any help would be greatly appreciated!

Richard

Current XML Data for Thunderbird:

<?xml version="1.0" encoding="UTF-8"?>
 
<clientConfig version="1.1">
  <emailProvider id="$SMTP_DOMAIN">
    <domain>$SMTP_DOMAIN</domain>
    <displayName>$OWNER Email</displayName>
    <displayShortName>$OWNER</displayShortName>
    <incomingServer type="imap">
      <hostname>$IMAP_HOST</hostname>
      <port>$IMAP_PORT</port>
      <socketType>$IMAP_TYPE</socketType>
      <authentication>$IMAP_ENC</authentication>
      <username>$SMTP_LOGIN</username>
    </incomingServer>
    <outgoingServer type="smtp">
      <hostname>$SMTP_HOST</hostname>
      <port>$SMTP_PORT</port>
      <socketType>$SMTP_TYPE</socketType>
      <authentication>$SMTP_ENC</authentication>
      <username>$SMTP_LOGIN</username>
    </outgoingServer>
  </emailProvider>
</clientConfig>

Current XML data for OUTLOOK:

<?xml version="1.0" encoding="utf-8" ?>
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
  <Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
    <Account>
      <AccountType>email</AccountType>
      <Action>settings</Action>
      <Protocol>
    <Type>IMAP</Type>
        <TTL>24</TTL>
    <Server>$IMAP_HOST</Server>
        <Port>$IMAP_PORT</Port>
    <LoginName>$SMTP_LOGIN</LoginName>
        <DomainRequired>off</DomainRequired>
        <SSL>$IMAP_SSL</SSL>
    <AuthRequired>on</AuthRequired>
      </Protocol>
      <Protocol>
    <Type>SMTP</Type>
        <TTL>24</TTL>
    <Server>$SMTP_HOST</Server>
        <Port>$SMTP_PORT</Port>
    <LoginName>$SMTP_LOGIN</LoginName>
        <DomainRequired>off</DomainRequired>
        <SSL>$SMTP_SSL</SSL>
    <AuthRequired>on</AuthRequired>
      </Protocol>
    </Account>
  </Response>
</Autodiscover>
Mon, 08/08/2016 - 11:10
coderinthebox

You need to enable TLS, then install a certificate to be used, Mine is from Let's Encrypt which needs a manual "renewal"/"copying" from my auto renew certificate (main domain).

Encryption is not being pushed if you have an invalid certificate.

Visit me at coderinthebox.com

Mon, 08/08/2016 - 13:21
northrich

Hi coderinthebox,

I have a Comodo wildcard attached that is working. If I change the XML

<socketType>$SMTP_TYPE</socketType>     to read      <socketType>$SMTP_SSL</socketType>

Then the autconfigure sets it to STARTTLS but the login name then populates with only the username and not username.domain as it does with no encryption...

UGH!

Topic locked