SMTP notifications not working with gmail
-
Have a read of this http://strongitguy.com/setting-up-custom-app-passwords-in-gmail-for-smtp-email-notifications-in-pfsense/
-
Thanks for speedy reply slim2016, unfortunately, I tried the guide and still receive the same error code as posted above. The only difference is that the ending port number is 465 instead of 587.
-
I was using a different email for my notification but i thought I give this gmail a go and it worked at first try. I did however copy and pasted the password on a text file first just to make sure there wasn't any spaces. Maybe someone with more experience can help you.
-
I wouldn't call this solved, more of a temporary workaround until it's solved. I got it to where I can get the emails utilizing an internal SMTP relay server, that then forwards said emails onwards.
-
I have been using pfsense and gmail in the notification for like ever.. Never had any issues. Below is my setup..
I blacked out the gmail address using… And the password is a app password setup in gmail.
-
SMTP Port of E-Mail server: Tried both 465 and 587
Secure SMTP Connection: I leave it checked.Set the port to 587 and uncheck "Secure SMTP Connection" it will then use StartTLS.
-
Yup that works too… Just changed settings and still works...
edit: Here is the exchange of sending test message.. Which is what I would suggest you do.. So you can actually see what the problem is..
-
Solved!
Every time you test the connection you have a to reinput the password. Even though you'll see the shortened black dots, the password is not saved from the test before. (I'm assuming it's reverting to what it has saved but can't say for certain.) I was seeing the shortened black dots and thought PFSense was rolling over the password from the previous try this was not the case. Once I copied the setting of johnpoz (with the appropriately changed email addresses) it worked like a charm the first time, and when tested again it failed like before. That's what clued me in.
If I entered everything fresh, hit save, THEN hit test I could get it working multiple times in a row.
Thank you everyone for your help with this!
-
Glad you got it working… But it clearly states on the form that "The last SAVED values will be used, not necessarily the values entered here." ;)
-
Had the same issue. Password wasn't saved and would be gone when I re-opened the interface.
Test wouldn't work after re-opening the interface, while it worked after I saved.- Disabled/Enabled SMTP over SSL
- Changed port
- Hit save a couple of times in between.
Now the password is kept saved, back on SSL and port 465.
Test also works after reloading the interface.Definitely something funky going on here.
-
@opensourceprotection said in SMTP notifications not working with gmail:
Solved!
Every time you test the connection you have a to reinput the password. Even though you'll see the shortened black dots, the password is not saved from the test before. (I'm assuming it's reverting to what it has saved but can't say for certain.) I was seeing the shortened black dots and thought PFSense was rolling over the password from the previous try this was not the case. Once I copied the setting of johnpoz (with the appropriately changed email addresses) it worked like a charm the first time, and when tested again it failed like before. That's what clued me in.
If I entered everything fresh, hit save, THEN hit test I could get it working multiple times in a row.
Thank you everyone for your help with this!
This was the solution to the issue I was having! Thanks for your help.