SMTP Error (): Authentication Failed!

Discussion in 'Installation/Configuration' started by concept21, Feb 20, 2025.

  1. concept21

    concept21 Active Member

    Dear Experts!
    Today, when I tried to send out email as usual from within my roundcube webmail, this fatal error happened! What should I do to repair it?!? Please help! :(
    ispconfig smtp error.png

    I try the very same email draft from within Thunderbird and I can send it out! :(
    My system is Ubuntu 24.04, ISPConfig 3.2.12p1, with Nginx, Roundcube.
     
  2. concept21

    concept21 Active Member

    I find many of these in my mail.warn log; not sure whether they are related. :(
     
  3. concept21

    concept21 Active Member

  4. concept21

    concept21 Active Member

    DAMN! Rspamd is not running!!! :(:mad:
     
  5. concept21

    concept21 Active Member

    rspamd.log permission changed and denied for unknown reason!!! :(:mad:

    Still not working though after having repaired the log permission.
     
    Last edited: Feb 20, 2025
  6. concept21

    concept21 Active Member

    I did a system OS update from Ubuntu 20.04 to 22.04, and then from 22.04 to 24.04 on early January 2025.

    The last time I could send email successfully from within ISPConfig roundcube was 2024-Nov-08. So the possible culprit of this issue is the OS upgrades. Certain steps of the upgrade breaks roundcube mail sending.

    Please share your ideas to repair my roundcube. :(
     
  7. concept21

    concept21 Active Member

    I have found these log in /var/log/nginx/error.log; seem nasty.
     
  8. concept21

    concept21 Active Member

    Solved!
    Roundcube config.inc.php has changed a lot during the past several years.
    I updated my old config.inc.php to the default distribution one and it can send mails. :D:p
     
  9. Planea

    Planea New Member

    Hi. I have same trouble.
    Did you just replace the default file? It's not working for me.
     
  10. concept21

    concept21 Active Member

    You have to migrate the old config to the new old, not just copy and replace.
     
  11. concept21

    concept21 Active Member

    These are my config options. Some are imperative to ISPConfig:
    PHP:
    <?php
    /* Local configuration for Roundcube Webmail */

    // ----------------------------------
    // IMAP
    // ----------------------------------

    $config['imap_host'] = 'localhost:143';

    // ----------------------------------
    // SMTP
    // ----------------------------------
    $config['smtp_host'] = '%h:25';

    // Log session debug information/authentication errors to <log_dir>/session.log or to syslog
    $config['session_debug'] = true;

    // ----------------------------------
    // CACHE(S)
    // ----------------------------------
    // Use these hosts for accessing memcached
    // Define any number of hosts in the form of hostname:port or unix:///path/to/socket.file
    // Example: array('localhost:11211', '192.168.1.12:11211', 'unix:///var/tmp/memcached.sock');
    $config['memcache_hosts'] = 'localhost:11211';

    // Use these hosts for accessing Redis.
    // Currently only one host is supported. Cluster support may come in a future release.
    // You can pass 4 fields, host, port (optional), database (optional) and password (optional).
    // Unset fields will be set to the default values host=127.0.0.1, port=6379.
    // Examples:
    //     array('localhost:6379');
    //     array('192.168.1.1:6379:1:secret');
    //     array('unix:///var/run/redis/redis-server.sock:1:secret');
    $config['redis_hosts'] = 'localhost:6379';

    // provide an URL where a user can get support for this Roundcube installation
    // PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
    $config['support_url'] = '';

    // this key is used to encrypt the users imap password which is stored
    // in the session record (and the client cookie if remember password is enabled).
    // please provide a string of exactly 24 chars.
    // YOUR KEY MUST BE DIFFERENT THAN THE SAMPLE VALUE FOR SECURITY REASONS
    $config['des_key'] = 'xxxxxxxxxxxxxxxxxxxxx';

    // Name your service. This is displayed on the login screen and in the window title
    $config['product_name'] = 'Company Mailer';

    // Add this user-agent to message headers when sending. Default: not set.
    $config['useragent'] = 'Roundcube';

    // List of active plugins (in plugins/ directory)
    // Debian: install roundcube-plugins first to have any
    $config['plugins'] = ['jqueryui''archive''filesystem_attachments''enigma''zipdownload'];

    // Disable spellchecking
    // Debian: spellshecking needs additional packages to be installed, or calling external APIs
    //         see defaults.inc.php for additional informations
    $config['enable_spellcheck'] = true;

    // Do not set db_dsnw here, use dpkg-reconfigure roundcube-core to configure database!
    include("/etc/roundcube/debian-db-roundcube.php");
     
    ahrasis likes this.

Share This Page