Trying to setup outgoing email server: some kind of strange python error

Status
Not open for further replies.

senior_hombre

Explorer
Joined
Feb 11, 2012
Messages
51
Hi,
iam trying to configure the freeNAS email settings to be able to get warnings and volume test results at my root email.
I have an own mailserver on a root server, which is configured for SSL/TLS.
To keep it simple for a first test i just used the account details of a already working email account on this server, by just copying the thunderbird configuration data over to the freeNAS email settings (yes i can send emails via thunderbird using the exact same configuration values):
this includes:
from email: root@freenas.local (i gave root an email adress on the user settings)
outgoing mail server: myserver.dom (exact the same as in thunderbird, but this is an example)
port: 465
TLS/SSL: TLS (on thunderbird i can directly select: SSL/TLS)
use smtp auth: yes
username: the same as in thunderbird
password: the same

After saving i hit the "send test mail button" and got the following error:
Your test email could not be sent: Connection unexpectedly closed: timed out

i looked into the maillog on the NAS:
Code:
Aug 1 22:16:26 freenas freenas[2924]: Traceback (most recent call last):
Aug 1 22:16:26 freenas freenas[2924]: File "/usr/local/www/freenasUI/../freen
asUI/common/system.py", line 172, in send_mail
Aug 1 22:16:26 freenas freenas[2924]: local_hostname=local_hostname)
Aug 1 22:16:26 freenas freenas[2924]: File "/usr/local/lib/python2.7/smtplib.
py", line 251, in __init__
Aug 1 22:16:26 freenas freenas[2924]: (code, msg) = self.connect(host, port
)
Aug 1 22:16:26 freenas freenas[2924]: File "/usr/local/lib/python2.7/smtplib.
py", line 312, in connect
Aug 1 22:16:26 freenas freenas[2924]: (code, msg) = self.getreply()
Aug 1 22:16:26 freenas freenas[2924]: File "/usr/local/lib/python2.7/smtplib.
py", line 360, in getreply
Aug 1 22:16:26 freenas freenas[2924]: + str(e))
Aug 1 22:16:26 freenas freenas[2924]: SMTPServerDisconnected: Connection unexpe
ctedly closed: timed out

then i looked at the maillog at my mailserver but there was no information about any attempt to reach the smtp service.

I have no experience with python, can anyone help me?
 
D

dlavigne

Guest
Please create a bug report at bugs.freenas.org that includes the full traceback, not just a portion of it. Post the issue number here.
 

senior_hombre

Explorer
Joined
Feb 11, 2012
Messages
51
that was the full log regarding this error, or what do you mean with full traceback, where do i find the full traceback?
 
D

dlavigne

Guest
Hmm, did it not give a traceback (a window with a bunch of messages which includes the FreeNAS version)? If not, post those log messages and include the FreeNAS build from the System Information screen when making the ticket.
 

senior_hombre

Explorer
Joined
Feb 11, 2012
Messages
51
No after i hit the send testmail button only the last sentence from the log appeared: Connection unexpectedly closed: timed out
then i just used the shell access the mail log. I will create a bug report now.
 
Status
Not open for further replies.
Top