[opendmarc-users] Is anyone using openedmarc on OSX with postfix

Steve Wardle steve at swid.co.uk
Sat Dec 5 15:37:02 PST 2015


> On 5 Dec 2015, at 18:51, robert at chalmers.com.au wrote:
> 
> Is anyone using this on OSX 10.11?
> I'm having trouble getting it to start up from  a plist and to compile with-spf
> 
> But it seems there are very few people running on OSX with postfix.
> 

I originally compiled opendmarc to use libspf2 from http://www.libspf2.org

cd /usr/local/src/libspf2-1.2.10
# edit ./src/include/spf_log.h
# from line 40 down edit the following defines (can’t remember where I got the tip)

#define SPF_errorf(format, ... ) SPF_errorx( __FILE__, __LINE__, format, ##__VA_ARGS__ )
#define SPF_warningf(format, ... ) SPF_warningx( __FILE__, __LINE__, format, ##__VA_ARGS__ )
#define SPF_infof(format, ... ) SPF_infox( __FILE__, __LINE__, format, ##__VA_ARGS__ )
#define SPF_debugf(format, ... ) SPF_debugx( __FILE__, __LINE__, format, ##__VA_ARGS__ )

./configure
make check
sudo make install

# opendmarc from http://sourceforge.net/projects/opendmarc/files/

cd /usr/local/src/opendmarc-1.3.1
./configure --with-spf --with-spf2-include=/usr/local/include/spf2 --with-spf2-lib=/usr/local/lib
make
sudo make install

# to add daemon user opendmarc
sudo dscl
cd /Local/Default/
ls Users uid
create Users/_opendmarc UserShell /usr/bin/false
create Users/_opendmarc UniqueID 498
create Users/_opendmarc PrimaryGroupID 498
create Users/_opendmarc NFSHomeDirectory /dev/null
quit

# ensure /usr/local/etc/opendmarc.conf contains
	UMask 077
	UserID _opendmarc

I’ve since compiled opendmarc without libspf2 and switched to using python-policyd-spf for spf checks.
It allows finer control and provides more informative logging.
https://launchpad.net/pypolicyd-spf/

It has a few dependancies one of which needed patching.
-- 
Steve





-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3571 bytes
Desc: not available
URL: <http://www.trusteddomain.org/pipermail/opendmarc-users/attachments/20151205/8bd88b34/attachment.bin>


More information about the opendmarc-users mailing list