Topic: SMTP Authentication failed

==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Ubuntu 12.04
- Related log if you're reporting an issue: roundcube: SMTP Error: SMTP error: Authentication failure: SMTP server does not support authentication (Code: ) in /usr/share/apache2/roundcubemail-0.9.2/program/include/rcmail.php on line 1014 (POST /mail/?_unlock=loading1382550291714&_lang=undefined?_task=mail&_action=send)

I have set up postfix to use port 587 because I don't want to use 25.
I have changed "$rcmail_config['smtp_port'] = 587;" in main.inc.php and in /etc/postfix/master.cf enabled "submission" and disables smtp.
When I try to send from roundcube I get "SMTP Error (250): Authentication failed."
Any ideas?


Re: SMTP Authentication failed

If I leave "smtp_user" and "smtp_pass" blank in main.inc.php I get "530 5.7.0 Must issue a STARTTLS command first".


Re: SMTP Authentication failed

Did you check "smtp_server" parameter in Roundcube config file (main.inc.php)?

// SMTP server host (for sending mails).                                           
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://         
// If left blank, the PHP mail() function is used                                 
// Supported replacement variables:                                               
// %h - user's IMAP hostname                                                       
// %n - hostname ($_SERVER['SERVER_NAME'])                                         
// %t - hostname without the first part                                           
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)       
// %z - IMAP domain (IMAP hostname without the first part)                         
// For example %n = mail.domain.tld, %t = domain.tld                               
$rcmail_config['smtp_server'] = '';

So, you have to prepend "tls://" in smtp server address. For example: tls://

Also, if you disable port 25, how can other mail server communicate with your server?


Does my reply help a little? How about buy me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee