Cannot send email from Roundcube: 4.7.1 Relay access denied

Created:

2017-03-23 11:22:20 UTC

Modified:

2017-08-08 13:25:05 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot send email from Roundcube: 4.7.1 Relay access denied

Applicable to:

  • Plesk for Linux

Symptoms

  • It is not possible to send mail via Roundcube.

  • The following error can be found in /var/log/maillog :

    postfix/smtpd[30391]: NOQUEUE: reject: RCPT from example.hostname.com[::1]: 454 4.7.1 <john.doe@example.com>: Relay access denied; from=<jane.doe@test.com> to=<john.doe@example.com> proto=ESMTP helo=<webmail.test.com>
    
  • There is no user value in Roundcube's configuration file:

    # grep smtp_user /usr/share/psa-roundcube/config/main.inc.php
    $rcmail_config['smtp_user'] = '';

    OR

    # grep smtp_user /usr/share/psa-roundcube/config/defaults.inc.php
    $config['smtp_user'] = '';

Cause

Misconfiguration in Roundcube settings.

Resolution

Set smtp_user value as %u :

# grep smtp_user /usr/share/psa-roundcube/config/main.inc.php
$rcmail_config['smtp_user'] = '%u';

OR

# grep smtp_user /usr/share/psa-roundcube/config/defaults.inc.php
$config['smtp_user'] = '%u';
Have more questions? Submit a request
Please sign in to leave a comment.