Skip to content

Instantly share code, notes, and snippets.

@anon5r
Created January 20, 2016 08:37
Show Gist options
  • Save anon5r/5de922d463acb64c1873 to your computer and use it in GitHub Desktop.
Save anon5r/5de922d463acb64c1873 to your computer and use it in GitHub Desktop.
Auto email configure for Google App for Business
<?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>
<Server>imap.gmail.com</Server>
<Port>993</Port>
<DomainRequired>on</DomainRequired>
<SPA>off</SPA>
<SSL>on</SSL>
<AuthRequired>on</AuthRequired>
</Protocol>
<Protocol>
<Type>POP3</Type>
<Server>pop.gmail.com</Server>
<Port>995</Port>
<DomainRequired>on</DomainRequired>
<SPA>off</SPA>
<SSL>on</SSL>
<AuthRequired>on</AuthRequired>
</Protocol>
<Protocol>
<Type>SMTP</Type>
<Server>smtp.gmail.com</Server>
<Port>465</Port>
<DomainRequired>on</DomainRequired>
<SPA>off</SPA>
<SSL>on</SSL>
<AuthRequired>on</AuthRequired>
<UsePOPAuth>on</UsePOPAuth>
<SMTPLast>off</SMTPLast>
</Protocol>
</Account>
</Response>
</Autodiscover>
@anon5r
Copy link
Author

anon5r commented Jan 20, 2016

Step 1. You need to add subdomain "autodiscover" on your domain pointed to your server. (ex. autodiscover.example.com)
Step 2. You create directory "autodiscover" in document root for autodiscover.[your-domain]. (Then as necessary you need to restart your web server.)
Step 3. You put this xml (autodiscover.xml) on autodiscover directory.
Step 4. Check your autodiscover URL: http://autodiscover.example.com/autodiscover/autodiscover.xml or https://autodiscover.example.com/autodiscover/autodiscover.xml
( Maybe you need SSL certification and SSL connection settings when the case of it does not working. )

@anon5r
Copy link
Author

anon5r commented Jan 20, 2016

You can customize to settings for other servers connection, when you changed the values of "Server" and "Port" elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment