Page 1 of 1

[email] Failed to initiate TLS connection

Posted: February 1st, 2010, 8:13 am
by FuriousRage
Version: 0.4.12
OS: Windows 7 Professional
Install-type: Windows Installer
Skin (if applicable): DEfault skin, darkblue color schema
Firewall Software: Windows 7 built in, DIR-655 router
Are you using IPV6? no
Is the issue reproducible? dont know.
The other day i changed my email servers certificate from a self-signed to a certificate that i got from www.cacert.org
After this change, SABnzbd+ refuses to connect to my mail server even if i change back to the self signed one,
it seems like the certificate is cached somewhere, but i did a test on renaming the sabnzbd profile directory so it would create a
compleatly new settings, i re-entered my email credentials and tried the "test email" button in the web interface.

if i use mydomain:25 i get the error: ::ERROR::[email] Failed to initiate TLS connection
if i use no port or mydomain:465 i get: ::ERROR::[email] Failed to connect to mail server

This is a part of the log considering the email connection sabnzbd tries to make:

Code: Select all


2010-02-01 12:29:06,454::INFO::[email] Connecting to server my.email-domain:25
2010-02-01 12:29:06,892::DEBUG::[email] Non-SSL mail server detected reconnecting to server my.email-domain:25
2010-02-01 12:29:07,171::DEBUG::[%s] TLS mail server detected
2010-02-01 12:29:07,181::ERROR::[email] Failed to initiate TLS connection
2010-02-01 12:30:13,186::ERROR::[email] Failed to connect to mail server

SABnzbd both find and doesnt find an TLS/SSL smtp-server.

I have spent the better part of my day debugging the mail server, the underlaying OS's firewall settings
and my routers settings, my local OS firewall settings and now SABnzbd.

I have tried connect to the mails erver using other clients such as the web mail and thunderbird connecting to the SSL of the mail server,
thos works without fault, i also have others far outside my own isp network (another country in fact) he can also connect without any problems to the mail server.

EDIT: i did try using another email service, so i tried my other domain that uses google apps email, and i had the same problems there after the same extended testing with different ports and such.

Re: [email] Failed to initiate TLS connection

Posted: February 1st, 2010, 9:39 am
by shypike
We simply do not have the resources to test email extensively.
But it does work with Gmail and GoogleApps (port 587).
You are sure you don't have a "clever" virus scanner interfering?
I was bitten once by McAfee blocking my outgoing email.

Re: [email] Failed to initiate TLS connection

Posted: February 1st, 2010, 9:40 am
by FuriousRage
shypike wrote: We simply do not have the resources to test email extensively.
But it does work with Gmail and GoogleApps (port 587).
You are sure you don't have a "clever" virus scanner interfering?
I was bitten once by McAfee blocking my outgoing email.
I have the same antivirus as i had when sabnzbd worked a few days ago, as i have now, when it doesnt work
(www.cloudnativirus.com atm)

Re: [email] Failed to initiate TLS connection

Posted: February 1st, 2010, 9:44 am
by shypike
I wouldn't know where certificates were cached.
SABnzbd doesn't do it and as fas as I know neither does the SSL library.
In fact SABnzbd doesn't even authenticate received certificates.
We support TLS because of the encryption and because some servers require it.

Re: [email] Failed to initiate TLS connection

Posted: February 1st, 2010, 9:46 am
by FuriousRage
shypike wrote: I wouldn't know where certificates were cached.
SABnzbd doesn't do it and as fas as I know neither does the SSL library.
In fact SABnzbd doesn't even authenticate received certificates.
We support TLS because of the encryption and because some servers require it.
i seem to have got it to work with google apps again
all i did this time was remove all email settings, save, restart sabnzbd, then re-enter the info anbd test email and it succeeded.

Re: [email] Failed to initiate TLS connection

Posted: February 1st, 2010, 11:38 am
by shypike
Very strange. This suggests that the content of the INI file as damaged.
You already fixed it, so there's no possibility to see what happened any more.

Re: [email] Failed to initiate TLS connection

Posted: May 10th, 2012, 9:04 pm
by angelviper007
Sorry to dig up an old thread, but I've having the same issue.
I've got a Synology NAS and everything else SABnzdb related is working fine.
The NAS is connected a router in the DMZ. I would love to put it behind it but a story for another time.
Everytime it tries to email me I get the error "Failed to initiate TLS connection"
Does any one know why this is happening? Is there a specific port I need to open on the NAS?

Re: [email] Failed to initiate TLS connection

Posted: May 10th, 2012, 11:30 pm
by shypike
Is this about email?

Re: [email] Failed to initiate TLS connection

Posted: May 11th, 2012, 12:17 am
by angelviper007
shypike wrote:Is this about email?
Yes it is,
Thanks

Re: [email] Failed to initiate TLS connection

Posted: May 11th, 2012, 3:17 am
by shypike
Our resources are limited and we cannot support each and every email server in the world.
Google mail is definitely supported.
Normally email clients (like SABnzbd) can operate behind a router.