I am trying to connect the (vital) email output from our new MantisBT bugtracking system to use our email server as a smart host. The idea is that the MantisBT system sends TLS traffic to port 587 on the email server, authenticating as special user ([email protected]), and the email server sends it to the destination. My understanding is that this is the right way to do it, but I could be wrong.
MantisBT uses phpmailer, which is (I think) appropriately configured to use SMTP 587, user id, yada, yada. The email server is a long standing iRedMail installation (which internally uses postfix) with no known issues. We use this technique for outgoing traffic for other internal servers without problem. Both servers are running Rocky Linux 9.1.
The problem is that all of MantisBT's attempts to send messages are immediately dropped.
I have enabled detailed debugging for MantisBT's ip in postfix, and get the following (left side of log removed for clarity):
> unknown[159.xx.xx.20]: 220 mailserver.mydomain.com ESMTP Postfix
watchdog_pat: 0x564330697960
< unknown[159.xx.xx.20]: ????
> unknown[159.xx.xx.20]: 500 5.5.2 Error: bad UTF-8 syntax
watchdog_pat: 0x564330697960
< unknown[159.xx.xx.20]: ??????
> unknown[159.xx.xx.20]: 500 5.5.2 Error: bad UTF-8 syntax
watchdog_pat: 0x564330697960
< unknown[159.xx.xx.20]:
dict_pcre_lookup: /etc/postfix/command_filter.pcre:
> unknown[159.xx.xx.20]: 500 5.5.2 Error: bad syntax
watchdog_pat: 0x564330697960
smtp_get: EOF
Does anyone recognize this? Why would phpmailer send four question marks as a command in an SMTP exchange? Is this about STARTTLS?
Thanks for all help!