On 2 Nov 2018, at 4:11 pm, Viktor Dukhovni <[email protected] <mailto:[email protected]>> wrote: > > On Fri, Nov 02, 2018 at 03:09:02PM +1100, James Brown wrote: > >> I run make with: >> >> $ make -f Makefile.init makefiles CCARGS='-DUSE_TLS -DUSE_SASL_AUTH \ >> -DDEF_SERVER_SASL_TYPE=\"dovecot\" \ >> -DDEF_COMMAND_DIR=\"/usr/local/sbin\" \ >> -DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\" \ >> -DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" \ >> -DHAS_PCRE -I/usr/local/opt//include \ >> -DHAS_SSL -I/usr/local/opt/[email protected] \ >> -DHAS_MYSQL -I/usr/local/opt/[email protected]/include/mysql' >> AUXLIBS='-L/usr/local/lib -lpcre -lssl -lcrypto >> -L/usr/local/opt/[email protected]/lib \ >> -lmysqlclient -lz -lm >> >> How can I make it use /usr/local for sendmail? > > http://www.postfix.org/INSTALL.html#build_over > <http://www.postfix.org/INSTALL.html#build_over> > > -- > Viktor.
That was it Viktor, I had already been there, but was using '-sendmail_path=/usr/local/sbin/‘. Ie putting a hyphen at the front out of habit. Removed the hyphen and got: Updating /usr/local/sbin/sendmail... Updating /usr/bin/newaliases... rm: /usr/bin/newaliases: Operation not permitted make: *** [install] Error 1 So obviously I also needed to do a few more. Anyway, finally got it to work with: make -f Makefile.init makefiles CCARGS='-DUSE_TLS -DUSE_SASL_AUTH \ -DDEF_SERVER_SASL_TYPE=\"dovecot\" \ -DDEF_COMMAND_DIR=\"/usr/local/sbin\" \ -DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\" \ -DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" \ -DHAS_PCRE -I/usr/local/opt//include \ -DHAS_SSL -I/usr/local/opt/[email protected] \ -DHAS_MYSQL -I/usr/local/opt/[email protected]/include/mysql' AUXLIBS='-L/usr/local/lib -lpcre -lssl -lcrypto -L/usr/local/opt/[email protected]/lib \ -lmysqlclient -lz -lm' sendmail_path=/usr/local/sbin/sendmail newaliases_path=/usr/local/bin/newaliases mailq_path=/usr/local/bin/mailq Thanks heaps for your help Victor. James.
