• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Mail Autodiscover mobileconfig file format

jasonames

New Pleskian
Server operating system version
Ubuntu 22.04
Plesk version and microupdate number
18.0.61_build1800240517.18
I looked at the file downloaded after going to https://<domain>/email.mobileconfig?emailaddress=<address>
(With my domain/address put in)
I am using the most up to date version of Plesk, on Ubuntu 22.04
I have plesk managing the autodiscover (checkbox is on..)
Is this the type of text I should expect, or could this be why it isn't working? I expected it to look more like a linux conf file
If this is wrong, is there a toggle or config I can change?
(This is just a grab of the top couple dozen lines, 730 of 3391 characters)

も᩻؉⪆䢆ćʠ舚氰舚栂āㄏ」؉悆䠁攃Ђą0舍�प虈蛷ഁ܁ꂂ෌҂෈㰿硭氠癥牳楯渽∱⸰∠敮捯摩湧㴢畴昭㠢㼾ഊ㰡䑏䍔奐䔠灬楳琠偕䉌䥃•⴯⽁灰汥⼯䑔䐠偌䥓吠ㄮ〯⽅丢•桴瑰㨯⽷睷⹡灰汥⹣潭⽄呄猯偲潰敲瑹䱩獴ⴱ⸰⹤瑤∾ഊ㱰汩獴⁶敲獩潮㴢ㄮ〢㸍ਠ†‼摩捴㸍ਠ†††‼步社偡祬潡摉摥湴楦楥爼⽫敹㸍ਠ†††‼獴物湧㹣潭⹰汥獫⸹捦㥣搹㐭㔲㔳ⴵ㌲攭敢搷ⴹ㥢戰戱㤴㔸ㄼ⽳瑲楮朾ഊ††††㱫敹㹐慹汯慤剥浯癡汄楳慬汯睥搼⽫敹㸍ਠ†††‼晡汳攠⼾ഊ††††㱫敹㹐慹汯慤卣潰攼⽫敹㸍ਠ†††‼獴物湧㹕獥爼⽳瑲楮朾ഊ††††㱫敹㹐慹汯慤呹灥㰯步社ഊ††††㱳瑲楮朾䍯湦楧畲慴楯渼⽳瑲楮朾ഊ††††㱫敹㹐慹汯慤啕䥄㰯步社ഊ††††㱳瑲楮朾㥣昹捤㤴ⴵ㈵㌭㔳㉥ⵥ扤㜭㤹扢ぢㄹ㐵㠱㰯獴物湧㸍ਠ†††‼步社偡祬潡摏牧慮楺慴楯渼⽫敹㸍ਠ†††‼獴物湧㹣湹摡牴献捯洼⽳瑲楮朾ഊ††††㱫敹㹐慹汯慤噥牳楯渼⽫敹㸍ਠ†††‼楮瑥来爾ㄼ⽩湴敧敲㸍ਠ†††‼步社偡祬潡摄楳灬慹乡浥㰯步社ഊ††††㱳瑲楮朾橡獯湀据祤慲瑳⹣潭㰯獴物湧㸍ਠ†††‼步社偡祬潡摃潮瑥湴㰯步社ഊ††††㱡牲慹㸍ਠ†††††‼摩捴㸍ਠ†††††††‼步社偡祬潡摔祰攼⽫敹㸍ਠ†††††††‼獴物湧㹣潭⹡灰汥⹭慩氮浡湡来搼⽳瑲楮朾ഊ††††††††㱫敹㹐慹汯慤噥牳楯渼⽫敹㸍ਠ†††††††‼楮瑥来爾ㄼ⽩湴敧敲㸍ਠ†††††††‼步社偡祬潡摉摥湴楦楥爼⽫敹㸍ਠ†††††††‼獴物湧㹣潭⹡灰汥⹭摭⹣湹摡牴献捯洮㥣昹捤㤴ⴵ㈵㌭㔳㉥ⵥ扤㜭㤹扢ぢㄹ㐵㠱⹨慩獯晴⹥浡楬⹤㍢扡㠵㤭〵㐲ⵤ㉦愭ち〳ⴶ摤〹㡢敥ㅣ㜼⽳瑲楮朾ഊ††††††††㱫敹㹐慹汯慤啕䥄㰯步社ഊ††††††††㱳瑲楮朾搳扢愸㔹ⴰ㔴㈭搲晡ⴰ愰㌭㙤搰㤸扥攱挷㰯獴物湧㸍ਠ†††††††‼步社偡祬
 
It's the certificate signing of the profile. Towards to bottom of the file is an XML formatted configuration.
 
Then mine seems to be missing the config all together, it seems to be all certificate, no xml. Back to the drawing board.
 
It's the certificate signing of the profile. Towards to bottom of the file is an XML formatted configuration.
Hello and sorry to hijack this thread, but it's closely related.

The XML my server returns looks like this:
Screenshot 2024-05-23 at 10.35.43.png
Is this the intended output, especially the first few bytes? At the very end of the XML tags, a certificate is included. Everywhere I look it says the mobileconfig file should be a simple XML file. The returned data is not a valid XML file. This happens with either nginx / Apache selected.
For testing and validation purposes, I created a manual profile using Apple Configurator. The exported mobileconfig file was a simple XML file, from beginning to end.

The reason I am asking: Apple Mail currently refuses to accept the returned mobileconfig and can't fetch the mailserver configuration.

Ubuntu 18.04.4 LTS
Plesk Obsidian Version 18.0.60 Update #1

