email problems

Discussion in 'ISPConfig 3 Priority Support' started by Tom John, Feb 13, 2022.

  1. Tom John

    Tom John Active Member HowtoForge Supporter

    Hi guys,
    i am using ubuntu 20.04 with ispconfig 3 according to:
    https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/
    I setup a complete fresh server today because i had email problems with other servers before, so i moved from one server to server 2 and to server 3 without solving the problem, so i decided to install a complete fresh server to check what is going on. (email [email protected])
    the last problems i had here:
    https://www.howtoforge.com/community/threads/mail-problem.88377/
    When i setup a new email i get the following error in the logs:
    (after that i setup a new password for the email but however its the same problem) maybe because i moved the domains today to the new server?
    Code:
    Feb 13 15:07:08 server6 dovecot: auth-worker(193487): Warning: sqlpool(mysql): Query failed, retrying: Connection was killed
    Feb 13 15:07:08 server6 dovecot: auth-worker(193487): Error: sql([email protected],31.14.63.61,<20LA0ObXnLAfDj89>): Password query failed: Connection was killed
    Feb 13 15:07:10 server6 dovecot: imap-login: Disconnected (auth service reported temporary failure): user=<[email protected]>, method=PLAIN, rip=31.14.63.61, lip=144.91.80.244, TLS, session=<20LA0ObXnLAfDj89>
    Feb 13 15:07:10 server6 dovecot: auth-worker(193487): Warning: sqlpool(mysql): Query failed, retrying: Connection was killed
    Feb 13 15:07:11 server6 dovecot: auth-worker(193487): Error: sql(hewlett,5.34.205.118): Password query failed: Connection was killed
    Feb 13 15:07:12 server6 postfix/smtpd[351521]: warning: unknown[5.34.205.118]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
    Feb 13 15:07:12 server6 postfix/smtpd[351521]: disconnect from unknown[5.34.205.118] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
    Feb 13 15:07:14 server6 dovecot: auth-worker(193487): Warning: sqlpool(mysql): Query failed, retrying: Connection was killed
    Feb 13 15:07:14 server6 dovecot: auth-worker(193487): Error: sql([email protected],31.14.63.61,<AJzm0ObXnrAfDj89>): Password query failed: Connection was killed
    Feb 13 15:07:16 server6 dovecot: imap-login: Disconnected (auth service reported temporary failure): user=<[email protected]>, method=PLAIN, rip=31.14.63.61, lip=144.91.80.244, TLS, session=<AJzm0ObXnrAfDj89>
    Feb 13 15:07:16 server6 postfix/smtpd[351378]: connect from unknown[5.34.205.118]
    Feb 13 15:07:18 server6 postfix/anvil[345636]: statistics: max connection rate 7/60s for (smtp:5.34.205.118) at Feb 13 15:01:42
    Feb 13 15:07:18 server6 postfix/anvil[345636]: statistics: max connection count 3 for (smtp:5.34.205.118) at Feb 13 15:00:43
    Feb 13 15:07:18 server6 postfix/anvil[345636]: statistics: max cache size 2 at Feb 13 14:57:36
    
    
    with webmail i cannot login as well.
    Do you have any idea what i can do to make the email work?
    thanks for your big help
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if MariaDB is not working correctly, so connections from dovecot fail. Check the /var/log/syslog file for errors and also the log files form mariadb. Does the server has enough RAM?
     
  3. Tom John

    Tom John Active Member HowtoForge Supporter

    hi thanks for your answer.
    update : login works with webmail and i can connect via IMAP as well.
    Code:
    Feb 13 15:32:54 server6 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=547822, secured, session=<o27vLOfXToN/AAAB>
    Feb 13 15:32:54 server6 dovecot: imap([email protected])<547822><o27vLOfXToN/AAAB>: Logged out in=50 out=540 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
    
    
    i was confused with a password so now the connection is working, but the email does not arrive
    when i want to send an email i get from the email programm:
    error tls handshake
    The server is a VPS with 4 GB RAM
    if i look for mysql error in syslog i get nothing:
    Code:
    root@server6:~# tail -f /var/log/syslog | grep mysql
    
    
    in roundcube the emails do not arrive but i can login
     
  4. Tom John

    Tom John Active Member HowtoForge Supporter

    moreover i can send an email with roundcube and the email arrives as well only receiving is not possible
     
  5. Tom John

    Tom John Active Member HowtoForge Supporter

    Update:
    another email is now working on the server so the server is working well.
    I assume, that the email which does not work is because the DNS are with cloudflare so maybe it take some time until it will work
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Login with roundcube to a local account of your server, then send an email to the same account that you logged into RoundCube. If it arrives in the account after a few seconds, then your mail server itself is working properly.
     
  7. Tom John

    Tom John Active Member HowtoForge Supporter

    Hi thanks for care about my problems.
    When i login in Roundcube and send an email to myself so it arrives well without any problems.

    thanks a lot as always for your big help and thats on a sunday
     
    till likes this.
  8. Tom John

    Tom John Active Member HowtoForge Supporter

    Hi there again,
    to receive emails is no problem, but i can not send emails
    Code:
    Feb 14 16:42:01 server6 postfix/submission/smtpd[760006]: connect from unknown[31.14.62.136]
    Feb 14 16:42:01 server6 postfix/submission/smtpd[760006]: lost connection after CONNECT from unknown[31.14.62.136]
    Feb 14 16:42:01 server6 postfix/submission/smtpd[760006]: disconnect from unknown[31.14.62.136] commands=0/0
    
    
    the email program says:
    Code:
    error performing tls handshake , an unexpected tls package was received 
    
    how can i find the problem with that?
    thanks again
     

Share This Page