when changing email password the maildir moves to corrupted

Discussion in 'General' started by chief, Jun 1, 2020.

  1. chief

    chief Member

    when i have changed email passwords for users, the system now seems to move the whole MAILDIR directory to /var/vmail/corrupted/number.
    the number directory is a numerical number like 132.
    all i have to do is move the contents of the MAILDIR back to the original location, but this shouldnt happen.
    can anyone answer why this does happen please? so i can find a solution and maybe stop it

    dave
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Check that you did not accidentally changed the IMAP server type under system > server config from dovecot to courier or vice versa. What you describe happens when the existing Maildir structure does not match the settings from System > server config > mail.
     
  4. chief

    chief Member

    debain 9, ispconfig 3
    mailserver = 3.1.15p2
    webserver / master = 3.1.2

    server config = dont remember changing this,. but its set to COURIER
     
  5. chief

    chief Member

    my web server

    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Debian GNU/Linux 9.12 (stretch)
    [INFO] ISPConfig is installed.

    ##### ISPCONFIG #####
    ISPConfig version is 3.1.12


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

    [INFO] php (cli) version is 7.0.33-0+deb9u7

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

    [WARN] Port 143 (IMAP server) seems NOT to be listening
    [WARN] Port 993 (IMAP server SSL) seems NOT to be listening
    [WARN] Port 110 (POP3 server) seems NOT to be listening
    [WARN] Port 995 (POP3 server SSL) seems NOT to be listening
    [WARN] Port 465 (SMTP server SSL) seems NOT to be listening

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

    [WARN] I found no "submission" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer port 587 for smtp connections you have to enable this.
    [WARN] I found no "smtps" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer SSL for smtp (not TLS) connections you have to enable this.

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

    [INFO] I found the following web server(s):
    Apache 2 (PID 1587)
    [INFO] I found the following mail server(s):
    Postfix (PID 1492)
    [WARN] I could not determine which pop3 server is running.
    [WARN] I could not determine which imap server is running.
    [INFO] I found the following ftp server(s):
    PureFTP (PID 15410)

    ##### LISTENING PORTS #####
    (only ()
    Local (Address)
    [anywhere]:21 (15410/pure-ftpd)
    [anywhere]:22 (1248/sshd)
    [localhost]:25 (1492/master)
    [localhost]:11211 (1193/memcached)
    *:*:*:*::*:8081 (1587/apache2)
    *:*:*:*::*:21 (15410/pure-ftpd)
    *:*:*:*::*:22 (1248/sshd)
    *:*:*:*::*:25 (1492/master)
    *:*:*:*::*:443 (1587/apache2)
    *:*:*:*::*:3306 (1391/mysqld)
    *:*:*:*::*:80 (1587/apache2)
    *:*:*:*::*:8080 (1587/apache2)




    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    f2b-pure-ftpd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 21
    f2b-sshd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 22

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    Chain f2b-pure-ftpd (1 references)
    target prot opt source destination
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain f2b-sshd (1 references)
    target prot opt source destination
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    RETURN all -- [anywhere]/0 [anywhere]/0
     
  6. chief

    chief Member

    my mail server

    ##### SCRIPT FINISHED #####
    Results can be found in htf_report.txt
    To view results use your favourite text editor or type 'cat htf_report.txt | more' on the server console.

    If you want to see the non-anonymized output start the script with --debug as parameter (php -q htf-common-issues.php --debug).

    root@mail:/tmp# ls
    htf-common-issues.php systemd-private-7f3061b7672340d296200400b4b2908e-apache2.service-YvMYAI
    htf_report.txt systemd-private-7f3061b7672340d296200400b4b2908e-dovecot.service-Dibhci
    root@mail:/tmp# 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 9.12 (stretch)
    [INFO] ISPConfig is installed.

    ##### ISPCONFIG #####
    ISPConfig version is 3.1.15p2


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

    [INFO] php (cli) version is 7.0.33-0+deb9u7

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

    [WARN] Port 8080 (ISPConfig) seems NOT to be listening
    [WARN] Port 8081 (ISPConfig Apps) seems NOT to be listening
    [WARN] Port 443 (Webserver SSL) seems NOT to be listening
    [WARN] Port 21 (FTP server) seems NOT to be listening

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


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

    [INFO] I found the following web server(s):
    Apache 2 (PID 1293)
    [INFO] I found the following mail server(s):
    Postfix (PID 1712)
    [INFO] I found the following pop3 server(s):
    Dovecot (PID 1256)
    [INFO] I found the following imap server(s):
    Dovecot (PID 1256)
    [WARN] I could not determine which ftp server is running.

    ##### LISTENING PORTS #####
    (only ()
    Local (Address)
    [localhost]:10027 (1712/master)
    [anywhere]:587 (1712/master)
    [anywhere]:110 (1256/dovecot)
    [anywhere]:143 (1256/dovecot)
    [anywhere]:465 (1712/master)
    [anywhere]:22 (1377/sshd)
    [anywhere]:25 (1712/master)
    [anywhere]:993 (1256/dovecot)
    [anywhere]:995 (1256/dovecot)
    [localhost]:10023 (1370/postgrey)
    [localhost]:10024 (9216/amavisd-new)
    [localhost]:10025 (1712/master)
    [localhost]:10026 (9216/amavisd-new)
    *:*:*:*::*:587 (1712/master)
    [localhost]10 (1256/dovecot)
    [localhost]43 (1256/dovecot)
    *:*:*:*::*:80 (1293/apache2)
    *:*:*:*::*:465 (1712/master)
    *:*:*:*::*:22 (1377/sshd)
    *:*:*:*::*:25 (1712/master)
    *:*:*:*::*:993 (1256/dovecot)
    *:*:*:*::*:995 (1256/dovecot)
    *:*:*:*::*:10023 (1370/postgrey)
    *:*:*:*::*:10024 (9216/amavisd-new)
    *:*:*:*::*:10026 (9216/amavisd-new)
    *:*:*:*::*:3306 (1529/mysqld)




    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    f2b-dovecot-pop3imap tcp -- [anywhere]/0 [anywhere]/0 multiport dports 110,995,143,993
    f2b-postfix-sasl tcp -- [anywhere]/0 [anywhere]/0 multiport dports 25
    f2b-sshd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 22

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    Chain f2b-dovecot-pop3imap (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain f2b-postfix-sasl (1 references)
    target prot opt source destination
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain f2b-sshd (1 references)
    target prot opt source destination
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    RETURN all -- [anywhere]/0 [anywhere]/0
     
  7. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Your report output indicates you're running dovecot, so sounds like this setting is causing your issue.
     
    Last edited: Jun 2, 2020
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What @Jesse Norell wrote. Also, you should have same version of ISPConfig on all member hosts on an ISPConfig multiserver setup.
     

Share This Page