Author Topic: Roundcube sending literal '%u@%s' to mail server for mail submission  (Read 1443 times)

Offline jlbrown

  • Jr. Member
  • **
  • Posts: 20
I have for SMTP settings:

Code: [Select]
$config['smtp_host'] = ‘ssl://my.mail.server.com:465';

// SMTP username (if required) if you use %u as the username Roundcube
// will use the current username for login
$config['smtp_user'] = '%u@%s';

// SMTP password (if required) if you use %p as the password Roundcube
// will use the current user's password for login
$config['smtp_pass'] = '%p';

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


My SMTP proxy logs:

Quote
info: authentication - login is used
warning: SMTP authentication failed from 127.0.0.1 on 127.0.0.1 - user: %u@%s
disconnected: session:388DB8258 127.0.0.1 - processing time 3 seconds

Ie it is not substituting the username and server name for %u and %s.

What am I doing wrong?

Version 1.6.1

Thanks,

James.

Offline jlbrown

  • Jr. Member
  • **
  • Posts: 20
Re: Roundcube sending literal '%u@%s' to mail server for mail submission
« Reply #1 on: June 26, 2023, 08:56:58 AM »
Worked it out, all I had to do was change it to:

$config['smtp_user'] = '%u';

and it worked. It put the site (domain) at the end because that was what was used to log in to Roundcube.

James.