Roundcube Community Forum

Release Support => Pending Issues => Topic started by: vol4 on April 28, 2014, 08:37:46 AM

Title: Failed to set sender
Post by: vol4 on April 28, 2014, 08:37:46 AM
Sorry for bad english.
I can't setup SSL SMTP settings with mail.ru servers...
Get error: 550 Failed to set sender 'user@domain'

user - it's my user.
domain - it's my real domain

The same error in config test page:
Server: ssl://smtp.mail.ru
Port: 465
User: user@domain
Password: *******

Trying to send email...
SMTP send:  NOT OK(Failed to set sender 'user@domain')

Sender: user@domain
Recipient: anyuser@domain
Title: Re: Failed to set sender
Post by: SKaero on April 29, 2014, 02:36:42 PM
Enable smtp_debug and post the log.
Title: Re: Failed to set sender
Post by: guihin on February 25, 2023, 10:26:00 AM
For me this configuration worked well on ubuntu 22.04 with postfix, dovecot, nginx and letsencrypt.
My Postfix is only offering STARTTLS, nothing else.

roundcube/config/config.inc.php:

# SMTP
$config['smtp_server'] = 'ssl://mail.server.tld';  # maybe localhost works too
$config['smtp_port'] = 465;
$config['smtp_timeout'] = 5;
$config['smtp_user'] = '%u';
$config['smtp_pass'] = '%p';
$config['smtp_auth_type'] = 'LOGIN';
$config['smtp_conn_options'] = [
  'ssl' => [
    'verify_peer' => true,
    'verify_depth' => 3,
    'peer_name' => 'mail.server.tld',
    'cafile' => '/etc/ssl/certs/ca-certificates.crt'
  ],
];