<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">Hi Steve</div><div class=""><br class=""></div><div class="">Well, I have it compiled fine now, thank you for that pointer. … But still can’t start it from the plist. Obviously doing something wrong but damed if i can locate it. Any ideas.</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><?xml version="1.0" encoding="UTF-8"?></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "<a href="http://www.apple.com/DTDs/PropertyList-1.0.dtd" class="">http://www.apple.com/DTDs/PropertyList-1.0.dtd</a>"></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><plist version="1.0"></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><dict></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> <key>UserName</key></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> <string>_opendmarc</string></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> <key>GroupName</key></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> <string>_opendmarc</string><span class="Apple-tab-span" style="white-space:pre"> </span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span><key>KeepAlive</key></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span><true/></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span><key>Label</key></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span><string>opendmarc</string></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span><key>ProgramArguments</key></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span><array></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span><string>/usr/local/sbin/opendmarc</string></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span><string>-c</string></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span><string>/usr/local/etc/opendmarc.conf</string></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span></array></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span><key>RunAtLoad</key></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span><true/></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""></dict></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""></plist></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">system.log</div><div class=""><br class=""></div><div class=""><span style="font-family: Menlo; font-size: 11px;" class="">robert : TTY=ttys003 ; PWD=/Library/LaunchDaemons ; USER=root ; COMMAND=/bin/launchctl load -w local.opendmarc.plist</span></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Dec 6 13:25:10 zeus com.apple.xpc.launchd[1] (opendmarc): This service is defined to be constantly running and is inherently inefficient.</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Dec 6 13:25:10 zeus com.apple.xpc.launchd[1] (opendmarc): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Dec 6 13:25:20 zeus opendmarc[30360]: OpenDMARC Filter: Unable to bind to port inet:8893@localhost: Address already in use</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Dec 6 13:25:20 zeus opendmarc[30360]: OpenDMARC Filter: Unable to create listening socket on conn inet:8893@localhost</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Dec 6 13:25:20 zeus com.apple.xpc.launchd[1] (opendmarc[30360]): Service exited with abnormal code: 69</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Dec 6 13:25:20 zeus com.apple.xpc.launchd[1] (opendmarc): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Dec 6 13:25:26 zeus sudo[30361]: robert : TTY=ttys003 ; PWD=/Library/LaunchDaemons ; USER=root ; COMMAND=/bin/launchctl unload -w local.opendmarc.plist</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">opendmarc/opendmarc.conf</div><div class="">The only uncommented bits …</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">AuthservID HOSTNAME</div></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><div style="margin: 0px; line-height: normal;" class="">Socket inet:8893@localhost</div><div style="margin: 0px; line-height: normal;" class=""><div style="margin: 0px; line-height: normal;" class="">Umask 077</div><div style="margin: 0px; line-height: normal;" class=""><div style="margin: 0px; line-height: normal;" class="">serID _opendmarc</div><div style="margin: 0px; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; line-height: normal;" class="">and in postfix/main.cf</div></div><div style="margin: 0px; line-height: normal;" class=""><br class=""></div></div><div style="margin: 0px; line-height: normal;" class=""><div style="margin: 0px; line-height: normal;" class=""><div style="margin: 0px; line-height: normal;" class="">###############################</div><div style="margin: 0px; line-height: normal;" class=""># dkim & dmarc</div><div style="margin: 0px; line-height: normal;" class="">smtpd_milters = inet:127.0.0.1:8891,inet:127.0.0.1:8893</div><div style="margin: 0px; line-height: normal;" class="">non_smtpd_milters = inet:127.0.0.1:8891,inet:127.0.0.1:8893</div><div style="margin: 0px; line-height: normal;" class="">milter_default_action = accept</div><div style="margin: 0px; line-height: normal;" class="">################################</div></div></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class="">Robert Chalmers</div><div class=""><a href="mailto:robert@chalmers.com" class="">robert@chalmers.com</a>.au Quantum Radio: <a href="http://tinyurl.com/lwwddov" class="">http://tinyurl.com/lwwddov</a></div><div class=""><div class="">Mac mini 6.2 - 2012, Intel Core i7,2.3 GHz, Memory:16 GB. El-Capitan 10.11. 2TB Storage made up of - </div><div class="">Drive 0:HGST HTS721010A9E630. Upper bay. Drive 1:ST1000LM024 HN-M101MBB. Lower Bay</div></div></div><div class=""><br class=""></div></div></div><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 5 Dec 2015, at 23:37, Steve Wardle <<a href="mailto:steve@swid.co.uk" class="">steve@swid.co.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><blockquote type="cite" class="">On 5 Dec 2015, at 18:51, <a href="mailto:robert@chalmers.com.au" class="">robert@chalmers.com.au</a> wrote:<br class=""><br class="">Is anyone using this on OSX 10.11?<br class="">I'm having trouble getting it to start up from a plist and to compile with-spf<br class=""><br class="">But it seems there are very few people running on OSX with postfix.<br class=""><br class=""></blockquote><br class="">I originally compiled opendmarc to use libspf2 from <a href="http://www.libspf2.org" class="">http://www.libspf2.org</a><br class=""><br class="">cd /usr/local/src/libspf2-1.2.10<br class=""># edit ./src/include/spf_log.h<br class=""># from line 40 down edit the following defines (can’t remember where I got the tip)<br class=""><br class="">#define SPF_errorf(format, ... ) SPF_errorx( __FILE__, __LINE__, format, ##__VA_ARGS__ )<br class="">#define SPF_warningf(format, ... ) SPF_warningx( __FILE__, __LINE__, format, ##__VA_ARGS__ )<br class="">#define SPF_infof(format, ... ) SPF_infox( __FILE__, __LINE__, format, ##__VA_ARGS__ )<br class="">#define SPF_debugf(format, ... ) SPF_debugx( __FILE__, __LINE__, format, ##__VA_ARGS__ )<br class=""><br class="">./configure<br class="">make check<br class="">sudo make install<br class=""><br class=""># opendmarc from <a href="http://sourceforge.net/projects/opendmarc/files/" class="">http://sourceforge.net/projects/opendmarc/files/</a><br class=""><br class="">cd /usr/local/src/opendmarc-1.3.1<br class="">./configure --with-spf --with-spf2-include=/usr/local/include/spf2 --with-spf2-lib=/usr/local/lib<br class="">make<br class="">sudo make install<br class=""><br class=""># to add daemon user opendmarc<br class="">sudo dscl<br class="">cd /Local/Default/<br class="">ls Users uid<br class="">create Users/_opendmarc UserShell /usr/bin/false<br class="">create Users/_opendmarc UniqueID 498<br class="">create Users/_opendmarc PrimaryGroupID 498<br class="">create Users/_opendmarc NFSHomeDirectory /dev/null<br class="">quit<br class=""><br class=""># ensure /usr/local/etc/opendmarc.conf contains<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>UMask 077<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>UserID _opendmarc<br class=""><br class="">I’ve since compiled opendmarc without libspf2 and switched to using python-policyd-spf for spf checks.<br class="">It allows finer control and provides more informative logging.<br class=""><a href="https://launchpad.net/pypolicyd-spf/" class="">https://launchpad.net/pypolicyd-spf/</a><br class=""><br class="">It has a few dependancies one of which needed patching.<br class="">-- <br class="">Steve<br class=""><br class=""><br class=""><br class=""><br class=""><br class=""></div></div></blockquote></div><br class=""></body></html>