Add SMTP headers to mails
How could I add customised SMTP headers to all mails I send from Apple Mail?
OS X Mountain Lion (10.8.4), 4 GB Ram
How could I add customised SMTP headers to all mails I send from Apple Mail?
OS X Mountain Lion (10.8.4), 4 GB Ram
You're on your own with this, as I haven't tested it:
Yes, saw that post. Thing is, mail changed location of files and how they are configured. So this no longer works.
It would need to be a way to insert the command at the SMTP level, but I don't find which file to edit. Any suggestions?
The location of the preference file doesn't matter. I can't tell you whether the headers will actually be added, but the command itself should work.
I used the command, and the following are the headers that come up (hoping the formatting doesn't get lost in the copying, deleted the sensitive info):
To: myself at a server who I know delivers DSN from trying with another client
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\))
X-Universally-Unique-Identifier:
Requestdsn: SUCCESS,FAILURE,DELAY
Reportdsn: HDRS
Content-Transfer-Encoding: 7bit
X-Smtp-Server: smtp://@p03-smtp.mail.me.com
Message-Id: <>
test DNS mail
In the com.apple.mail the command
defaults write com.apple.mail UserHeaders '{"requestDSN" = "SUCCESS,FAILURE,DELAY"; "reportDSN" = "HDRS";}'
added changed the very end of the file as:
};
ThreadingDefault = 0;
UserHeaders = {
reportDSN = HDRS;
requestDSN = "SUCCESS,FAILURE,DELAY";
};
WebContinuousSpellCheckingEnabled = 1;
junkMailTrustHeaders = 1;
}
Somehow I guess I need to tell com.apple.mail to instruct these commands at the time apple mail talks to the SMTP server?
You should have quit Mail before modifying the settings. Did you do that? If not, try again.
Yes, I did do quit mail before modifying the settings.
I also tried the settings one at a time.
Mail puts them into the mail header instead of giving the instruction to the smtp server.
Maybe UserHeaders is not the right descriptor to put the instruction at the right time, and should be something like smtpHeaders? Or directly at an already existing descriptor?
Since I see no instructions in com.apple.mail for the smtp server, maybe this should be stated in another file then com.apple.mail?
I copy the full defaults read com.apple.mail below:
{
AddInvitationsToICalAutomatically = 0;
AddressDisplayMode = 4;
DefaultViewerState = {
DisplayInThreadedMode = yes;
FavoritesBarVisible = 1;
FormatVersion = 1;
MailboxSplitPosition = 213;
SearchPopupTag = 3;
SelectedMailboxes = (
"Sent Messages"
);
SelectedMessageIDs = {
"///MessageList///" = (
77
);
};
ShowDeletedMessages = 1;
SortOrder = "received-date";
SortedDescending = 1;
ToolbarIsHidden = 0;
};
DefaultWindowState = {
dictionaryRepresentation = {
DisplayInThreadedMode = yes;
FavoritesBarVisible = 1;
FormatVersion = 1;
MailboxSplitPosition = 213;
SearchPopupTag = 3;
SelectedMailboxes = (
"Sent Messages"
);
SelectedMessageIDs = {
"///MessageList///" = (
77
);
};
ShowDeletedMessages = 1;
SortOrder = "received-date";
SortedDescending = 1;
ToolbarIsHidden = 0;
};
splitViewDescription = (
"0.000000, 0.000000, 938.000000, 668.000000, NO",
"270.000000, 0.000000, 796.000000, 668.000000, YES"
);
verticalSplitViewDescription = (
"0.000000, 0.000000, 213.000000, 668.000000, NO",
"214.000000, 0.000000, 948.000000, 668.000000, NO"
);
windowFrame = "0 62 1162 716 0 0 1280 778 ";
};
DidUpgradeDocumentEditorsToTAL = 1;
DidUpgradeMessageViewersToTAL = 1;
DidUpgradeSingleMessageViewersToTAL = 1;
Favorites = (
{
IsPrefferedSelection = 0;
MailboxUidIsContainer = 1;
MailboxUidName = Inbox;
MailboxUidPersistentIdentifier = Inbox;
MailboxUidType = 100;
},
{
IsPrefferedSelection = 0;
MailboxUidIsContainer = 1;
MailboxUidName = Sent;
MailboxUidPersistentIdentifier = "Sent Messages";
MailboxUidType = 102;
}
);
FavoritesVersion = 2;
FlagColorToDisplay = 0;
FlagNames = {
0 = Red;
1 = Orange;
2 = Yellow;
3 = Green;
4 = Blue;
5 = Purple;
6 = Gray;
};
HasSetupIndexingDefaults = 1;
IMAPServerPrefixesMirrorFilesystem = 1;
InboxViewerAttributes = {
DisplayInThreadedMode = yes;
SortOrder = "received-date";
SortedDescending = YES;
};
IndexTrash = 1;
JunkMailBehavior = 1;
Locations = (
{
AccountDefaults = {
};
Identities = {
"192.168.1" = (
);
};
}
);
MailSections = (
MailboxesSection,
SmartMailboxesSection,
"local:///",
"imap://**@mail.mac.com/"
);
MailShowFlags = 0;
MailUpgraderVersion = 8;
MailVisibleFlagsMailboxes = (
);
MailVisibleSections = (
MailboxesSection,
SmartMailboxesSection,
"imap://**@mail.mac.com/"
);
MessageListNextMessageDirection = 2;
NSPreferencesContentSize = "{550, 489}";
NSPreferencesSelectedIndex = 1;
"NSSplitView Subview Frames Main Window" = (
"0.000000, 0.000000, 213.000000, 668.000000, NO",
"214.000000, 0.000000, 948.000000, 668.000000, NO"
);
"NSSplitView Subview Frames Main Window Preview Pane" = (
"0.000000, 0.000000, 938.000000, 668.000000, NO",
"270.000000, 0.000000, 796.000000, 668.000000, YES"
);
"NSToolbar Configuration ComposeWindow_NewMessage" = {
"TB Display Mode" = 2;
};
"NSToolbar Configuration ComposeWindow_ReplyOrForward" = {
"TB Display Mode" = 2;
};
"NSToolbar Configuration MainWindow" = {
"TB Default Item Identifiers" = (
"checkNewMail:",
"showComposeWindow:",
NSToolbarSpaceItem,
NSToolbarFlexibleSpaceItem,
"delete_junk",
"reply_replyAll_forward",
FlaggedStatus,
NSToolbarFlexibleSpaceItem,
Search
);
"TB Display Mode" = 2;
};
"NSToolbar Configuration NSPreferences" = {
"TB Display Mode" = 1;
"TB Icon Size Mode" = 1;
"TB Is Shown" = 0;
"TB Size Mode" = 1;
};
"NSToolbar Configuration SingleMessageViewer" = {
"TB Display Mode" = 2;
};
"NSWindow Frame Compose Window" = "341 62 640 594 0 0 1280 778 ";
"NSWindow Frame Preferences" = "42 100 593 390 0 0 1280 778 ";
SentMessagesViewerAttributes = {
DisplayInThreadedMode = yes;
SortOrder = "received-date";
SortedDescending = YES;
};
ShowHeaderDetails = 1;
ShowPresence = 1;
SignatureSelectionMethods = {
"c71dd99e-84ef-40c4-b85b-77849164372b" = SelectedOnly;
};
SignaturesSelected = {
};
SpellCheckingBehavior = InlineSpellCheckingEnabled;
TableColumns = {
normal = {
0 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 0;
isVisible = 1;
position = 1;
positionWhileSearching = 1;
widthWithLocation = 20;
widthWithThreading = 0;
widthWithThreadingWithLocation = 0;
widthWithoutRankAndLocation = 20;
widthWithoutThreading = 20;
widthWithoutThreadingWithLocation = 20;
};
10 = {
automaticInsertionOkay = 1;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 10;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 50;
widthWithThreading = 50;
widthWithThreadingWithLocation = 50;
widthWithoutRankAndLocation = 50;
widthWithoutThreading = 50;
widthWithoutThreadingWithLocation = 50;
};
11 = {
automaticInsertionOkay = 1;
automaticInsertionWhileSearchingOkay = 1;
columnIdentifier = 11;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 46;
widthWithThreading = 46;
widthWithThreadingWithLocation = 46;
widthWithoutRankAndLocation = 46;
widthWithoutThreading = 46;
widthWithoutThreadingWithLocation = 46;
};
13 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 13;
isVisible = 1;
position = 2;
positionWhileSearching = 2;
widthWithLocation = 20;
widthWithThreading = 20;
widthWithThreadingWithLocation = 20;
widthWithoutRankAndLocation = 20;
widthWithoutThreading = 20;
widthWithoutThreadingWithLocation = 20;
};
14 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 14;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 28;
widthWithThreading = 28;
widthWithThreadingWithLocation = 28;
widthWithoutRankAndLocation = 28;
widthWithoutThreading = 28;
widthWithoutThreadingWithLocation = 28;
};
15 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 15;
isVisible = 0;
position = 0;
positionWhileSearching = 0;
widthWithLocation = 18;
widthWithThreading = 18;
widthWithThreadingWithLocation = 18;
widthWithoutRankAndLocation = 18;
widthWithoutThreading = 18;
widthWithoutThreadingWithLocation = 18;
};
16 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 16;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 81;
widthWithThreading = 81;
widthWithThreadingWithLocation = 81;
widthWithoutRankAndLocation = 81;
widthWithoutThreading = 81;
widthWithoutThreadingWithLocation = 81;
};
17 = {
automaticInsertionOkay = 1;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 17;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 10;
widthWithThreading = 10;
widthWithThreadingWithLocation = 10;
widthWithoutRankAndLocation = 10;
widthWithoutThreading = 10;
widthWithoutThreadingWithLocation = 10;
};
18 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 18;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 75;
widthWithThreading = 75;
widthWithThreadingWithLocation = 75;
widthWithoutRankAndLocation = 75;
widthWithoutThreading = 75;
widthWithoutThreadingWithLocation = 75;
};
19 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 19;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 64;
widthWithThreading = 64;
widthWithThreadingWithLocation = 64;
widthWithoutRankAndLocation = 64;
widthWithoutThreading = 64;
widthWithoutThreadingWithLocation = 64;
};
2 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 2;
isVisible = 1;
position = 4;
positionWhileSearching = 4;
widthWithLocation = 100;
widthWithThreading = 100;
widthWithThreadingWithLocation = 100;
widthWithoutRankAndLocation = 100;
widthWithoutThreading = 100;
widthWithoutThreadingWithLocation = 100;
};
20 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 20;
isVisible = 0;
position = 0;
positionWhileSearching = "-1";
widthWithLocation = 250;
widthWithThreading = 938;
widthWithThreadingWithLocation = 250;
widthWithoutRankAndLocation = 250;
widthWithoutThreading = 250;
widthWithoutThreadingWithLocation = 250;
};
3 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 3;
isVisible = 1;
position = 5;
positionWhileSearching = 5;
widthWithLocation = 81;
widthWithThreading = 81;
widthWithThreadingWithLocation = 81;
widthWithoutRankAndLocation = 81;
widthWithoutThreading = 81;
widthWithoutThreadingWithLocation = 81;
};
4 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 4;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 25;
widthWithThreading = 25;
widthWithThreadingWithLocation = 25;
widthWithoutRankAndLocation = 25;
widthWithoutThreading = 25;
widthWithoutThreadingWithLocation = 25;
};
5 = {
automaticInsertionOkay = 1;
automaticInsertionWhileSearchingOkay = 1;
columnIdentifier = 5;
isVisible = 1;
position = 3;
positionWhileSearching = 3;
widthWithLocation = 75;
widthWithThreading = 75;
widthWithThreadingWithLocation = 75;
widthWithoutRankAndLocation = 75;
widthWithoutThreading = 75;
widthWithoutThreadingWithLocation = 75;
};
6 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 6;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 20;
widthWithThreading = 20;
widthWithThreadingWithLocation = 20;
widthWithoutRankAndLocation = 20;
widthWithoutThreading = 20;
widthWithoutThreadingWithLocation = 20;
};
7 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 7;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 44;
widthWithThreading = 44;
widthWithThreadingWithLocation = 44;
widthWithoutRankAndLocation = 44;
widthWithoutThreading = 44;
widthWithoutThreadingWithLocation = 44;
};
8 = {
automaticInsertionOkay = 1;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 8;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 75;
widthWithThreading = 75;
widthWithThreadingWithLocation = 75;
widthWithoutRankAndLocation = 75;
widthWithoutThreading = 75;
widthWithoutThreadingWithLocation = 75;
};
9 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 9;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 20;
widthWithThreading = 20;
widthWithThreadingWithLocation = 20;
widthWithoutRankAndLocation = 20;
widthWithoutThreading = 20;
widthWithoutThreadingWithLocation = 20;
};
};
outgoing = {
0 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 0;
isVisible = 1;
position = 1;
positionWhileSearching = 1;
widthWithLocation = 20;
widthWithThreading = 0;
widthWithThreadingWithLocation = 0;
widthWithoutRankAndLocation = 20;
widthWithoutThreading = 20;
widthWithoutThreadingWithLocation = 20;
};
10 = {
automaticInsertionOkay = 1;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 10;
isVisible = 1;
position = 5;
positionWhileSearching = 5;
widthWithLocation = 50;
widthWithThreading = 81;
widthWithThreadingWithLocation = 81;
widthWithoutRankAndLocation = 50;
widthWithoutThreading = 81;
widthWithoutThreadingWithLocation = 81;
};
11 = {
automaticInsertionOkay = 1;
automaticInsertionWhileSearchingOkay = 1;
columnIdentifier = 11;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 46;
widthWithThreading = 46;
widthWithThreadingWithLocation = 46;
widthWithoutRankAndLocation = 46;
widthWithoutThreading = 46;
widthWithoutThreadingWithLocation = 46;
};
13 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 13;
isVisible = 1;
position = 2;
positionWhileSearching = 2;
widthWithLocation = 20;
widthWithThreading = 20;
widthWithThreadingWithLocation = 20;
widthWithoutRankAndLocation = 20;
widthWithoutThreading = 20;
widthWithoutThreadingWithLocation = 20;
};
14 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 14;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 28;
widthWithThreading = 28;
widthWithThreadingWithLocation = 28;
widthWithoutRankAndLocation = 28;
widthWithoutThreading = 28;
widthWithoutThreadingWithLocation = 28;
};
15 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 15;
isVisible = 0;
position = 0;
positionWhileSearching = 0;
widthWithLocation = 18;
widthWithThreading = 18;
widthWithThreadingWithLocation = 18;
widthWithoutRankAndLocation = 18;
widthWithoutThreading = 18;
widthWithoutThreadingWithLocation = 18;
};
16 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 16;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 81;
widthWithThreading = 81;
widthWithThreadingWithLocation = 81;
widthWithoutRankAndLocation = 81;
widthWithoutThreading = 81;
widthWithoutThreadingWithLocation = 81;
};
17 = {
automaticInsertionOkay = 1;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 17;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 10;
widthWithThreading = 10;
widthWithThreadingWithLocation = 10;
widthWithoutRankAndLocation = 10;
widthWithoutThreading = 10;
widthWithoutThreadingWithLocation = 10;
};
18 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 18;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 75;
widthWithThreading = 75;
widthWithThreadingWithLocation = 75;
widthWithoutRankAndLocation = 75;
widthWithoutThreading = 75;
widthWithoutThreadingWithLocation = 75;
};
19 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 19;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 64;
widthWithThreading = 64;
widthWithThreadingWithLocation = 64;
widthWithoutRankAndLocation = 64;
widthWithoutThreading = 64;
widthWithoutThreadingWithLocation = 64;
};
2 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 2;
isVisible = 1;
position = 4;
positionWhileSearching = 4;
widthWithLocation = 100;
widthWithThreading = 100;
widthWithThreadingWithLocation = 100;
widthWithoutRankAndLocation = 100;
widthWithoutThreading = 100;
widthWithoutThreadingWithLocation = 100;
};
20 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 20;
isVisible = 0;
position = 0;
positionWhileSearching = "-1";
widthWithLocation = 250;
widthWithThreading = 938;
widthWithThreadingWithLocation = 250;
widthWithoutRankAndLocation = 250;
widthWithoutThreading = 250;
widthWithoutThreadingWithLocation = 250;
};
3 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 3;
isVisible = 0;
position = 5;
positionWhileSearching = 5;
widthWithLocation = 81;
widthWithThreading = 81;
widthWithThreadingWithLocation = 81;
widthWithoutRankAndLocation = 81;
widthWithoutThreading = 81;
widthWithoutThreadingWithLocation = 81;
};
4 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 4;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 25;
widthWithThreading = 25;
widthWithThreadingWithLocation = 25;
widthWithoutRankAndLocation = 25;
widthWithoutThreading = 25;
widthWithoutThreadingWithLocation = 25;
};
5 = {
automaticInsertionOkay = 1;
automaticInsertionWhileSearchingOkay = 1;
columnIdentifier = 5;
isVisible = 0;
position = 3;
positionWhileSearching = 3;
widthWithLocation = 75;
widthWithThreading = 75;
widthWithThreadingWithLocation = 75;
widthWithoutRankAndLocation = 75;
widthWithoutThreading = 75;
widthWithoutThreadingWithLocation = 75;
};
6 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 6;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 20;
widthWithThreading = 20;
widthWithThreadingWithLocation = 20;
widthWithoutRankAndLocation = 20;
widthWithoutThreading = 20;
widthWithoutThreadingWithLocation = 20;
};
7 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 7;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 44;
widthWithThreading = 44;
widthWithThreadingWithLocation = 44;
widthWithoutRankAndLocation = 44;
widthWithoutThreading = 44;
widthWithoutThreadingWithLocation = 44;
};
8 = {
automaticInsertionOkay = 1;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 8;
isVisible = 1;
position = 3;
positionWhileSearching = 3;
widthWithLocation = 75;
widthWithThreading = 75;
widthWithThreadingWithLocation = 75;
widthWithoutRankAndLocation = 75;
widthWithoutThreading = 75;
widthWithoutThreadingWithLocation = 75;
};
9 = {
automaticInsertionOkay = 0;
automaticInsertionWhileSearchingOkay = 0;
columnIdentifier = 9;
isVisible = 0;
position = "-1";
positionWhileSearching = "-1";
widthWithLocation = 20;
widthWithThreading = 20;
widthWithThreadingWithLocation = 20;
widthWithoutRankAndLocation = 20;
widthWithoutThreading = 20;
widthWithoutThreadingWithLocation = 20;
};
};
};
ThreadingDefault = 1;
UserHeaders = {
reportDSN = HDRS;
};
WebContinuousSpellCheckingEnabled = 1;
junkMailTrustHeaders = 1;
}
I don't think I understand what you're trying to do.
I'm trying to get apple mail to send emails with an instruction to the SMTP server to request delivery status notifications on all emails that are being sent.
Third party mail clients offer this possibility (thunderbird, postbox, gyazmail, mailmate, etc.) but so far I didn't find how apple mail can be told to request for DSN.
Apparently it is done by specifying esmtp-keywords to the RCPT commands and/or MAIL commands
So, what I am trying to do is to tell mail to obtain DSN's on the emails I send, as described in rfc3461
I don't know of any way to do that in Mail. You'd have to use another mail client or run your own MTA.
Do you know the files location with the instructions mail uses to communicate with a mailserver? I could try to search from there, but I don't know which configuration files mail uses for communicating to smtp servers. Thanks!
That's hard-coded in the application. It's not configurable. Mail is designed to meet the needs of most users. If you have specialized needs, it's not for you.
Re-reading my message I understand your answer, it was not very clear. I'm on a steep learning curve and mix up terms.
I meant, which is the configuraiton file holding information such as which account uses which smtp server, with which port, security type, etc.
~/Library/Mail
The file accounts.plist contains useful "keys" for sending emails, the information of those "keys" was in previous versions of OSX in com.apple.mail.plist, and one could add information there.
I tried to add informaiton to the accounts.plist, but when I do that and start mail, mail starts up showing the account configuration panel as if mail is being run for the first time.
Is there a manual or explanation for the syntax used in the accounts.plist file?
Also, the accounts.plist file does not contain the smtp server address itself. In fact, I couldn't find a file in ~/Library/Mail that contains the smtp server addresses for the smtp servers configured in apple mail. Where would these be stored?
Thanks for helping out.
The syntax of the file is that of a property list. The semantics are not publicly documented, as far as I know.
Other Mail settings are in the preference plist, which is in ~/Library/Containers.
I wish you luck in your quest. I don't think I can be of any further help.
Add SMTP headers to mails