How to change mail.app settings using the configuration profile payload

kzob
New Contributor

Hello!
I am trying to change the mail.app settings on multiple Macs, but it is not working.
If anyone knows how to solve this problem, please let me know.

What I would like to achieve.
-Check "Mark addresses not ending with" (mail.app>Settings>Composing)
- Put any address in the blank field
- Achieve the above two points using the payload function of the configuration profile

What I have tried
I thought the following plist was relevant for the configuration.
~/Library/Preferences/com.apple.mail-shared.plist

However, when I uploaded the plist reflecting the settings from Jamf>Configuration Profiles>Application & Custom settings>Upload, it was not reflected in mail.app.

2 REPLIES 2

kzob
New Contributor

correction
What I would like to achieve.
-Enable  "Mark addresses not ending with"
- Put specified addresses in the blank field

kzob
New Contributor

Here is an example of how to enable "Mark addresses not ending with" and add specific addresses to the list using a configuration profile:

  1. Create a new configuration profile in Jamf.

  2. Under "Application & Custom Settings," select "Add" and choose "Custom Settings."

  3. Name the setting, such as "Mail Settings," and select "Add Payload."

  4. In the "Payload Type" dropdown, choose "com.apple.mail."

  5. In the "PayloadContent" field, add the following XML code:

    <dict>
    <key>EnableNotEndingEmailAddressMarking</key>
    <true/>
    <key>WhitelistedNotEndingEmailAddress</key>
    <array>
    <string>example1@example.com</string>
    <string>example2@example.com</string>
    <string>example3@example.com</string>
    </array>
    </dict>

Replace the example email addresses with the addresses you want to whitelist.

  1. Save the configuration profile.

  2. Assign the configuration profile to the Macs you want to apply the Mail settings to.

Once the configuration profile is applied to the Macs, the Mail app should reflect the specified settings.