Two-factor authentication: failing sending an email to..

Discussion in 'General' started by rscalas, Feb 3, 2024.

  1. rscalas

    rscalas New Member

    Hello everyone, I'm experiencing an issue. If I enable two-factor authentication, when I try to log in to ISPConfig, it gives me the error: failing sending an email to [email protected].
    Would someone be so kind as to suggest how I can solve this error?

    cat htf_report.txt

    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Debian GNU/Linux 11 (bullseye)
    [INFO] uptime: 16:09:31 up 18:41, 1 user, load average: 0.00, 0.00, 0.00
    [INFO] memory:
    total used free shared buff/cache available
    Mem: 3.7Gi 2.0Gi 739Mi 110Mi 1.0Gi 1.4Gi
    Swap: 0B 0B 0B
    [INFO] systemd failed services status:
    UNIT LOAD ACTIVE SUB DESCRIPTION
    0 loaded units listed.

    [INFO] ISPConfig is installed.
    [WARN] /usr/local/ispconfig/server/lib/config.inc.php is missing.

    ##### VERSION CHECK #####

    [INFO] php (cli) version is 7.4.33
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.4.33

    ##### PORT CHECK #####


    ##### MAIL SERVER CHECK #####


    ##### RUNNING SERVER PROCESSES #####

    [WARN] I could not determine which web server is running.
    [WARN] I could not determine which mail server is running.
    [WARN] I could not determine which pop3 server is running.
    [WARN] I could not determine which imap server is running.
    [WARN] I could not determine which ftp server is running.

    ##### LISTENING PORTS #####
    (only ()
    Local (Address)
    [anywhere]:993 (-)
    [anywhere]:995 (-)
    [localhost]:11332 (-)
    [localhost]:11333 (-)
    [localhost]:11334 (-)
    [localhost]:10023 (-)
    [anywhere]:587 (-)
    [localhost]:6379 (-)
    [localhost]:11211 (-)
    [anywhere]:110 (-)
    [anywhere]:143 (-)
    [anywhere]:465 (-)
    [anywhere]:21 (-)
    ***.***.***.***:53 (-)
    ***.***.***.***:53 (-)
    ***.***.***.***:53 (-)
    ***.***.***.***:53 (-)
    [localhost]:53 (-)
    [localhost]:53 (-)
    [localhost]:53 (-)
    [localhost]:53 (-)
    [anywhere]:22 (-)
    [anywhere]:25 (-)
    [localhost]:953 (-)
    [anywhere]:4190 (-)
    *:*:*:*::*:993 (-)
    *:*:*:*::*:995 (-)
    *:*:*:*::*:11332 (-)
    *:*:*:*::*:11333 (-)
    *:*:*:*::*:11334 (-)
    *:*:*:*::*:10023 (-)
    *:*:*:*::*:3306 (-)
    *:*:*:*::*:587 (-)
    *:*:*:*::*:6379 (-)
    [localhost]10 (-)
    [localhost]43 (-)
    *:*:*:*::*:8080 (-)
    *:*:*:*::*:80 (-)
    *:*:*:*::*:465 (-)
    *:*:*:*::*:8081 (-)
    *:*:*:*::*:21 (-)
    *:*:*:*::*:53 (-)
    *:*:*:*::*:53 (-)
    *:*:*:*::*:53 (-)
    *:*:*:*::*:53 (-)
    *:*:*:*::*b:53 (-)
    *:*:*:*::*b:53 (-)
    *:*:*:*::*b:53 (-)
    *:*:*:*::*b:53 (-)
    *:*:*:*::*f816:3eff:fef0:53 (-)
    *:*:*:*::*f816:3eff:fef0:53 (-)
    *:*:*:*::*f816:3eff:fef0:53 (-)
    *:*:*:*::*f816:3eff:fef0:53 (-)
    *:*:*:*::*:22 (-)
    *:*:*:*::*:25 (-)
    *:*:*:*::*:953 (-)
    *:*:*:*::*:443 (-)
    *:*:*:*::*:4190 (-)




    ##### IPTABLES #####




    ##### LET'S ENCRYPT #####
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Try sending e-mail to that address, what happens? See mail.log for info on what happens with that e-mail.
    Is this a system that was just now installed? The common issues report looks like nothing is working.
    Next time, post it in CODE tags.
     
  3. rscalas

    rscalas New Member

    If I send an email to that address, it works. The problem occurred when, due to an issue with receiving emails, I accessed the database and manually set the opt_type to ISPConfig access without two-factor authentication. Having solved the email issue (although there's still one, but they do arrive), I reset the two-factor authentication. The mail.log is:
    Code:
    session=<VS1kq48Qzp0AAAAAAAAAAAAAAAAAAAAB>
    Feb 4 15:05:02 vps-46f2392e postfix/smtpd[420972]: connect from localhost[::1]
    Feb 4 15:05:02 vps-46f2392e postfix/smtpd[420972]: lost connection after CONNECT from localhost[::1]
    Feb 4 15:05:02 vps-46f2392e postfix/smtpd[420972]: disconnect from localhost[::1] commands=0/0
    Feb 4 15:06:33 vps-46f2392e postfix/anvil[420828]: statistics: max connection rate 1/60s for (submission:IP_ADDRESS) at Feb 4 15:03:12
    Feb 4 15:06:33 vps-46f2392e postfix/anvil[420828]: statistics: max connection count 1 for (submission:IP_ADDRESS) at Feb 4 15:03:12
    Feb 4 15:06:33 vps-46f2392e postfix/anvil[420828]: statistics: max cache size 1 at Feb 4 15:03:12
    Feb 4 15:10:01 vps-46f2392e getmail: getmailOperationError error (no address for DOMAIN ([Errno -2] Name or service not known))
    Feb 4 15:10:01 vps-46f2392e dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=::1, lip=::1, secured, session=<N1NBvY8QUrQAAAAAAAAAAAAAAAAAAAAB>
    Feb 4 15:10:01 vps-46f2392e dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<CmtBvY8QpqgAAAAAAAAAAAAAAAAAAAAB>
    Feb 4 15:10:01 vps-46f2392e postfix/smtpd[421654]: connect from localhost[::1]
    Feb 4 15:10:01 vps-46f2392e postfix/smtpd[421654]: lost connection after CONNECT from localhost[::1]
    Feb 4 15:10:01 vps-46f2392e postfix/smtpd[421654]: disconnect from localhost[::1] commands=0/0
    Feb 4 15:13:48 vps-46f2392e dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=IP_ADDRESS, lip=IP_ADDRESS, TLS: Connection closed, session=<9iXJyo8Q1ruijn3Y>
    Feb 4 15:15:01 vps-46f2392e getmail: getmailOperationError error (no address for DOMAIN ([Errno -2] Name or service not known))
    Feb 4 15:15:01 vps-46f2392e dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<O1sez48QNpsAAAAAAAAAAAAAAAAAAAAB>
    Feb 4 15:15:01 vps-46f2392e dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<ylsez48QxscAAAAAAAAAAAAAAAAAAAAB>
    Feb 4 15:15:01 vps-46f2392e postfix/smtpd[421877]: connect from localhost[::1]
    Feb 4 15:15:01 vps-46f2392e postfix/smtpd[421877]: lost connection after CONNECT from localhost[::1]
    Feb 4 15:15:01 vps-46f2392e postfix/smtpd[421877]: disconnect from localhost[::1] commands=0/0
    ...
    Feb 4 15:35:01 vps-46f2392e getmail: getmailOperationError error (no address for DOMAIN ([Errno -2] Name or service not known))
    Feb 4 15:35:01 vps-46f2392e postfix/smtpd[422719]: connect from localhost[::1]
    Feb 4 15:35:01 vps-46f2392e postfix/smtpd[422719]: lost connection after CONNECT from localhost[::1]
    Feb 4 15:35:01 vps-46f2392e postfix/smtpd[422719]: disconnect from localhost[::1] commands=0/0
    Feb 4 15:35:01 vps-46f2392e dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<9jWhFpAQYKoAAAAAAAAAAAAAAAAAAAAB>
    Feb 4 15:35:01 vps-46f2392e dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<YzmhFpAQVI8AAAAAAAAAAAAAAAAAAAAB>
    Feb 4 15:35:02 vps-46f2392e postfix/smtpd[422719]: warning: hostname DOMAIN does not resolve to address IP_ADDRESS
    Feb 4 15:35:02 vps-46f2392e postfix/smtpd[422719]: connect from unknown[IP_ADDRESS]
    Feb 4 15:35:04 vps-46f2392e postfix/smtpd[422719]: warning: unknown[IP_ADDRESS]: SASL LOGIN authentication failed: UGFzc3dvcmQ6, sasl_username=admin@DOMAIN
    Feb 4 15:35:04 vps-46f2392e postfix/smtpd[422719]: lost connection after AUTH from unknown[IP_ADDRESS]
    Feb 4 15:35:04 vps-46f2392e postfix/smtpd[422719]: disconnect from unknown[IP_ADDRESS] ehlo=1 auth=0/1 commands=1/2
    ...
    Feb 4 15:40:01 vps-46f2392e getmail: getmailOperationError error (no address for DOMAIN ([Errno -2] Name or service not known))
    Feb 4 15:40:01 vps-46f2392e dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=::1, lip=::1, secured, session=<vNyMKJAQQKkAAAAAAAAAAAAAAAAAAAAB>
    Feb 4 15:40:01 vps-46f2392e postfix/smtpd[423524]: connect from localhost[::1]
    Feb 4 15:40:01 vps-46f2392e postfix/smtpd[423524]: lost connection after CONNECT from localhost[::1]
    Feb 4 15:40:01 vps-46f2392e postfix/smtpd[423524]: disconnect from localhost[::1] commands=0/0
    Feb 4 15:40:01 vps-46f2392e dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<ivaMKJAQdMsAAAAAAAAAAAAAAAAAAAAB>
    
    
     

Share This Page