Just to contribute back a little, in case it helps someone else, I have Postfix 
3.1.4 installed and running on OSX Sierra 10.12.2  and actually running outside 
of the native Apple installation.
If you leave it in the default Apple directories, it gets overwritten by OS 
upgrades. A very bad thing. It undoes lots of work. So I moved it outside of 
the standard default Apple thing. I have done this because I needed to compile 
in a lot of things that the Apple stock version doesn’t have.

Even so - be very careful if you install onto Apple, during the Install script 
phase, to check the default directories that are presented are the ones you 
want. NOT the system ones.

At the risk of giving people heart attacks, this is my make script. You can see 
that I am compiling in a number of extra options.

make -f Makefile.init dynamicmaps=yes CCARGS='-DHAS_MYSQL 
-I/usr/local/include/mysql -DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL 
-I/opt/local/include/sasl -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DHAS_PCRE 
-I/opt/local/include -DEF_COMMAND_DIR=\"/usr/local/sbin\" 
-DEF_CONGIG_DIR=\"/usr/local/etc/postfix\" 
-DEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" 
-DEF_DATA_DIR=\"/var/lib/postfix\" -DEF_MAILQ_PATH=\"/usr/local/bin/mailq\" 
-DEF_HTML_DIR=\"/usr/share/doc/postfix/html\" 
-DEF_MANPAGE_DIR=\"/usr/local/man\" 
-DEF_NEWALIAS_PATH=\"/usr/local/bin/newaliases\" 
-DEF_QUEUE_DIR=\"/private/var/spool/postfix\" 
-DEF_README_DIR=\"/usr/share/doc/postfix\" 
-DEF_SENDMAIL_PATH=\"/usr/local/sbin/sendmail\"' 'AUXLIBS=-L/opt/local/lib 
-lsasl2 -lssl -lcrypto -licuuc' 'AUXLIBS_MYSQL=-L/usr/local/lib -lmysqlclient 
-lz -lm' 'AUXLIBS_PCRE=-L/opt/local/lib -lpcre' 
command_directory=/usr/local/sbin config_directory=/usr/local/etc/postfix 
meta_directory=/usr/local/etc/postfix 
daemon_directory=/usr/local/libexec/postfix mailq_path=/usr/bin/mailq 
newaliases_path=/usr/bin/newaliases sendmail_path=/usr/local/sbin/sendmail 
shlib_directory=/usr/local/lib/postfix

Upon installation, I have opted not to put the docs and html files onto the 
setup. I never use them so no point. Answer [no] to those questions.

To start Postscript I use the following plist file. Based in 
/Library/LaunchDaemons

org.postfix.master.plist 

and start it with “sudo load -w org.postfix.master.plist” If you want to stop 
it completly, use  “sudo unload -w org.postfix.master.plist” otherwise it just 
keeps respawning.

zeus:LaunchDaemons robert$ cat org.postfix.master.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<dict>
        <key>Label</key>
        <string>org.postfix.master</string>
        <key>Program</key>
        <string>/usr/local/libexec/postfix/master</string>
        <key>ProgramArguments</key>
        <array>
                <string>master</string>
        </array>
                <key>RunAtLoad</key>
        <true/>
         <key>KeepAlive</key>
                         <false/>
</dict>
</plist>


If that helps anyone in the future. Good. You will probably have to tweek stuff 
for your particular installation, but it works for me, so I’m a happy bunny.
And finally, thanks for the very kind past help that has been offered to me on 
this list. I’m not the smartest kid on the block but I struggle along.

Robert

 

Reply via email to