[deleted] Hi - I'm seeing the below in the logs when attempting to send any mail from my server via Flarum [2020-12-16 15:44:24] flarum.ERROR: Swift_TransportException: Expected response code 354 but got code "554", with message "554 5.5.1 Error: no valid recipients " in /home/domain/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:460 Any thoughts ?
clarkwinkelmann [deleted] what SMTP provider are you using? Maybe the "from" address you sent is not an allowed outbound address from that SMTP account?
IanM [deleted] something I experienced during the Flarum upgrade with emal settings was that previously the value for encryption was TLS, however it required changing to tls. I forget the error that was thrown, but this feels the same/similar?
[deleted] clarkwinkelmann I'm using my own provider - it's a postfix server. The from address I'm sending as is permitted, as I login with the actual mail account, but the sender is an alias.
[deleted] IanM Thanks, although I have TLS in lowercase. What's also odd is that the Flarum test mailer works.
[deleted] IanM I am, yes. Let me check. EDIT: Disabled. I can send email via port 25 ok, so there's an issue somewhere. I'll need to see if I can create a test account.
IanM [deleted] very bizarre indeed I'm assuming this is beta 14? Does this happen on all emails (other than the test which you said is fine), or only specific use cases?
[deleted] IanM Yes, Beta 14. I've tried with two GMAIL accounts, and will try with another provider. EDIT - doesn't matter which address. It's the same regardless of the domain
[deleted] Any other thoughts around this ? My other Flarum instance is on Beta 13 and does not have this issue !
[deleted] Ok, this is very odd. If I change the mail driver to "mail", it works fine !! Obviously, I'd rather use SMTP, but this is a workaround for the moment. Anyone else experiencing this issue ?
clarkwinkelmann Since 5** are usually server error codes, the SMTP server logs should be able to provide more information there? Or any exact meaning for the error code from the software documentation?
[deleted] MartinJD thanks. I'm still reviewing the logs. Odd thing is that I have two other forums (beta 13) using the same config on the same server and they do not exhibit the same issues.
clarkwinkelmann Laravel was updated, and since the mail package is part of Laravel it's likely some change happened with the library. Maybe the protocol is used a bit differently, or some headers were changed, or something like that. However I don't know about any major change that might have happened in the library.
[deleted] clarkwinkelmann yes, I'm still studying logs but I'm not seeing anything immediately obvious. What is odd is that tls and port 587 doesn't seem to work - neither does SSL and port 465. Port 25 works, but unless you change the driver to mail, no email is ever sent and the message I provided earlier appears in the logs.
[deleted] Resolved. Me being a total idiot forgot to copy the certificate to Dovecot / Postfix :-( Once I did this, everything worked as intended.