[email] Failed to initiate TLS connection

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
FuriousRage
Newbie
Newbie
Posts: 7
Joined: April 1st, 2009, 11:58 pm

[email] Failed to initiate TLS connection

Post 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.
Last edited by FuriousRage on February 1st, 2010, 8:23 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [email] Failed to initiate TLS connection

Post 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.
FuriousRage
Newbie
Newbie
Posts: 7
Joined: April 1st, 2009, 11:58 pm

Re: [email] Failed to initiate TLS connection

Post 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)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [email] Failed to initiate TLS connection

Post 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.
FuriousRage
Newbie
Newbie
Posts: 7
Joined: April 1st, 2009, 11:58 pm

Re: [email] Failed to initiate TLS connection

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [email] Failed to initiate TLS connection

Post 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.
angelviper007
Newbie
Newbie
Posts: 2
Joined: May 10th, 2012, 8:54 pm

Re: [email] Failed to initiate TLS connection

Post 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?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [email] Failed to initiate TLS connection

Post by shypike »

Is this about email?
angelviper007
Newbie
Newbie
Posts: 2
Joined: May 10th, 2012, 8:54 pm

Re: [email] Failed to initiate TLS connection

Post by angelviper007 »

shypike wrote:Is this about email?
Yes it is,
Thanks
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [email] Failed to initiate TLS connection

Post 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.
Post Reply