SMTP Test Successful, But Error With "Real" Email
-
Running pfSense CE v.2.6.0-RELEASE (amd64)
I have email notifications setup and when clicking on Test SMTP Settings, pfSense claims "SMTP testing e-mail successfully sent" and I get the test message.
Recently our secondary, tier 2, WAN went down and I did not get a message about it. Main WAN was up at the time. The sender and recipient are on this same server/domain. Looking in the logs and I find the entry:
notify_monitor.php: Could not send the message to myemail@eserver.com -- Error: Failed to add recipient: myemail@eserver.com [SMTP: Invalid response code received from server (code: 451, response: Temporarily unable to process your email. Please try again later.)]
At first, I thought this was an issue from our email server, but I find similar entries for previous events, so I am wondering what I may have setup wrong in pfSense.
Is this problem only an issue outside of pfSense?
Thanks.
-
@urbnsr A response code means it connected. Do you have access to the mail server logs to find the entry on that end?
-
@steveits Thanks. I don't have direct access and will request more info. Since I have multiple errors in the pfSense log and no errors reported from users, I was leaning away from completely being the email server's fault.
-
Hello!
A SMTP 451 response is typical from a server that is greylisting. I am not sure if pfsense will try to resend that message after a delay, like an MTA would. Check notifyqueue.messages
and notices_lastmsg.txt in /var/db for the status of the notification.
I always setup a local MTA for pfsense to relay through.John
-
@serbus Thanks John. That's probably a better idea than what I am doing.
I do have it working now, though. I had it testing successfully using port 465 SSL/TLS, but true notifications failed. I changed to 587 plain and notifications are being received.
Thanks for the replies.