Email won't send

Status
Not open for further replies.

Glorious1

Guru
Joined
Nov 23, 2014
Messages
1,211
This may not be a bug, but I don't know what other forum is appropriate. The last few days the email function hasn't worked, although I have changed nothing related to email and the sending and receiving email accounts work fine as near as I can tell.

I have been changing SSH and HTTPS ports, but I don't see how that could be related.

When it should send email (like a test email, in /var/log/messages I get:
Code:
Jan 19 04:55:39 Tabernacle freenas[3364]: Traceback (most recent call last):
Jan 19 04:55:39 Tabernacle freenas[3364]:   File "/usr/local/www/freenasUI/../freenasUI/common/system.py", line 179, in send_mail
Jan 19 04:55:39 Tabernacle freenas[3364]:     local_hostname=local_hostname)
Jan 19 04:55:39 Tabernacle freenas[3364]:   File "/usr/local/lib/python2.7/smtplib.py", line 251, in __init__
Jan 19 04:55:39 Tabernacle freenas[3364]:     (code, msg) = self.connect(host, port)
Jan 19 04:55:39 Tabernacle freenas[3364]:   File "/usr/local/lib/python2.7/smtplib.py", line 311, in connect
Jan 19 04:55:39 Tabernacle freenas[3364]:     self.sock = self._get_socket(host, port, self.timeout)
Jan 19 04:55:39 Tabernacle freenas[3364]:   File "/usr/local/lib/python2.7/smtplib.py", line 286, in _get_socket
Jan 19 04:55:39 Tabernacle freenas[3364]:     return socket.create_connection((host, port), timeout)
Jan 19 04:55:39 Tabernacle freenas[3364]:   File "/usr/local/lib/python2.7/socket.py", line 571, in create_connection
Jan 19 04:55:39 Tabernacle freenas[3364]:     raise err
Jan 19 04:55:39 Tabernacle freenas[3364]: timeout: timed out

That's not too informative to me, but maybe someone else has an idea what the problem is?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Looks like a networking problem. Got any firewall rules restricting email?
 

Glorious1

Guru
Joined
Nov 23, 2014
Messages
1,211
Yes indeed, you put your finger right on it. I had been playing with the firewall settings in the router and absent-mindedly left it on "high" protection, which must restrict email, although strangely it didn't stop email to and from my laptop. You are a wizard, sir!
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Not a wizard. I tried applying, but the guild insisted on me carrying a wand around. I wouldn't have minded too much, but I felt this ominous syndicalist presence behind me, giving me cold feet. Turns out it was the union guy, ready to charge me for the "privilege" of being a union member - he had a poorly insulated box of dry ice on the floor in front of him, hence the cold feet.
 
Status
Not open for further replies.
Top