Authentification SMTP failed

Discussion in 'Installation/Configuration' started by Oitsuki, Jul 27, 2024.

  1. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    systemctl status dovecot
    if it is not running

    systemctl restart dovecot
    journalctl -xeu dovecot
     
  2. Oitsuki

    Oitsuki Member

    It's weird because
    If I sent from yahoo to myserver (at admin@clicshopping,org), I have the email inside roundcube and the email is redirected to gmail.
    Now via the alias created inside google on [email protected] to yahoo. If I sent an email and I receive the information on yahoo
    Idem for google.

    But if I do that from rouncube it does not work

    it can help, maybe
    the 587 port does not work
    upload_2024-7-29_19-27-19.png

    but this way,google accept

    upload_2024-7-29_19-29-39.png
     
  3. Oitsuki

    Oitsuki Member

    systemctl status dovecot
    ...skipping...
    ● dovecot.service - Dovecot IMAP/POP3 email server
    Loaded: loaded (/usr/lib/systemd/system/dovecot.service; enabled; preset: enabled)
    Active: active (running) since Mon 2024-07-29 00:07:56 UTC; 23h ago
    Docs: man:dovecot(1)
    https://doc.dovecot.org/
    Main PID: 677 (dovecot)
    Status: "v2.3.21 (47349e2482) running"
    Tasks: 7 (limit: 2218)
    Memory: 13.4M (peak: 26.2M)
    CPU: 17.336s
    CGroup: /system.slice/dovecot.service
    ├─ 677 /usr/sbin/dovecot -F
    ├─ 751 dovecot/anvil
    ├─ 752 dovecot/log
    ├─ 764 dovecot/config
    ├─1693 dovecot/stats
    ├─1696 dovecot/auth
    └─1766 dovecot/auth -w

    Jul 29 23:34:50 vps dovecot[752]: auth: Error: auth client 0 disconnected with 1 pending requests: Connection reset by peer
    Jul 29 23:34:54 vps dovecot[752]: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.>
    Jul 29 23:34:54 vps dovecot[752]: imap([email protected])<108715></vLrTmsegot/AAAB>: Disconnected: Logged out in=304 out>
    Jul 29 23:34:56 vps dovecot[752]: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.>
    Jul 29 23:34:56 vps dovecot[752]: imap([email protected])<108717><jk0BT2seiIt/AAAB>: Disconnected: Logged out in=87 out=>
    Jul 29 23:35:01 vps dovecot[752]: imap-login: Disconnected: Connection closed (disconnected before auth was ready, waited 0 s>
    Jul 29 23:35:01 vps dovecot[752]: pop3-login: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=127.>
    Jul 29 23:35:37 vps dovecot[752]: auth: Error: auth client 0 disconnected with 1 pending requests: Connection reset by peer
    Jul 29 23:35:56 vps dovecot[752]: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.>
    Jul 29 23:35:56 vps dovecot[752]: imap([email protected])<108856><tdmZUmsePqZ/AAAB>: Disconnected: Logged out in=87 out=>
    ~
     
  4. Oitsuki

    Oitsuki Member

    journalctl -xeu dovecot
    Jul 29 23:31:14 vps dovecot[752]: imap([email protected])<108598><SxvFQWseKJF/AAAB>: Disconnected: Logged out in=312 out=1927 deleted=0 expunged=0 trashed=0 hdr_count=0 h>
    Jul 29 23:31:32 vps dovecot[752]: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=108605, secured, session=<zNXgQmseYJV/AAAB>
    Jul 29 23:31:32 vps dovecot[752]: imap([email protected])<108605><zNXgQmseYJV/AAAB>: Disconnected: Logged out in=312 out=1927 deleted=0 expunged=0 trashed=0 hdr_count=0 h>
    Jul 29 23:31:32 vps dovecot[752]: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=108607, secured, session=</WbkQmseZpV/AAAB>
    Jul 29 23:31:32 vps dovecot[752]: imap([email protected])<108607></WbkQmseZpV/AAAB>: Disconnected: Logged out in=312 out=1927 deleted=0 expunged=0 trashed=0 hdr_count=0 h>
    Jul 29 23:31:56 vps dovecot[752]: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=108617, secured, session=<rw9KRGseiNZ/AAAB>
    Jul 29 23:31:56 vps dovecot[752]: imap([email protected])<108617><rw9KRGseiNZ/AAAB>: Disconnected: Logged out in=50 out=569 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr>
    Jul 29 23:32:01 vps dovecot[752]: auth: Error: auth client 0 disconnected with 1 pending requests: Connection reset by peer
    Jul 29 23:32:55 vps dovecot[752]: auth: Error: auth client 0 disconnected with 1 pending requests: Connection reset by peer
    Jul 29 23:32:56 vps dovecot[752]: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=108646, secured, session=<S/XeR2se0Kx/AAAB>
    Jul 29 23:32:56 vps dovecot[752]: imap([email protected])<108646><S/XeR2se0Kx/AAAB>: Disconnected: Logged out in=50 out=569 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr>
    Jul 29 23:33:56 vps dovecot[752]: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=108677, secured, session=<j1FxS2seNsR/AAAB>
    Jul 29 23:33:56 vps dovecot[752]: imap([email protected])<108677><j1FxS2seNsR/AAAB>: Disconnected: Logged out in=50 out=569 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr>
    Jul 29 23:34:00 vps dovecot[752]: auth: Error: auth client 0 disconnected with 1 pending requests: Connection reset by peer
    Jul 29 23:34:31 vps dovecot[752]: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=108703, secured, session=<eLyQTWse+Ot/AAAB>
    Jul 29 23:34:31 vps dovecot[752]: imap([email protected])<108703><eLyQTWse+Ot/AAAB>: Disconnected: Logged out in=317 out=4323 deleted=0 expunged=0 trashed=0 hdr_count=9 h>
    Jul 29 23:34:34 vps dovecot[752]: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=108705, secured, session=<1uS4TWseDK5/AAAB>
    Jul 29 23:34:34 vps dovecot[752]: imap([email protected])<108705><1uS4TWseDK5/AAAB>: Disconnected: Logged out in=429 out=1973 deleted=0 expunged=0 trashed=0 hdr_count=1 h>
    Jul 29 23:34:37 vps dovecot[752]: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=108707, secured, session=<1JXiTWseDq5/AAAB>
    Jul 29 23:34:37 vps dovecot[752]: imap([email protected])<108707><1JXiTWseDq5/AAAB>: Disconnected: Logged out in=429 out=1945 deleted=0 expunged=0 trashed=0 hdr_count=1 h>
    Jul 29 23:34:41 vps dovecot[752]: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=108709, secured, session=<q2kpTmseFK5/AAAB>
    Jul 29 23:34:41 vps dovecot[752]: imap([email protected])<108709><q2kpTmseFK5/AAAB>: Disconnected: Logged out in=394 out=1655 deleted=0 expunged=0 trashed=0 hdr_count=1 h>
    Jul 29 23:34:45 vps dovecot[752]: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=108711, secured, session=<chxbTmseapJ/AAAB>
    Jul 29 23:34:45 vps dovecot[752]: imap([email protected])<108711><chxbTmseapJ/AAAB>: Disconnected: Logged out in=394 out=1659 deleted=0 expunged=0 trashed=0 hdr_count=1 h>
    Jul 29 23:34:47 vps dovecot[752]: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=108713, secured, session=<FyqETmsebJJ/AAAB>
    Jul 29 23:34:47 vps dovecot[752]: imap([email protected])<108713><FyqETmsebJJ/AAAB>: Disconnected: Logged out in=429 out=1965 deleted=0 expunged=0 trashed=0 hdr_count=1 h>
    Jul 29 23:34:50 vps dovecot[752]: auth: Error: auth client 0 disconnected with 1 pending requests: Connection reset by peer
    Jul 29 23:34:54 vps dovecot[752]: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=108715, secured, session=</vLrTmsegot/AAAB>
    Jul 29 23:34:54 vps dovecot[752]: imap([email protected])<108715></vLrTmsegot/AAAB>: Disconnected: Logged out in=304 out=1485 deleted=0 expunged=0 trashed=0 hdr_count=0 h>
    Jul 29 23:34:56 vps dovecot[752]: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=108717, secured, session=<jk0BT2seiIt/AAAB>
    Jul 29 23:34:56 vps dovecot[752]: imap([email protected])<108717><jk0BT2seiIt/AAAB>: Disconnected: Logged out in=87 out=663 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr>
    Jul 29 23:35:01 vps dovecot[752]: imap-login: Disconnected: Connection closed (disconnected before auth was ready, waited 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secur>
    Jul 29 23:35:01 vps dovecot[752]: pop3-login: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<djVbT2sejJ>
    Jul 29 23:35:37 vps dovecot[752]: auth: Error: auth client 0 disconnected with 1 pending requests: Connection reset by peer
    Jul 29 23:35:56 vps dovecot[752]: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=108856, secured, session=<tdmZUmsePqZ/AAAB>
    Jul 29 23:35:56 vps dovecot[752]: imap([email protected])<108856><tdmZUmsePqZ/AAAB>: Disconnected: Logged out in=87 out=655 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr>
    Jul 29 23:36:37 vps dovecot[752]: auth: Error: auth client 0 disconnected with 1 pending requests: Connection reset by peer
    Jul 29 23:36:56 vps dovecot[752]: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=109003, secured, session=<xPYuVmsertJ/AAAB>
    Jul 29 23:36:56 vps dovecot[752]: imap([email protected])<109003><xPYuVmsertJ/AAAB>: Disconnected: Logged out in=87 out=655 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr>
    Jul 29 23:37:29 vps dovecot[752]: auth: Error: auth client 0 disconnected with 1 pending requests: Connection reset by peer
     
  5. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    was port 587 in that list, too?
     
  6. Oitsuki

    Oitsuki Member

    Yes
    sudo ufw status verbose
    - ------ ----
    21/tcp ALLOW IN Anywhere
    22/tcp ALLOW IN Anywhere
    25/tcp ALLOW IN Anywhere
    53/tcp ALLOW IN Anywhere
    80/tcp ALLOW IN Anywhere
    110/tcp ALLOW IN Anywhere
    143/tcp ALLOW IN Anywhere
    443/tcp ALLOW IN Anywhere
    465/tcp ALLOW IN Anywhere
    587/tcp ALLOW IN Anywhere
    993/tcp ALLOW IN Anywhere
    995/tcp ALLOW IN Anywhere
    3306/tcp ALLOW IN Anywhere
    4190/tcp ALLOW IN Anywhere
    8080/tcp ALLOW IN Anywhere
    8081/tcp ALLOW IN Anywhere
    40110:40210/tcp ALLOW IN Anywhere
    53/udp ALLOW IN Anywhere
    1022/tcp ALLOW IN Anywhere
    21/tcp (v6) ALLOW IN Anywhere (v6)
    22/tcp (v6) ALLOW IN Anywhere (v6)
    25/tcp (v6) ALLOW IN Anywhere (v6)
    53/tcp (v6) ALLOW IN Anywhere (v6)
    80/tcp (v6) ALLOW IN Anywhere (v6)
    110/tcp (v6) ALLOW IN Anywhere (v6)
    143/tcp (v6) ALLOW IN Anywhere (v6)
    443/tcp (v6) ALLOW IN Anywhere (v6)
    465/tcp (v6) ALLOW IN Anywhere (v6)
    587/tcp (v6) ALLOW IN Anywhere (v6)
    993/tcp (v6) ALLOW IN Anywhere (v6)
    995/tcp (v6) ALLOW IN Anywhere (v6)
    3306/tcp (v6) ALLOW IN Anywhere (v6)
    4190/tcp (v6) ALLOW IN Anywhere (v6)
    8080/tcp (v6) ALLOW IN Anywhere (v6)
    8081/tcp (v6) ALLOW IN Anywhere (v6)
    40110:40210/tcp (v6) ALLOW IN Anywhere (v6)
    53/udp (v6) ALLOW IN Anywhere (v6)
    1022/tcp (v6) ALLOW IN Anywhere (v6)
     
  7. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    I wonder if it can be fixed if you try to run the ispconfig update:
    Code:
    sudo ispconfig_update.sh --force
    
    


    otherwise

    I followed
    https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/
    4vcpu / 8gb ram / x86_64 ; image ubuntu 24.04
    step 1-4 1:1 copied, chosen apache web server

    you shall not run the automated installer with a system installed already

    backup contents of
    sudo crontab -l

    make sure your /etc/hosts
    has the following entry at the very top
    the $hostname in postfix main.cf works for me! it defnitly uses the correct banner
    with $hostname if set up properly according to the howto

    91.134.91.2 vps.clicshopping.eu vps

    those configs were generated
    https://www.ztk.casa/ispconfig/ai_result_u2404/
    you can click on the filenames to expand the contents

    obvsiously I shortened some filenames
    /etc/rspamd# grep -HiRn ispconfig *
    local.d/options.inc:7:# This list is generated by ISPConfig, place custom addresses/networks in local_networks.inc.
    local.d/maps.d/spf_whitelist.inc.ispc:5:ispconfig.org
    local.d/maps.d/dkim_whitelist.inc.ispc:4:ispconfig.org
    local.d/maps.d/dmarc_whitelist.inc.ispc:7:ispconfig.org
     
    Last edited: Jul 30, 2024
  8. Oitsuki

    Oitsuki Member

    Thank you for these suggestions, but before that I would know another advise before to do this.
    I have the latest ispconfig and the update was fine, no error,

    you shall not run the automated installer with a system installed already ===> The auto installer does not work because I tried !!!!! Oups.
    What I do :
    update ispconfig to the latest version
    upgrade ubuntu to 24.04 via a normal ubuntu upgrade.
    I do not had error if I remember

    Maybe if do that : sudo ispconfig_update.sh --force ???

    @till : What do you think.Thank you.
     
  9. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  10. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Previously you wrote:
    What exactly is the error message and where is it shown?
    Previously log you posted had:
    Code:
    2024-07-29T23:11:15.491390+00:00 vps postfix/smtpd[107501]: warning: unknown[80.94.95.209]: SASL LOGIN authentication failed: (reason unavailable), [email protected]
    Where does that username mails and hostname clickshopping.eu come from? Is this the login failure you mention?
     
  11. Oitsuki

    Oitsuki Member

    I reinstalll :
    sudo ispconfig_update.sh --force
    Always same problem, roundcube doest not want to work.
    But I can send and receive email, it's correct.
    Thank you guy for your help and your patience : @till , @ztk.me , @Taleman
     
  12. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    does roundcubemail still support those config-file entries?

    Code:
    // system error reporting, sum of: 1 = log; 4 = show
    $config['debug_level'] = 4;
    
    // Log SQL queries
    $config['sql_debug'] = true;
    
    // Log IMAP conversation
    $config['imap_debug'] = true;
    
    // Log LDAP conversation
    $config['ldap_debug'] = true;
    
    // Log SMTP conversation
    $config['smtp_debug'] = true;
    
    $config['log_driver'] = 'syslog';
    $config['syslog_facility'] = LOG_MAIL;
    
    
     
  13. Oitsuki

    Oitsuki Member

  14. till

    till Super Moderator Staff Member ISPConfig Developer

    Which setting do you have now in RoundCube for:

    $config['smtp_host']

    ?
     
  15. Oitsuki

    Oitsuki Member

    there the result of syslog

    024-07-30T16:05:03.032923+00:00 vps postfix/submission/smtpd[322554]: disconnect from localhost[127.0.0.1] ehlo=1 quit=1 commands=2
    2024-07-30T16:05:03.032969+00:00 vps roundcube: <sl0ttapl> Recv: 221 2.0.0 Bye
    2024-07-30T16:05:03.033013+00:00 vps roundcube: <sl0ttapl> SMTP Error: Authentication failure: vps.clicshopping.eu
    2024-07-30T16:05:03.033059+00:00 vps roundcube: PIPELINING
    2024-07-30T16:05:03.033114+00:00 vps roundcube: SIZE
    2024-07-30T16:05:03.033162+00:00 vps roundcube: VRFY
    2024-07-30T16:05:03.033720+00:00 vps roundcube: ETRN
    2024-07-30T16:05:03.033856+00:00 vps roundcube: STARTTLS
    2024-07-30T16:05:03.034007+00:00 vps roundcube: ENHANCEDSTATUSCODES
    2024-07-30T16:05:03.034115+00:00 vps roundcube: 8BITMIME
    2024-07-30T16:05:03.034231+00:00 vps roundcube: DSN
    2024-07-30T16:05:03.034332+00:00 vps roundcube: CHUNKING (Code: 250) in /usr/share/roundcube/program/lib/Roundcube/rcube.php on line 1787 (POST /webmail/?_task=mail&_unlock=loading1722355502707&_framed=1&_action=send)
    2024-07-30T16:05:03.281245+00:00 vps postfix/smtpd[321488]: connect from unknown[80.94.95.209]
    2024-07-30T16:05:05.579452+00:00 vps dovecot: auth: Error: auth client 0 disconnected with 1 pending requests: Connection reset by peer
    2024-07-30T16:05:05.889239+00:00 vps roundcube: <sl0ttapl> [1] SELECT `vars`, `ip`, `changed`, now() AS ts, CASE WHEN `changed` < now() - INTERVAL 600 SECOND THEN 1 ELSE 0 END AS expired FROM `session` WHERE `sess_id` = 'sl0ttaplh7l21akmjiatkd8d6g';
    2024-07-30T16:05:05.889959+00:00 vps roundcube: <sl0ttapl> [2] SELECT * FROM `users` WHERE `user_id` = '1';
    2024-07-30T16:05:09.302895+00:00 vps PackageKit: daemon quit
    2024-07-30T16:05:09.309773+00:00 vps systemd[1]: packagekit.service: Deactivated successfully.
    2024-07-30T16:05:09.983152+00:00 vps postfix/smtpd[321486]: connect from unknown[80.94.95.248]
    2024-07-30T16:05:13.280702+00:00 vps postfix/smtpd[321488]: warning: unknown[80.94.95.209]: SASL LOGIN authentication failed: (reason unavailable), [email protected]
    2024-07-30T16:05:14.030257+00:00 vps postfix/smtpd[321488]: disconnect from unknown[80.94.95.209] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
    2024-07-30T16:05:15.283156+00:00 vps postfix/smtpd[321486]: warning: unknown[80.94.95.248]: SASL LOGIN authentication failed: (reason unavailable), [email protected]
    2024-07-30T16:05:15.334997+00:00 vps postfix/smtpd[321486]: disconnect from unknown[80.94.95.248] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
     
  16. Oitsuki

    Oitsuki Member

    I do no have : $config['smtp_host'] in rouncube config
    my value
    $config['default_host'] = 'localhost';
    $config['smtp_server'] = 'localhost';
    $config['smtp_port'] = 25;
     
  17. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    I assume you started watching the log too late.
    The login attempt from localhost is almost ended there ( log starting with disconnect from localhost )
    But the interesting part would be earlier in the log.

    Do you start watching the log before logging in?
    If there is too much clutter, right before logging in hit the return key a few times, it'll add some spacing in your console ( only )
     
  18. Oitsuki

    Oitsuki Member

    On mail.logI have this in bold. Can help


    2024-07-30T16:14:19.167531+00:00 vps roundcube: <sl0ttapl> [1] SELECT `vars`, `ip`, `changed`, now() AS ts, CASE WHEN `changed` < now() - INTERVAL 600 SECOND THEN 1 ELSE 0 END AS expired FROM `session` WHERE `sess_id` = 'sl0ttaplh7l21akmjiatkd8d6g';
    2024-07-30T16:14:19.167692+00:00 vps roundcube: <sl0ttapl> [2] SELECT * FROM `users` WHERE `user_id` = '1';
    2024-07-30T16:14:19.169449+00:00 vps roundcube: <sl0ttapl> [3] SELECT * FROM `identities` WHERE `del` <> 1 AND `user_id` = '1' AND `identity_id` = 1 ORDER BY `standard` DESC, `name` ASC, `email` ASC, `identity_id` ASC;
    2024-07-30T16:14:19.170471+00:00 vps roundcube: <sl0ttapl> Connecting to localhost:587...
    2024-07-30T16:14:19.190925+00:00 vps postfix/submission/smtpd[323576]: connect from localhost[127.0.0.1]
    2024-07-30T16:14:19.191711+00:00 vps roundcube: <sl0ttapl> Recv: 220 vps.clicshopping.eu ESMTP Postfix (Ubuntu)
    2024-07-30T16:14:19.191772+00:00 vps roundcube: <sl0ttapl> Send: EHLO vps.clicshopping.eu
    2024-07-30T16:14:19.191803+00:00 vps roundcube: <sl0ttapl> Recv: 250-vps.clicshopping.eu
    2024-07-30T16:14:19.191826+00:00 vps roundcube: <sl0ttapl> Recv: 250-PIPELINING
    2024-07-30T16:14:19.191850+00:00 vps roundcube: <sl0ttapl> Recv: 250-SIZE
    2024-07-30T16:14:19.191867+00:00 vps roundcube: <sl0ttapl> Recv: 250-VRFY
    2024-07-30T16:14:19.191897+00:00 vps roundcube: <sl0ttapl> Recv: 250-ETRN
    2024-07-30T16:14:19.191918+00:00 vps roundcube: <sl0ttapl> Recv: 250-STARTTLS

    2024-07-30T16:14:19.191939+00:00 vps roundcube: <sl0ttapl> Recv: 250-ENHANCEDSTATUSCODES
    2024-07-30T16:14:19.191962+00:00 vps roundcube: <sl0ttapl> Recv: 250-8BITMIME
    2024-07-30T16:14:19.191982+00:00 vps roundcube: <sl0ttapl> Recv: 250-DSN
    2024-07-30T16:14:19.192008+00:00 vps roundcube: <sl0ttapl> Recv: 250 CHUNKING
    2024-07-30T16:14:19.192032+00:00 vps roundcube: <sl0ttapl> PHP Error: SMTP server does not support authentication (POST /webmail/?_task=mail&_unlock=loading1722356058821&_framed=1&_action=send)
    2024-07-30T16:14:19.192058+00:00 vps roundcube: <sl0ttapl> Send: QUIT
    2024-07-30T16:14:19.192078+00:00 vps postfix/submission/smtpd[323576]: disconnect from localhost[127.0.0.1] ehlo=1 quit=1 commands=2
    2024-07-30T16:14:19.192103+00:00 vps roundcube: <sl0ttapl> Recv: 221 2.0.0 Bye
    2024-07-30T16:14:19.192124+00:00 vps roundcube: <sl0ttapl> SMTP Error: Authentication failure: vps.clicshopping.eu
     
  19. Oitsuki

    Oitsuki Member

    there the result about the syslog. Is it better ?

    2024-07-30T16:19:41.837800+00:00 vps roundcube: <sl0ttapl> [1] SELECT `vars`, `ip`, `changed`, now() AS ts, CASE WHEN `changed` < now() - INTERVAL 600 SECOND THEN 1 ELSE 0 END AS expired FROM `session` WHERE `sess_id` = 'sl0ttaplh7l21akmjiatkd8d6g';
    2024-07-30T16:19:41.839714+00:00 vps roundcube: <sl0ttapl> [2] SELECT * FROM `users` WHERE `user_id` = '1';
    2024-07-30T16:19:41.839891+00:00 vps roundcube: <sl0ttapl> [3] SELECT * FROM `identities` WHERE `del` <> 1 AND `user_id` = '1' AND `identity_id` = 1 ORDER BY `standard` DESC, `name` ASC, `email` ASC, `identity_id` ASC;
    2024-07-30T16:19:41.840708+00:00 vps roundcube: <sl0ttapl> Connecting to localhost:587...
    2024-07-30T16:19:41.841225+00:00 vps postfix/submission/smtpd[323836]: connect from localhost[127.0.0.1]
    2024-07-30T16:19:41.841613+00:00 vps roundcube: <sl0ttapl> Recv: 220 vps.clicshopping.eu ESMTP Postfix (Ubuntu)
    2024-07-30T16:19:41.841747+00:00 vps roundcube: <sl0ttapl> Send: EHLO vps.clicshopping.eu
    2024-07-30T16:19:41.841950+00:00 vps roundcube: <sl0ttapl> Recv: 250-vps.clicshopping.eu
    2024-07-30T16:19:41.842019+00:00 vps roundcube: <sl0ttapl> Recv: 250-PIPELINING
    2024-07-30T16:19:41.842083+00:00 vps roundcube: <sl0ttapl> Recv: 250-SIZE
    2024-07-30T16:19:41.842154+00:00 vps roundcube: <sl0ttapl> Recv: 250-VRFY
    2024-07-30T16:19:41.842211+00:00 vps roundcube: <sl0ttapl> Recv: 250-ETRN
    2024-07-30T16:19:41.842274+00:00 vps roundcube: <sl0ttapl> Recv: 250-STARTTLS
    2024-07-30T16:19:41.842334+00:00 vps roundcube: <sl0ttapl> Recv: 250-ENHANCEDSTATUSCODES
    2024-07-30T16:19:41.842389+00:00 vps roundcube: <sl0ttapl> Recv: 250-8BITMIME
    2024-07-30T16:19:41.842442+00:00 vps roundcube: <sl0ttapl> Recv: 250-DSN
    2024-07-30T16:19:41.842492+00:00 vps roundcube: <sl0ttapl> Recv: 250 CHUNKING
    2024-07-30T16:19:41.842607+00:00 vps roundcube: <sl0ttapl> PHP Error: SMTP server does not support authentication (POST /webmail/?_task=mail&_unlock=loading1722356381509&_framed=1&_action=send)
    2024-07-30T16:19:41.842706+00:00 vps roundcube: <sl0ttapl> Send: QUIT
    2024-07-30T16:19:41.842852+00:00 vps postfix/submission/smtpd[323836]: disconnect from localhost[127.0.0.1] ehlo=1 quit=1 commands=2
    2024-07-30T16:19:41.843407+00:00 vps roundcube: <sl0ttapl> Recv: 221 2.0.0 Bye
    2024-07-30T16:19:41.843448+00:00 vps roundcube: <sl0ttapl> SMTP Error: Authentication failure: vps.clicshopping.eu
    2024-07-30T16:19:41.843487+00:00 vps roundcube: PIPELINING
    2024-07-30T16:19:41.843514+00:00 vps roundcube: SIZE
    2024-07-30T16:19:41.843535+00:00 vps roundcube: VRFY
    2024-07-30T16:19:41.843559+00:00 vps roundcube: ETRN
    2024-07-30T16:19:41.843585+00:00 vps roundcube: STARTTLS
    2024-07-30T16:19:41.843605+00:00 vps roundcube: ENHANCEDSTATUSCODES
    2024-07-30T16:19:41.843628+00:00 vps roundcube: 8BITMIME
    2024-07-30T16:19:41.843645+00:00 vps roundcube: DSN
     
  20. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    default roundcube config after automated installation looks like this:
    I removed the generated des_key from my config, be aware.
    Code:
    <?php
    
    /*
     +-----------------------------------------------------------------------+
     | Local configuration for the Roundcube Webmail installation.           |
     |                                                                       |
     | This is a sample configuration file only containing the minimum       |
     | setup required for a functional installation. Copy more options       |
     | from defaults.inc.php to this file to override the defaults.          |
     |                                                                       |
     | This file is part of the Roundcube Webmail client                     |
     | Copyright (C) The Roundcube Dev Team                                  |
     |                                                                       |
     | Licensed under the GNU General Public License version 3 or            |
     | any later version with exceptions for skins & plugins.                |
     | See the README file for a full license statement.                     |
     +-----------------------------------------------------------------------+
    */
    
    $config = [];
    
    // Do not set db_dsnw here, use dpkg-reconfigure roundcube-core to configure database!
    include("/etc/roundcube/debian-db-roundcube.php");
    
    // IMAP host chosen to perform the log-in.
    // See defaults.inc.php for the option description.
    $config['imap_host'] = ["localhost:143"];
    
    // SMTP server host (for sending mails).
    // See defaults.inc.php for the option description.
    $config['smtp_host'] = 'localhost:25';
    
    // SMTP username (if required) if you use %u as the username Roundcube
    // will use the current username for login
    $config['smtp_user'] = '%u';
    
    // 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';
    
    // 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'] = '';
    
    // Name your service. This is displayed on the login screen and in the window title
    $config['product_name'] = 'Roundcube Webmail';
    
    // This key is used to encrypt the users imap password which is stored
    // in the session record. For the default cipher method it must be
    // exactly 24 characters long.
    // YOUR KEY MUST BE DIFFERENT THAN THE SAMPLE VALUE FOR SECURITY REASONS
    $config['des_key'] = '';
    
    // List of active plugins (in plugins/ directory)
    // Debian: install roundcube-plugins first to have any
    $config['plugins'] = [
        // 'archive',
        // 'zipdownload',
    ];
    
    // skin name: folder from skins/
    $config['skin'] = 'elastic';
    
    // Disable spellchecking
    // Debian: spellchecking needs additional packages to be installed, or calling external APIs
    //         see defaults.inc.php for additional informations
    $config['enable_spellcheck'] = false;
    I tested it, it works for me. it just does not use secure connection on localhost which might be bad or not, depending on situation. but it defnitly works, as a start
     

Share This Page