On 2 Dec 2018, at 20:31, James Brown wrote:
I’m trying to set up a new mail server on macOS Mojave and it almost
works. Dovecot for IMAP is working.
This is a bad idea. Mojave (like High Sierra and Sierra before it) is
unfit for server duty due to the intentional mangling of logging by
Apple. Without proper logs, detecting subtle problems is difficult and
troubleshooting any blatant problem like this is impossible.
You can get something like a proper mail log by running this command
persistently (i.e. using launchd or batch or whatever else works...)
log stream --info --predicate 'senderImagePath CONTAINS "postfix"'
--style syslog >> /var/log/mail.log
That will give you useful information in a standard-ish format in
/var/log/mail.log.
Without such logging, it is infeasible to troubleshoot your problem.
But when I try to send a message I get:
Escape character is '^]'.
220 mail.bordo.com.au <http://mail.bordo.com.au/> ESMTP Postfix
HELO me.bordo.com.au <http://me.bordo.com.au/>
250 mail.bordo.com.au <http://mail.bordo.com.au/>
MAIL FROM: <jlbr...@bordo.com.au <mailto:jlbr...@bordo.com.au>>
250 2.1.0 Ok
RCPT TO: <jlbr...@bordo.com.au <mailto:jlbr...@bordo.com.au>>
451 4.3.0 <jlbr...@bordo.com.au <mailto:jlbr...@bordo.com.au>>:
Temporary lookup failure
Hopefully all those 'mailto:' and 'http:' links are just some artifact
of how you composed your message. If you're actually sending those to
Postfix, I'm shocked that it even tried to work with them...
It is helpful when posting here to do so in plain text format. I'm sure
Apple Mail can do that, because others here do it all the time.
[...]
Mailboxes are stored in MySQL.
Which is PROBABLY where the failure is. Postfix can't look up the
recipient.
Details of that failure could be in your logs on a server with a sane
logging subsystem (e.g. MacOS before Sierra or anything else Postfix
runs on...) You don't really have logs, because Apple does not want
anyone to have logs. Even with the command I give above, you're going to
get a slightly odd log massaged by both the new broken "unified logging"
subsystem and by the 'log' program that extracts messages back out of
that subsystem for formatting. There is not yet an adequate history of
running Postfix (or any portable server software) on modern macOS for
there to be any real confidence in the logging workaround.
--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Available For Hire: https://linkedin.com/in/billcole