Friday, June 27, 2008

OS X Mail Account Bundles fail

I have been trying to use Mac Mail Account bundles at PSU to auto-configure Mac Mail on 10.5.3. I found that there is an issue following the documentation at the moment.

The documentation:
http://developer.apple.com/documentation/MacOSXServer/Conceptual/XServer_ProgrammingGuide/Articles/MailAccountBundles.html#//apple_re/doc/uid/TP40002464

States that I can locate my MailAccount.plist under a folder following the reverse-ordered ICANN domain name, in this case: "edu.psu.mailaccounts". There are multiple locations where this directory can be stored,
  • ~/Library/Mail/AccountTypes

  • /Library/Mail/AccountTypes

  • /Network/Library/Mail/AccountTypes

I tried the first two and they didn't work.

I eventually had some interns just add the <dict> with my settings to the com.apple.mailaccounts MailAccounts.plsit file. It worked after that. Here is the plist that I used. I just copied the <dict> sections:

<?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>Multiple</key>
<array>
<dict>
<key>Accounts</key>
<array>
<dict>
<key>AccountID</key>
<string>5D795DD4-55CB-11D8-A81E-000A957054BE</string>
<key>AccountName</key>
<string>PSU</string>
<key>AuthenticationScheme</key>
<array/>
<key>DeliveryAccounts</key>
<array>
<string>2C6B8A3E-EF11-41BA-BCA4-0DE050C51D5C</string>
</array>
<key>EmailAddressDomain</key>
<string>@psu.edu</string>
<key>PortNumber</key>
<integer>995</integer>
<key>Protocol</key>
<string>POP</string>
<key>SSLEnabled</key>
<true/>
<key>SSLEnabledIsEditable</key>
<false/>
<key>ServerName</key>
<array>
<string>email.psu.edu</string>
</array>
<key>UserNameMatchesEmailAddress</key>
<true/>
</dict>
<dict>
<key>AccountID</key>
<string>2C6B8A3E-EF11-41BA-BCA4-0DE050C51D5C</string>
<key>AccountName</key>
<string>PSU SMTP</string>
<key>AuthenticationScheme</key>
<array>
<string></string>
</array>
<key>PortNumber</key>
<integer>25</integer>
<key>Protocol</key>
<string>SMTP</string>
<key>SSLEnabled</key>
<true/>
<key>ServerName</key>
<string>authsmtp.psu.edu</string>
</dict>
</array>
<key>Identifier</key>
<string>edu.psu</string>
<key>Version</key>
<integer>1</integer>
</dict>
</array>
</dict>
</plist>


Credit goes to Rob Kelly and Dave Williams (Interns) for figuring out that it works in the com.mac.mailaccounts MailAccounts.plist.

No comments: