> On 10 Jan 2019, at 2:01 pm, Larry Stone <lston...@stonejongleux.com > <mailto:lston...@stonejongleux.com>> wrote: > > On Jan 9, 2019, at 19:01, James Brown <jlbr...@bordo.com.au > <mailto:jlbr...@bordo.com.au>> wrote: >> >> Thanks Viktor. It would be great if Postfix would log to disk on newer >> versions of macOS X like it did before. My Mojave test mail server has >> Dovecot logging to /var/log/mail.log but Postfix doesn’t. > > Is this a recent build of Dovecot or was it built on an older version of > MacOS before the logging changes? If the former, ask on the Dovecot list how > they did it. If the latter, it’s a meaningless data point until Dovecot is > rebuilt on a newer version of MacOS. > >> Has anyone managed to do this? I’d rather not have to compile on old Mac and >> transfer. > > Not as far as any of us know. It’s been discussed here before and no solution > has been found. > > — Larry Stone > lston...@stonejongleux.com <mailto:lston...@stonejongleux.com>
Hi Larry. It’s a recent build of Dovecot, compiled on Mojave. Steps to compile were: export CPPFLAGS="-I/usr/local/opt/mysql@5.7/include/mysql -I/usr/local/Cellar/openssl@1.1/1.1.1/include" export LDFLAGS="-L/usr/local/opt/mysql@5.7/lib -L/usr/local/opt/openssl@1.1/lib" ./configure --with-mysql --with-ssl=openssl make sudo make install The setting file for logging, “etc/dovecot/conf.d/10-logging.conf” does have this: ## ## Log destination. ## # Log file to use for error messages. "syslog" logs to syslog, # /dev/stderr logs to stderr. #log_path = syslog log_path = /var/log/mail.log So I’ve had to change this so that it writes directly to the file, and not to syslog. James.