Is your email notification working?
-
Hi all,
My Gmail notification (System > Advanced > Notifications) worked for a long time ie. I would get email when pfsense rebooted. Now it doesn't work, even when I try to send test notification noting happens, I never get email.
Here's what's in log after sending test emailFeb 25 15:10:34 php-fpm[82918]: /system_advanced_notifications.php: Could not send the message to myusername@gmail.com -- Error: 534-5.7.14 0N5nojcbVVhnS6I4AyveT4ZdQnbaSXW_NOXVnYOSuz4gEY5vr5SeAYJ0NaNlZUj5_tkcj2
I'm on v2.2
Please post your working configuration.Here's what worked for me so far:
-
Yes - Frequently.
Maybe its landing in junk or some other?
-
Yes - Frequently.
Maybe its landing in junk or some other?
Thanks for the reply!
My From e-mail address and Notification E-Mail address are both same Gmail address so it does not get blocked.
Also, I doubled checked spam folder. -
Hmmmm - username / password?
-
Error
534 : Message too big. -
What kind of message would pfsense send that is too big for gmail?
-
Dunno. Maybe in header info from the SSL ?
I won't test… Try smtps again after test with 25 and/or 587 ?But, smtps 465 seems a deprecated method. Go for 587 if you must avoid 25.
-
Hmmmm - username / password?
I've re-entered email and password saved and did test, no joy.
Went on https://mail.google.com and using same login info I was able to check my email. -
http://serverfault.com/questions/635139/how-to-fix-send-mail-authorization-failed-534-5-7-14
There is an answer there… Not sure if it will work for you.
-
@hda:
Dunno. Maybe in header info from the SSL ?
I won't test… Try smtps again after test with 25 and/or 587 ?But, smtps 465 seems a depriciated method. Go for 587 if you must avoid 25.
Changed to port 587 and now I'm getting:
Feb 25 16:59:32 php-fpm[5995]: /system_advanced_notifications.php: Could not send the message to myusername@gmail.com -- Error: could not connect to the host "smtp.gmail.com": ??
-
Change back and try the solution in the link I sent previously.
-
The better supported receiver method is just port 25 with or without STARTTLS
-
Sending on port 25 may probably be a ISP nightmare depending on who you ISP is.
-
Oh, then the best method for the future is submission, 587 :D
-
perhaps, but mine is set up same as his with no problems. Quite odd.
-
Usually when I install new piece of hardware that supports email notifications I create for that specific customer new gmail account for notifications use only. Many times I need to do this to get it working properly
https://support.google.com/accounts/answer/6010255?hl=en
It's more reliable to use port 587 then 465. Many devices still do not support SSL.
-
kejianshi you are the man!
Its working now!
As suggested in that post, went to www.google.com/settings/security
and "Access for less secure apps" was turned off, turned it on and voila started working right away.
I searched google but never came across this setting.Thanks again!
-
I did something right? Must be my lucky day…
-
I did something right? Must be my lucky day…
You did a right thing by posting that link ;)
-
Usually when I install new piece of hardware that supports email notifications I create for that specific customer new gmail account for notifications use only. Many times I need to do this to get it working properly
https://support.google.com/accounts/answer/6010255?hl=en
It's more reliable to use port 587 then 465. Many devices still do not support SSL.
Thanks!