Page 1 of 1

Trouble with new mailserver

Posted: Mon Apr 21, 2008 1:43 pm
by pixelfused
So I finally had a good enough reason to go out and build a mailserver (my first) on a VPS account, I'm using postfix/dovecot with a mysql backend for virtual mailboxes. I have SASL setup (through dovecot) for smtp authentication and everything (send/receive) works fine through my Thunderbird mail client, but I can't connect with Swift. The log from runTestOfBasicSend.php is below. Any thoughts on where I screwed up?

Error: Authentication failed using username 'support@psmailings.com' and password '******'
Log Information

++ Log level changed to 4
++ Forcing ESMTP mode. HELO is EHLO.
++ Forcing ESMTP mode. HELO is EHLO.
++ Trying to connect...
++ Trying to connect to SMTP server at 'mail.psmailings.com:25
<< 220 mail.psmailings.com ESMTP Postfix (Debian/GNU)
>> EHLO [64.22.103.6]
<< 250-mail.psmailings.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
++ SMTP extension 'PIPELINING' reported with attributes [].
++ SMTP extension 'SIZE' reported with attributes [10240000].
++ SMTP extension 'VRFY' reported with attributes [].
++ SMTP extension 'ETRN' reported with attributes [].
++ SMTP extension 'STARTTLS' reported with attributes [].
++ SMTP extension 'ENHANCEDSTATUSCODES' reported with attributes [].
++ SMTP extension '8BITMIME' reported with attributes [].
++ SMTP extension 'DSN' reported with attributes [].
++ Trying to authenticate with username 'support@psmailings.com'.
++ No authenticators loaded; looking for defaults.
++ Authentication mechanism 'CRAM-MD5' attached.
++ Authentication mechanism 'LOGIN' attached.
++ Authentication mechanism 'PLAIN' attached.
++ Server (perhaps wrongly) is not advertising AUTH... manually overriding.
++ SMTP extension 'AUTH' reported with attributes [CRAM-MD5, LOGIN, PLAIN].
++ Trying 'CRAM-MD5' authentication...
>> AUTH CRAM-MD5
<< 538 5.7.0 Encryption required for requested authentication mechanism
!! Expected response code(s) [334] but got response [538 5.7.0 Encryption required for requested authentication mechanism]
>> RSET
<< 250 2.0.0 Ok
++ Trying 'LOGIN' authentication...
>> AUTH LOGIN
<< 538 5.7.0 Encryption required for requested authentication mechanism
!! Expected response code(s) [334] but got response [538 5.7.0 Encryption required for requested authentication mechanism]
>> RSET
<< 250 2.0.0 Ok
++ Trying 'PLAIN' authentication...
>> AUTH PLAIN ::removed::
<< 538 5.7.0 Encryption required for requested authentication mechanism
!! Expected response code(s) [235] but got response [538 5.7.0 Encryption required for requested authentication mechanism]
>> RSET
<< 250 2.0.0 Ok

Re: Trouble with new mailserver

Posted: Mon Apr 21, 2008 4:16 pm
by Chris Corbyn
Looks like your server requires SSL before you can AUTH.

Configure the test to use SSL and port 587 (if 587 doesn't work try 465).