Roundcube: SMTP Error (): Authentication failed. :SOLVED

Discussion in 'ISPConfig 3 Priority Support' started by Petar, Apr 11, 2024.

  1. Petar

    Petar Member HowtoForge Supporter

    ISPCONFIG perfect server, Apache , Debian 11 > Then upgraded to Debian 12 and everything from the new perfect server tutorial.
    Empty serve. One domain, one postmaster account for testing.
    Roundcube to send a test mail to another account and it doesnt send.
    Red popup in the lower right corner "SMTP Error (): Authentication failed."

    /etc/roundcube/config.inc.php
    $config['default_host'] = 'localhost';
    $config['smtp_server'] = '%h';
    $config['smtp_port'] = 25;
    $config['smtp_user'] = '%u';
    $config['smtp_pass'] = '%p';
    $config['support_url'] = '';
    $config['product_name'] = 'Roundcube Webmail';

    What else should i check or change?
    Best regards
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Try changing smtp port to 587
     
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  4. Petar

    Petar Member HowtoForge Supporter

    Hi Till, i tried changing only the port to 587, with no result.
    Should i change localhost to tls://localhost, or localhost:587 or anything?
    Should i restart apache and postfix afterwards?
    Re:Taleman > I followed both, the upgrade procedure and double checked the whole Perfect server deb12
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, you can try that.

    if this doe snot help, have you checked sending with this account works at all e.g. by using a different mail client on your mobile phone or Desktop PC?

    No, that's not needed.
     
  6. Petar

    Petar Member HowtoForge Supporter

    OK, a little progress.
    If i put:
    $config['default_host'] = 'localhost';
    $config['smtp_server'] = 'localhost:25';
    $config['smtp_port'] = 25;

    Then it works

    But then , if i want to use TLS it doesnt:
    $config['default_host'] = 'localhost';
    $config['smtp_server'] = 'localhost:587';
    $config['smtp_port'] = 587;
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    You can not use port 587 without authentication. But in general, you do not need tls on localhost anyway as its only a connection inside your server and not over the internet.
     
    Petar likes this.
  8. Petar

    Petar Member HowtoForge Supporter

    OK, SOLVED with localhost:25
     

Share This Page