> On Jan 9, 2019, at 9:48 PM, James Brown <jlbr...@bordo.com.au> wrote:
> 
>> On 10 Jan 2019, at 2:01 pm, Larry Stone <lston...@stonejongleux.com> wrote:
>> 
>> 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.
>> 
> 
> Hi Larry. It’s a recent build of Dovecot, compiled on Mojave. 
...
> 
> 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.

Ah. So Dovecot has the ability to write logs directly. I believe Wietse has 
stated in the past that no such capability exists in Postfix and it only logs 
to the syslog daemon. And it’s the changes Apple has made to syslog that are 
the issue.

Bill Cole posted (again) a workaround that you can pursue. Beyond that, unless 
Wietse decides to modify Postfix’s logging to support alternate methods such as 
Dovecot does (and I have not the slightest clue how involved that might be - 
you’re welcome to do it yourself if you’re so inclined), we really don’t have a 
solution given Apple’s decision to move away from the Unix standard for logging.

Bill also stated that MacOS is no longer a suitable platform for being a server 
and I largely concur. I used to run a full mail server but gave up on that 
three years ago and moved my mail to an outside service (and as I now have a 
provider that blocks port 25, not an option for me anymore anyway). I still run 
Postfix but only for getting system generated emails off the system to my 
outside mail service (I have some system status processes that alert me to 
various issues that can occur) so logging is not the concern for me today that 
it was when I was running the full server.

-- 
Larry Stone
lston...@stonejongleux.com

Reply via email to