Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Feature Requests
  3. [Mail] Offer complete Autodiscover (Outlook)

[Mail] Offer complete Autodiscover (Outlook)

Scheduled Pinned Locked Moved Feature Requests
2 Posts 2 Posters 629 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jarod
    wrote on last edited by Jarod
    #1

    Hey,

    Currently the Autodiscover is "kinda" half baked in Cloudron. It only offers "/.well-known/autoconfig/mail/config-v1.1.xml", which is a good start, but only works for "well made" E-Mail Clients like Thunderbird and it kinds. Normal clients don't check it.

    For Outlook and Apple Mail

    1. Add the following syntax to /Autodiscover/Autodiscover.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
    	<Response xmlns="{{schema}}">
    		<User>
    			<DisplayName>{{email}}</DisplayName>
    		</User>
    
    		<Account>
    			<AccountType>email</AccountType>
    			<Action>settings</Action>
    
    			<Protocol>
    				<Type>IMAP</Type>
    				<TTL>1</TTL>
    
    				<Server>{{imap.host}}</Server>
    				<Port>{{imap.port}}</Port>
    
    				<LoginName>{{email}}</LoginName>
    
    				<DomainRequired>on</DomainRequired>
    				<DomainName>{{domain}}</DomainName>
    
    				<SPA>off</SPA>
    				<SSL>on</SSL>
    				<AuthRequired>on</AuthRequired>
    			</Protocol>
    		</Account>
    
    		<Account>
    			<AccountType>email</AccountType>
    			<Action>settings</Action>
    
    			<Protocol>
    				<Type>SMTP</Type>
    				<TTL>1</TTL>
    
    				<Server>{{smtp.host}}</Server>
    				<Port>{{smtp.port}}</Port>
    
    				<LoginName>{{email}}</LoginName>
    
    				<DomainRequired>on</DomainRequired>
    				<DomainName>{{domain}}</DomainName>
    
    				<SPA>off</SPA>
    				<SSL>on</SSL>
    				<AuthRequired>on</AuthRequired>
    			</Protocol>
    		</Account>
    	</Response>
    </Autodiscover>
    
    1. Add the SRV Record to the DNS Setup
    • service: _autodiscover
    • Protocol: _tcp
    • Value: [example.example]
    • Port: 443
    • Priority: 5
    • Weight: 0
    • TTL: 3600 (or whatever you like)

    For iOS (kinda workaround, harder to realize then the above)

    iOS is kinda shitty in it. Here is the best. You should add a button for every accessible mailbox to the cp for the users which redirects to the following part. This way, user can easily add the Mail with just one click.

    /email.mobileconfig?email=EMAIL_ADDRESS

    This file should have the following syntax

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    	<key>HasRemovalPasscode</key>
    	<false/>
    	<key>PayloadContent</key>
    	<array>
    		<dict>
    			<key>EmailAccountDescription</key>
    			<string>{{email}}</string>
    			<key>EmailAccountName</key>
    			<string>{{email}}</string>
    			<key>EmailAccountType</key>
    			<string>EmailTypeIMAP</string>
    			<key>EmailAddress</key>
    			<string>{{email}}</string>
    			<key>IncomingMailServerAuthentication</key>
    			<string>EmailAuthPassword</string>
    			<key>IncomingMailServerHostName</key>
    			<string>{{imap.host}}</string>
    			<key>IncomingMailServerPortNumber</key>
    			<integer>{{imap.port}}</integer>
    			<key>IncomingMailServerUseSSL</key>
    			<true/>
    			<key>IncomingMailServerUsername</key>
    			<string>{{email}}</string>
    			<key>OutgoingMailServerAuthentication</key>
    			<string>EmailAuthPassword</string>
    			<key>OutgoingMailServerHostName</key>
    			<string>{{smtp.host}}</string>
    			<key>OutgoingMailServerPortNumber</key>
    			<integer>{{smtp.port}}</integer>
    			<key>OutgoingMailServerUseSSL</key>
    			<true/>
    			<key>OutgoingMailServerUsername</key>
    			<string>{{email}}</string>
    			<key>OutgoingPasswordSameAsIncomingPassword</key>
    			<true/>
    			<key>PayloadDescription</key>
    			<string>Configure Email Settings</string>
    			<key>PayloadDisplayName</key>
    			<string>{{email}}</string>
    			<key>PayloadIdentifier</key>
    			<string>com.tiliq.autodiscover.com.apple.mail.managed.7A981A9E-D5D0-4EF8-87FE-39FD6A506FAC</string>
    			<key>PayloadType</key>
    			<string>com.apple.mail.managed</string>
    			<key>PayloadUUID</key>
    			<string>7A981A9E-D5D0-4EF8-87FE-39FD6A506FAC</string>
    			<key>PayloadVersion</key>
    			<real>1</real>
    			<key>SMIMEEnablePerMessageSwitch</key>
    			<false/>
    			<key>SMIMEEnabled</key>
    			<false/>
    			<key>disableMailRecentsSyncing</key>
    			<false/>
    		</dict>
    	</array>
    	<key>PayloadDescription</key>
    	<string>Configure Email Settings</string>
    	<key>PayloadDisplayName</key>
    	<string>{{email}}</string>
    	<key>PayloadIdentifier</key>
    	<string>com.tiliq.autodiscover</string>
    	<key>PayloadOrganization</key>
    	<string>{{domain}}</string>
    	<key>PayloadRemovalDisallowed</key>
    	<false/>
    	<key>PayloadType</key>
    	<string>Configuration</string>
    	<key>PayloadUUID</key>
    	<string>48C88203-4DB9-49E8-B593-4831903605A0</string>
    	<key>PayloadVersion</key>
    	<integer>1</integer>
    </dict>
    </plist>
    

    For the current implantation
    The well known path is good. But you should also add the following CNAME Record to the domain.

    • Name: autoconfig
    • Value: [example.example]
    • TTL: 3600 (or whatever)

    I hope I could at least give some help.

    1 Reply Last reply
    6
    • murgeroM Offline
      murgeroM Offline
      murgero
      App Dev
      wrote on last edited by
      #2

      Can't say no to expanded features!! I hope this can be implemented, it would be cool to see autodiscover and autoconfig working for Outlook and maybe even lesser known email clients.

      --
      https://urgero.org
      ~ Professional Nerd. Freelance Programmer. ~

      1 Reply Last reply
      3

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Bookmarks
      • Search