Mac Server on Sierra won't sign email with DKIM

I'm running Mac Server 5.2 on a new, clean install of macOS Sierra. Since upgrading to Sierra, my outgoing email is no longer being signed with DKIM. I followed the same steps I did previously (summarized here: https://classicyuppie.com/protecting-your-domain-with-spf-and-dkim/). Has anyone figured out how to get DKIM working with Server 5.2 on macOS 10.12?

MacBook Pro, OS X Server, Running on macOS Sierra

Posted on Sep 26, 2016 2:32 PM

Reply
7 replies

Feb 10, 2017 9:43 AM in response to jjennings089

Thank you SOOOOO much for discovering and posting this fix.


I have literally spent days reviewing both the Topicdesk and classicyuppie tutorials reviewing my settings.


I had DKIM implemented and running for a while and accidentally discovered the server was no longer signing. I spent many hours going over my configs with a fine toothed comb, revising and tweaking only to discover nothing would resolve the issue.


This 2 minute bug fix saved me more days of fruitless troubleshooting! Thanks!

Sep 27, 2016 10:14 PM in response to j.light

Thanks for the tip! I found this related amavis-users post: https://lists.amavis.org/pipermail/amavis-users/2016-July/004428.html


According to that diff, the location to add the $msginfo->originating(c('originating')); was not at line 22852 in my amavisd. YMMV. Hopefully Apple patches this in the next Server release or I'll have to remember this all over again.

Sep 27, 2016 10:33 PM in response to jjennings089

To clarify things in macOS server 5.2 the issue is in this location /Applications/Server.app/Contents/ServerRoot/usr/bin/amavisd


if you open in vi find the line that is # treat unknown client IP address as 0.0.0.0,


a few lines down is Amavis::load_policy_bank($_,$msginfo) for @bank_names_cl;


there is a blank line that line needs to be filled in with: $msginfo->originating(c('originating'));


so no mater what line number it is if you can find the "# treat unknown client IP address as 0.0.0.0,"


the "$msginfo->originating(c('originating'));" should be under sans the ""


Amavis::load_policy_bank($_,$msginfo) for @bank_names_cl;

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Mac Server on Sierra won't sign email with DKIM

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.