1

Topic: Error SMTP (220):Authentication Failed

Good afternoon.

When having to send an email, it returns me this error (SMTP Error (220): Authentication Failed).
But I'm usually getting my emails, which could check to fix this error.

thank you


iRedAdmin v0.3.3 (MySQL)
Host Name mail.mydomain.com
Linux/BSD CentOS

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Error SMTP (220):Authentication Failed

You should check SMTP auth related setting in your mail client application (Outlook, Thunderbird). What's your current setting? Do you use port 587 with TLS?

3

Re: Error SMTP (220):Authentication Failed

ZhangHuangbin wrote:

You should check SMTP auth related setting in your mail client application (Outlook, Thunderbird). What's your current setting? Do you use port 587 with TLS?

I apologize for the lack of details
This error occurs when I try to send a message through webmail, in which case it Roundcube.
I really have not tested the configuration in a client e-mail will do for testing.

tanks

4

Re: Error SMTP (220):Authentication Failed

emerson wrote:

This error occurs when I try to send a message through webmail, in which case it Roundcube.

Any related log in Postfix log file (/var/log/maillog)?

5

Re: Error SMTP (220):Authentication Failed

Good afternoon

So these are the outputs from my maillog.

Jun 5 15:49:57 mail postfix / smtpd [11706]: connect from localhost.localdomain [127.0.0.1]
Jun 5 15:49:57 mail postfix / smtpd [11706]: error SSL_accept from localhost.localdomain [127.0.0.1]: 0
Jun 5 15:49:57 mail postfix / smtpd [11706]: warning: TLS library problem: error: 14094418: SSL routines: SSL3_READ_BYTES: TLSv1 alert unknown ca: s3_pkt.c: 1256: SSL alert number 48:
Jun 5 15:49:57 mail postfix / smtpd [11706]: lost connection after STARTTLS from localhost.localdomain [127.0.0.1]
Jun 5 15:49:57 mail postfix / smtpd [11706]: disconnect from localhost.localdomain [127.0.0.1]
Jun 5 15:49:57 mail roundcube: PHP Deprecated: Non-static method PEAR :: RaiseError () should not be called statically, assuming $ this from incompatible context in / var/www/roundcubemail-1.0.1/program/lib / Net / SMTP.php on line 611
Jun 5 15:49:57 mail roundcube: STARTTLS failed ():
Jun 5 15:49:57 mail roundcube: PHP Deprecated: Non-static method PEAR :: RaiseError () should not be called statically, assuming $ this from incompatible context in / var/www/roundcubemail-1.0.1/program/lib / Net / SMTP.php on line 371
Jun 5 15:49:57 mail roundcube: PHP Deprecated: Non-static method PEAR :: RaiseError () should not be called statically, assuming $ this from incompatible context in / var/www/roundcubemail-1.0.1/program/lib / Net / SMTP.php on line 265
Jun 5 15:49:57 mail roundcube: SMTP Error: SMTP error: Authentication failure: STARTTLS failed (Code:) in / var/www/roundcubemail-1.0.1/program/lib/Roundcube/rcube.php Online 1504 ( POST / mail /? _Task = & email = _unlock loading1401993790180 = en_US & _lang? _Task = mail & _action = send)

6

Re: Error SMTP (220):Authentication Failed

emerson wrote:

Jun 5 15:49:57 mail roundcube: PHP Deprecated: Non-static method PEAR :: RaiseError () should not be called statically, assuming $ this from incompatible context in / var/www/roundcubemail-1.0.1/program/lib / Net / SMTP.php on line 611

Could you please turn on debug mode for SMTP in Roundcubemail? Add '$config['smtp_debug'] = true;' in /var/www/roundcubemail-1.0.1/config/config.inc.php, restart Apache and try again. Please paste full log (in /var/log/maillog) of your new testing.

7

Re: Error SMTP (220):Authentication Failed

Good night.

After this addition, I did a new test and follows the log.