I appreciate any and all info.
 
Thank you for your reply!

Any particular error when trying to add the profile to Apple Mail?

Just the tiny tidbit that Apple Mail gives you:

"Unable to verify account name or password."

Screenshot 2024-05-23 at 13.44.41.png

The previous form, where I entered the data, looks like this:

Screenshot 2024-05-23 at 13.45.19.png

I have double-checked that the entered credentials are correct.

As far as I can tell, Apple Mail does not provide any further logging. Neither in the Activity window, nor the Connection Doctor. I've checked /var/log/maillog and the Mail client has not tried to login at all. It did not hit the mail servers.

I've tried the Autodiscover feature with Thunderbird and it works fine, fetching the config file and applying all settings correctly.

NB: The server is now running Plesk Obsidian Version 18.0.61 Update #3 as well.
Apple Mail Version 16.0 (3774.500.171.1.1) on Sonoma 14.4.1 (23E224).
 
Can't edit my post anymore unfortunately.

Upon reviewing the hosting logs for the subscription: The endpoint "/email.mobileconfig" is not hit either. I can clearly see Thunderbird's request though: GET /.well-known/autoconfig/mail/config-v1.1.xml.

Am I right to believe that Apple Mail on macOS is NOT using autodiscover for IMAP accounts?
 
Could you please paste the contents of this config file:
Code:
 # cat /usr/local/psa/admin/htdocs/mailconfig/email.mobileconfig

You can use CODE tags to format the output on this forum:
 
Can't edit my post anymore unfortunately.

Upon reviewing the hosting logs for the subscription: The endpoint "/email.mobileconfig" is not hit either. I can clearly see Thunderbird's request though: GET /.well-known/autoconfig/mail/config-v1.1.xml.

Am I right to believe that Apple Mail on macOS is NOT using autodiscover for IMAP accounts?
Oohw, yes, you're right. There not autodiscover for IMAP. The email.mobileconfig method only works for iOS devices.
 
Could you please paste the contents of this config file:
Code:
 # cat /usr/local/psa/admin/htdocs/mailconfig/email.mobileconfig

You can use CODE tags to format the output on this forum:

Sure thing:

Code:
<?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>PayloadIdentifier</key>
        <string>com.plesk.{{UUID1}}</string>
        <key>PayloadRemovalDisallowed</key>
        <false />
        <key>PayloadScope</key>
        <string>User</string>
        <key>PayloadType</key>
        <string>Configuration</string>
        <key>PayloadUUID</key>
        <string>{{UUID1}}</string>
        <key>PayloadOrganization</key>
        <string>{{HOSTNAME}}</string>
        <key>PayloadVersion</key>
        <integer>1</integer>
        <key>PayloadDisplayName</key>
        <string>{{DISPLAY_NAME}}</string>
        <key>PayloadContent</key>
        <array>
            <dict>
                <key>PayloadType</key>
                <string>com.apple.mail.managed</string>
                <key>PayloadVersion</key>
                <integer>1</integer>
                <key>PayloadIdentifier</key>
                <string>com.apple.mdm.{{HOSTNAME}}.{{UUID1}}.haisoft.email.{{UUID2}}</string>
                <key>PayloadUUID</key>
                <string>{{UUID2}}</string>
                <key>PayloadEnabled</key>
                <true />
                <key>PayloadDisplayName</key>
                <string>{{DISPLAY_NAME}}</string>
                <key>EmailAccountDescription</key>
                <string>{{DISPLAY_NAME}}</string>
                <key>disableMailRecentsSyncing</key>
                <true />
                <key>allowMailDrop</key>
                <false />
                <key>PreventMove</key>
                <true />
                <key>PreventAppSheet</key>
                <false />
                <key>SMIMEEnabled</key>
                <false />
                <key>SMIMEEnablePerMessageSwitch</key>
                <false />
                <key>IncomingMailServerAuthentication</key>
                <string>EmailAuthPassword</string>
                <key>IncomingMailServerUseSSL</key>
                <{{INCOMING_SSL}} />
                <key>OutgoingMailServerAuthentication</key>
                <string>EmailAuthPassword</string>
                <key>OutgoingMailServerUseSSL</key>
                <{{OUTGOING_SSL}} />
                <key>EmailAccountType</key>
                <string>EmailTypeIMAP</string>
                <key>EmailAccountName</key>
                <string>{{DISPLAY_NAME}}</string>
                <key>EmailAddress</key>
                <string>{{DISPLAY_NAME}}</string>
                <key>IncomingMailServerHostName</key>
                <string>{{INCOMING_SERVER}}</string>
                <key>IncomingMailServerPortNumber</key>
                <integer>{{IMAP_PORT}}</integer>
                <key>IncomingMailServerUsername</key>
                <string>{{USER_NAME}}</string>
                <key>OutgoingMailServerHostName</key>
                <string>{{OUTGOING_SERVER}}</string>
                <key>OutgoingMailServerPortNumber</key>
                <integer>{{SMTP_PORT}}</integer>
                <key>OutgoingMailServerUsername</key>
                <string>{{USER_NAME}}</string>
                <key>OutgoingPasswordSameAsIncomingPassword</key>
                <true />
            </dict>
        </array>
    </dict>
</plist>

Oohw, yes, you're right. There not autodiscover for IMAP. The email.mobileconfig methode only works for iOS devices.

I suppose that clears up things then, hah! Thank you and sorry for derailing the thread once again!
 

Similar threads

N
Replies
0
Views
2K
N
Back
Top