> On Jul 27, 2020, at 11:05 AM, Larry Stone <lston...@stonejongleux.com> wrote: > > I’m trying to figure out how to tell make {install | upgrade} to install > sendmail eleswhere? I tried sendmail_path=/usr/local/sbin as well as > -DDEF_SENDMAIL_PATH and while that changes the default value of > sendmail_path, it still installs in /usr/sbin.
Never mind (at least somewhat). I found after pouring through the install script that at least for upgrades, it looks at main.cf so once I changed it in main.cf, it installed sendmail to /usr/local/sbin as I wanted. Which leads to a new question. In working on this, I modified my “make makefiles” to add a sendmail_path argument (which worked to change the default value) and later as I worked through this, a -DDEF_SENDMAIL_PATH to CCARGS. Do I need both in the “make makefiles” command? My full command is below (based on a template Viktor provided me years ago although I think he recommends something slightly different now). make -f Makefile.init makefiles CCARGS='-DUSE_TLS -I/usr/local/ssl/include \ -DUSE_SASL_AUTH \ -DUSE_CYRUS_SASL \ -I/usr/local/include/sasl \ -DDEF_SERVER_SASL_TYPE=\"dovecot\"\ -DDEF_COMMAND_DIR=\"/usr/local/sbin\"\ -DDEF_SENDMAIL_PATH=\"/usr/local/sbin\"\ -DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\"\ -DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\"\ -DHAS_PCRE -I/usr/local/include' \ AUXLIBS='-L/usr/local/lib -lpcre -L/usr/local/ssl/lib -lssl -lcrypto \ -L/usr/local/lib -lsasl2' \ sendmail_path=/usr/local/sbin Thanks. — Larry Stone lston...@stonejongleux.com