Jun 5 21:42:03 mail postfix / smtpd [12489]: connect from localhost.localdomain [127.0.0.1]
Jun 5 21:42:03 mail roundcube: Recv: 220 mail.linuxfound.com.br ESMTP Postfix
Jun 5 21:42:03 mail roundcube: Send: EHLO webmail.linuxfound.com.br
Jun 5 21:42:03 mail roundcube: Recv: 250-mail.linuxfound.com.br
Jun 5 21:42:03 mail roundcube: recv: 250-PIPELINING
Jun 5 21:42:03 mail roundcube: Recv: 250-SIZE 15728640
Jun 5 21:42:03 mail roundcube: Recv: 250-ETRN
Jun 5 21:42:03 mail roundcube: recv: 250-STARTTLS
Jun 5 21:42:03 mail roundcube: Recv: 250-ENHANCEDSTATUSCODES
Jun 5 21:42:03 mail roundcube: Recv: 250-8BITMIME
Jun 5 21:42:03 mail roundcube: Recv: 250 DSN
Jun 5 21:42:03 mail roundcube: Send: STARTTLS
Jun 5 21:42:03 mail roundcube: Recv: 220 2.0.0 Ready to start TLS
Jun 5 21:42:03 mail postfix / smtpd [12489]: error SSL_accept from localhost.localdomain [127.0.0.1]: 0
Jun 5 21:42:03 mail postfix / smtpd [12489]: warning: TLS library problem: error: 14094418: SSL routines: SSL3_READ_BYTES: TLSv1 alert unknown ca: s3_pkt.c: 1256: SSL aler t number 48:
Jun 5 21:42:03 mail postfix / smtpd [12489]: lost connection after STARTTLS from localhost.localdomain [127.0.0.1]
Jun 5 21:42:03 mail postfix / smtpd [12489]: disconnect from localhost.localdomain [127.0.0.1]
Jun 5 21:42:03 mail roundcube: PHP Deprecated: Non-static method PEAR :: RaiseError () should not be called statically, assuming $ this from incompatible context in / var/www/roundcubemail-1.0.1/program / lib / Net / SMTP.php on line 611
Jun 5 21:42:03 mail roundcube: STARTTLS failed ():
Jun 5 21:42:03 mail roundcube: Send: RSET
Jun 5 21:42:03 mail roundcube: recv: # 026 # 003 # 003 # 014 # 001M
Jun 5 21:42:03 mail roundcube: PHP Deprecated: Non-static method PEAR :: RaiseError () should not be called statically, assuming $ this from incompatible context in / var/www/roundcubemail-1.0.1/program / lib / Net / SMTP.php on line 371
Jun 5 21:42:03 mail roundcube: Send: QUIT
Jun 5 21:42:03 mail roundcube: PHP Deprecated: Non-static method PEAR :: RaiseError () should not be called statically, assuming $ this from incompatible context in / var/www/roundcubemail-1.0.1/program / lib / Net / SMTP.php on line 265
Jun 5 21:42:03 mail roundcube: SMTP Error: SMTP error: Authentication failure: STARTTLS failed (Code:) in / var/www/roundcubemail-1.0.1/program/lib/Roundcube/rcu be.php Online 1504 (POST / mail /? _Task = & email = _unlock loading1402015333816 = en_US & _lang? _Task = mail & _action = send)

8

Re: Error SMTP (220):Authentication Failed

Which version of PHP and Roundcube are you running?

9

Re: Error SMTP (220):Authentication Failed

So are these versions.

Roundcube Webmail 1.0.1
PHP 5.6.0beta4 (cli) (built: Jun  5 2014 15:24:13)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0-dev, Copyright (c) 1998-2014 Zend Technologies

10

Re: Error SMTP (220):Authentication Failed

Didn't test Roundcube with PHP-5.6.0 before, no idea yet, maybe PHP-5.6 deprecates some functions. It's better to ask in PHP mailing list instead. Or back to PHP which officially shipped by CentOS.

11

Re: Error SMTP (220):Authentication Failed

Got it, I will check this issue and PHP I report to you any novelty.
Thanks for now.

12

Re: Error SMTP (220):Authentication Failed

Just curious, why do you have to use PHP 5.6 instead of the one officially shipped by CentOS?

13 (edited by emerson 2014-06-10 00:15:19)

Re: Error SMTP (220):Authentication Failed

Was more to let the system updated, but from the beginning already checked the problem Mysql 5.6 with iRedMail for issue of password security of accounts created by iRedMail.
Have uninstalled everything now will begin installing PHP 5.5, which are in the default repositories Centos.
The time to finish everything I inform you if everything is right.

Thank you again.

14

Re: Error SMTP (220):Authentication Failed

ZhangHuangbin wrote:

Just curious, why do you have to use PHP 5.6 instead of the one officially shipped by CentOS?

ZhangHuangbin So, after much searching, I ended desistalando the modules php 5.6 and all its dependencies and it worked.
Also Desistalei Mysql 5.6 and left the version 5.5 and it was good.
Now this perfectly and smoothly running my mail server, thanks for the help.