N5200Pro - System freeze when setting up SMTP notification
Hello list -
I was trying to setup the notification section using google's smtp, but the all my systems freeze when I tried to send a Test E-Mail. I have three N5200Pro and I can repeat this on all three boxes.
When a system freezes, I can still ssh into the box as a sys user and see a list of httpd process running, but any attempt to access with a web browser failed. The only thing I can do as user 'sys' is to issue a reboot command, at that point, everything freeze, including access to the raid system and I must boot from USB to restore defaut settings from the factory_test.sh/firmware combo.
My "Nofitication Configuration" was as followed:
Beep Notification Enable
Email Notification Enable
SMTP Server smtp.gmail.com
SMTP Port 465 (instruction came from Google)
Auth Type: on
SMTP Account ID: my_name@gmail.com
Account Password: my_password
E-Mail From: my_name@gmail.com
Receivers' Address: my_name@gmail.com
the system responded normal when you clicked on "Apply". But freeze when I tried the E-Mail Test feature. I assume that my authentication is probably not correct at Google, but my N5200 should time out and returns control back to me or something. What I don't understand is what was causing the system to freeze that I must run factory_test.sh to restore?
Please help.
Re: N5200Pro - System freeze when setting up SMTP notification
Hi rhumba,
Did you manage to configure e-mail notifications with Google Mail? I've tried a number of options, but cannot get it to work :(
Thanks,
Denis
Re: N5200Pro - System freeze when setting up SMTP notification
Google Mail requires TLS for authentication, this option is not available via the notification mail option page, but there is a workaround:
http://thecususergroup.proboards106....ad=1361&page=1
br
Peter
Re: N5200Pro - System freeze when setting up SMTP notification
Hi peterfu,
Thank you so much!
Unfortunately I still cannot get it to work :( The connection to smtp.google.com time-outs.
Here is my config:
Code:
Email Notification: Enable
SMTP Server: smtp.google.com
Port: {set by the update to the conf.db - see below}
Auth Type: plain
SMTP Account ID: {my google account id}
Account Password: {my google account password}
E-Mail From: {my google e-mail}
Receivers' E-Mail Address: {my google e-mail}
Here is what happens when I try to update port and then test e-mail notification:
Code:
root@127.0.0.1:~# /opt/bin/sqlite /app/cfg/conf.db "update conf set v ='587 --tls=on --tls-certcheck=off' where k='notif_smtport'"
root@127.0.0.1:~# /img/bin/logevent/event 201
msmtp: cannot connect to smtp.google.com, port 587: Connection timed out
msmtp: could not send mail
root@127.0.0.1:~# /opt/bin/sqlite /app/cfg/conf.db "update conf set v ='465 --tls=on --tls-certcheck=off' where k='notif_smtport'"
root@127.0.0.1:~# /img/bin/logevent/event 201
msmtp: cannot connect to smtp.google.com, port 465: Connection timed out
msmtp: could not send mail
root@127.0.0.1:~# /opt/bin/sqlite /app/cfg/conf.db "update conf set v ='25 --tls=on --tls-certcheck=off' where k='notif_smtport'"
root@127.0.0.1:~# /img/bin/logevent/event 201
msmtp: the server does not support authentication
msmtp: could not send mail
I've tested whether smtp.google.com is reachable from my N5200 Pro and it is:
Code:
root@127.0.0.1:~# ping smtp.google.com
PING smtp1.google.com (209.85.237.25): 56 data bytes
64 bytes from 209.85.237.25: icmp_seq=0 ttl=237 time=158.4 ms
64 bytes from 209.85.237.25: icmp_seq=1 ttl=237 time=156.6 ms
64 bytes from 209.85.237.25: icmp_seq=2 ttl=237 time=151.0 ms
Any suggestions what else I should try?
Thanks again!
Re: N5200Pro - System freeze when setting up SMTP notification
I think You have to use smtp.gmail.com - at least this is what the instructions say.
http://mail.google.com/support/bin/a...n&answer=13287
br
Peter
Re: N5200Pro - System freeze when setting up SMTP notification
balls my box froze after trying this, was stuck on assemble raid and now self test after a reboot.. fingers crossed it recovers
Re: N5200Pro - System freeze when setting up SMTP notification
Quote:
Originally Posted by
peterfu
I think You have to use smtp.gmail.com - at least this is what the instructions say.
Doh!! This is not the first time I am making this mistake - had exactly the same problem when configured e-mail on my mobile. Thanks for putting me right, Peter, much appreciate it.
After trying a number of options I have finally found the one, which works:
Code:
Email Notification: Enable
SMTP Server: smtp.gmail.com
Port: {set by the update of conf.db to '587 --tls=on --tls-certcheck=off'}
Auth Type: login
SMTP Account ID: {my google account id}
Account Password: {my google account password}
E-Mail From: {my google e-mail}
Receivers' E-Mail Address: {my google e-mail}
Re: N5200Pro - System freeze when setting up SMTP notification
what command did you issue over ssh ?
edit* scrap that /opt/bin/sqlite /app/cfg/conf.db "update conf set v ='25 --tls' where k='notif_smtport'" worked fine :D
Re: N5200Pro - System freeze when setting up SMTP notification
Quote:
Originally Posted by
GoNz0
what command did you issue over ssh ?
First I configured the above parameters using web interface and specified port as 1. Then I run a command from ssh session to update port value:
Code:
root@127.0.0.1:~# /opt/bin/sqlite /app/cfg/conf.db "update conf set v ='587 --tls=on --tls-certcheck=off' where k='notif_smtport'"
After that I used the following command to test the config:
Code:
root@127.0.0.1:~# /img/bin/logevent/event 201
Re: N5200Pro - System freeze when setting up SMTP notification
for some reason the original command on the thecus forum worked :D
Re: N5200Pro - System freeze when setting up SMTP notification
Great, that it works now for both of You
br
Peter
Re: N5200Pro - System freeze when setting up SMTP notification
yes and you dont know how happy i was to find a link to the factory test download for firmware 15 :D
thecus user group wins my vote again