Topic: SASL issues when using SSL
Hi!,
I'm trying to configure SMTP over SSL without not much luck. Theoritically as far as I understand it both SMTP and SMTP over SSl use SASL for authenticating against dovecot. The configuration works as expected when using SMTP with STARTTLS, but when I switch to SMTP over SSL does not work. Please check logs below when using each of the methods:
SSL:
Jan 15 11:27:40 s13 postfix/smtpd[9751]: connect from x.x.x.x
Jan 15 11:27:40 s13 postfix/smtpd[9751]: setting up TLS connection from x.x.x.x
Jan 15 11:27:41 s13 postfix/smtpd[9751]: Anonymous TLS connection established from x.x.x.x: TLSv1 with cipher AES256-SHA (256/256 bits)
Jan 15 11:27:43 s13 postfix/smtpd[9751]: warning: x.x.x.x: SASL PLAIN authentication failed:
Jan 15 11:27:45 s13 postfix/smtpd[9751]: warning: x.x.x.x: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Jan 15 11:29:34 s13 postfix/smtpd[9751]: lost connection after AUTH from x.x.x.x
Jan 15 11:29:34 s13 postfix/smtpd[9751]: disconnect from x.x.x.x
STARTTLS:
Jan 15 11:31:08 s13 postfix/smtpd[9762]: connect from x.x.x.x
Jan 15 11:31:08 s13 postfix/smtpd[9762]: setting up TLS connection from x.x.x.x
Jan 15 11:31:08 s13 postfix/smtpd[9762]: Anonymous TLS connection established from x.x.x.x: TLSv1 with cipher AES256-SHA (256/256 bits)
Jan 15 11:31:08 s13 postfix/smtpd[9762]: C92BE154102D: client=x.x.x.x, sasl_method=PLAIN, sasl_username=test@testdomain.com
Jan 15 11:31:08 s13 postfix/cleanup[9765]: C92BE154102D: message-id=<4D318583.4090502@testdomain.com>
Jan 15 11:31:09 s13 postfix/qmgr[9725]: C92BE154102D: from=<test@testdomain.com>, size=591, nrcpt=1 (queue active)
Jan 15 11:31:09 s13 postfix/smtpd[9762]: disconnect from x.x.x.x
Jan 15 11:31:09 s13 postfix/smtpd[9769]: connect from localhost[127.0.0.1]
Jan 15 11:31:09 s13 postfix/smtpd[9769]: 3D412154102F: client=localhost[127.0.0.1]
Jan 15 11:31:09 s13 postfix/cleanup[9765]: 3D412154102F: message-id=<4D318583.4090502@testdomain.com>
Jan 15 11:31:09 s13 postfix/smtpd[9769]: disconnect from localhost[127.0.0.1]
Jan 15 11:31:09 s13 postfix/qmgr[9725]: 3D412154102F: from=<test@testdomain.com>, size=1021, nrcpt=1 (queue active)
Jan 15 11:31:09 s13 amavis[1357]: (01357-03) Passed CLEAN, LOCAL [83.56.166.153] [83.56.166.153] <test@testdomain.com> -> <test2@testdomain2.com>, Message-ID: <4D318583.4090502@testdomain.com>, mail_id: 9zI9bAWvMowj, Hits: -10, size: 591, queued_as: 3D412154102F, 227 ms
Jan 15 11:31:09 s13 postfix/smtp[9766]: C92BE154102D: to=<test2@testdomain2.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.59, delays=0.36/0/0/0.23, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=01357-03, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 3D412154102F)
Jan 15 11:31:09 s13 postfix/qmgr[9725]: C92BE154102D: removed
Jan 15 11:31:10 s13 postfix/smtp[9770]: 3D412154102F: to=<test2@testdomain2.com>, relay=ASPMX4.GOOGLEMAIL.com[209.85.229.27]:25, delay=0.92, delays=0.06/0.01/0.14/0.71, dsn=2.0.0, status=sent (250 2.0.0 OK 1295091077 b47si3183876wer.75)
Jan 15 11:31:10 s13 postfix/qmgr[9725]: 3D412154102F: removed
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.