1 (edited by nico_crib86 2012-06-15 23:56:01)

Topic: SMTP Error (250): authentication failure

==== Provide required information ====
- iRedMail version and backend (LDAP/MySQL/PGSQL): 0.8.1 with MySQL
- Linux/BSD distribution name and version: Ubuntu server 12.04
- Any related log? Log is helpful for troubleshooting.
====
Hello!,
I've followed this howto http://www.iredmail.org/install_iredmail_on_ubuntu.html to install iRedMail 0.8.1 on my Ubuntu 12.04.
I can create users and domains, but when I go into roundcube to send a mail, appear this error SMTP Error (250): authentication failure. Someone could help me fix this? Thanks!!

This is the log of /var/log/mail.log

Jun 15 19:43:10 mail roundcube: SMTP server does not support authentication ():
Jun 15 19:43:10 mail roundcube: SMTP Error: SMTP error: Authentication failure: SMTP server does not support authentication (Code: ) in /usr/share/apache2/roundcubemail-0.7.2/p$
Jun 15 19:43:10 mail sm-mta[29683]: q5FFhALU029683: localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA-v4

----

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

2

Re: SMTP Error (250): authentication failure

Could you please check Roundcube config file in /usr/share/apache2/roundcubemail/config/main.inc.php to find below setting:

// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use              
// best server supported one)                                                      
$rcmail_config['smtp_auth_type'] = '';

What's the value of smtp_auth_type above? It should be 'LOGIN' in iRedMail by default.

Also, what does this mail log says:

Jun 15 19:43:10 mail sm-mta[29683]: q5FFhALU029683: localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA-v4

Are you running sm-mta or Postfix as MTA? It must be Postfix. Please check it also.

3 (edited by nico_crib86 2012-06-16 23:35:30)

Re: SMTP Error (250): authentication failure

Hi ZhangHuangbin, thanks for replying...
I checked the line that you said and its in default value: $rcmail_config['smtp_auth_type'] = "LOGIN";
How can I see if I'm running Postfix as MTA?

oing telnet localhost 25, get the following:

Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.com ESMTP Sendmail 8.14.4/8.14.4/Debian-2ubuntu2; Sat, 16 Jun 2012 19:3                                                                                                 8:06 +0400; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1                                                                                                 ]
ehlo localhost
250-mail.com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP

4

Re: SMTP Error (250): authentication failure

nico_crib86 wrote:

220 mail.com ESMTP Sendmail 8.14.4/8.14.4/Debian-2ubuntu2; Sat, 16 Jun 2012 19:3
8:06 +0400; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1]

As you can see in above output message of telnet command, it's responded by Sendmail, not Postfix.

Try below commands on Ubuntu server, then try telnet again.

# update-rc.d sendmail remove
# /etc/init.d/sendmail stop
# update-rc.d postfix defaults
# /etc/init.d/postfix restart

First two commands disable and stop sendmail, last two enable and start Postfix service.

5

Re: SMTP Error (250): authentication failure

I did what you said and was solved. Thank you very much!