Page 1 of 1

0.8.0Beta1: Mail using CRAM-MD5 authentication error

Posted: September 30th, 2015, 2:55 pm
by rtfm_joey
Hi,

It seems that 0.8.0Beta 1 has issues when using CRAM-MD5 for TLS authentication.

Log from e-mail server (Kerio Connect 8.5.2) with CRAM-MD5 enabled:

Code: Select all

[30/Sep/2015 21:27:49][7309] {smtps} Sent SMTP greeting to xxx.dynamic.ziggo.nl:55068
[30/Sep/2015 21:27:49][7309] {smtps} Command "
[30/Sep/2015 21:27:49][7309] {smtps} Command 
[30/Sep/2015 21:27:49][7309] {smtps} Command /+'#
[30/Sep/2015 21:27:49][7309] {smtps} Command 
[30/Sep/2015 21:27:49][7309] {smtps} Connection to SMTP server xxx.dynamic.ziggo.nl lost: (104) Unknown error 104
[30/Sep/2015 21:27:49][7309] {smtps} SMTP server session end
Log from e-mail server (Kerio Connect 8.5.2) with CRAM-MD5 disabled:

Code: Select all

[30/Sep/2015 21:34:19][17287] {smtps} Sent SMTP greeting to xxx.dynamic.ziggo.nl:55077
[30/Sep/2015 21:34:19][17287] {smtps} Command ehlo nas.xxx.xxx
[30/Sep/2015 21:34:19][17287] {smtps} Sent reply to EHLO: 250 xxx.xxx ...
[30/Sep/2015 21:34:19][17287] {smtps} Command STARTTLS
[30/Sep/2015 21:34:19][17287] {smtps} Successfully switched to TLS mode
[30/Sep/2015 21:34:19][17287] {smtps} Command ehlo nas.xxx.xxx
[30/Sep/2015 21:34:19][17287] {smtps} Sent reply to EHLO: 250 xxx.nl ...
[30/Sep/2015 21:34:19][17287] {smtps} Command AUTH PLAIN AHNhYm56YmQAc2FiMDAz
[30/Sep/2015 21:34:19][17287] {smtps} Started authentication method PLAIN
[30/Sep/2015 21:34:20][17287] {smtps} Sent reply to AUTH: 235 2.0.0 Authentication successful (user sabnzbd@xxx.nl)
The log from sabnzbd doesn't show anything particular useful:

Code: Select all

2015-09-30 21:27:48,792::INFO::[api:694] Sending testmail
2015-09-30 21:27:48,813::DEBUG::[emailer:80] Connecting to server mail.xxx.xxx3000
2015-09-30 21:27:49,432::DEBUG::[emailer:93] Non-SSL mail server detected reconnecting to server mail.xxx.xxx:3000
2015-09-30 21:27:49,696::DEBUG::[emailer:107] TLS mail server detected
2015-09-30 21:27:49,772::ERROR::[emailer:37] Onbekende authenticatie fout bij de e-mailserver
The last line translates as 'Unknown authentication error'.

It seems there is an issue with the CRAM-MD5 implementation in the used email ibrary. Is there any way to get this fixed? I would really like to enable CRAM-MD5 on the mail server.

Re: 0.8.0Beta1: Mail using CRAM-MD5 authentication error

Posted: September 30th, 2015, 3:26 pm
by shypike
Which OS are you using?
Please note that we have limited email support, there are just too many different servers.

Re: 0.8.0Beta1: Mail using CRAM-MD5 authentication error

Posted: September 30th, 2015, 3:37 pm
by rtfm_joey
Os:

Code: Select all

root@nas:/home/joey# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:        14.04
Codename:       trusty
Hm, I did some quick Googling and found that CRAM-MD5 i being deprecated, so maybe I should leave it turned off :)

Re: 0.8.0Beta1: Mail using CRAM-MD5 authentication error

Posted: September 30th, 2015, 3:53 pm
by shypike
rtfm_joey wrote: Hm, I did some quick Googling and found that CRAM-MD5 i being deprecated, so maybe I should leave it turned off :)
So, SABnzbd's "standard" TLS is good enough?