ISPConfig 3.2.9p1 FTP and mail server not working

Discussion in 'Installation/Configuration' started by ajay singh, Apr 27, 2023.

  1. ajay singh

    ajay singh New Member

    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Ubuntu 22.04.2 LTS
    
    [INFO] uptime:  06:35:37 up 1 day, 17:57,  2 users,  load average: 0.10, 0.03, 0.01
    
    [INFO] memory:
                   total        used        free      shared  buff/cache   available
    Mem:            29Gi       2.2Gi        23Gi        67Mi       3.6Gi        26Gi
    Swap:          8.0Gi          0B       8.0Gi
    
    [INFO] systemd failed services status:
      UNIT                      LOAD   ACTIVE SUB    DESCRIPTION
    ● certbot.service           loaded failed failed Certbot
    ● snap.lxd.activate.service loaded failed failed Service for snap application lxd.activate
    
    LOAD   = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB    = The low-level unit activation state, values depend on unit type.
    2 loaded units listed.
    
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.9p1
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 8.1.17
    [INFO] php-cgi (used for cgi php in default vhost!) is version 8.1.17
    
    ##### PORT CHECK #####
    
    [WARN] Port 22 (SSH server) seems NOT to be listening
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
            Apache 2 (PID 1340)
    [INFO] I found the following mail server(s):
            Postfix (PID 451454)
    [INFO] I found the following pop3 server(s):
            Dovecot (PID 888)
    [INFO] I found the following imap server(s):
            Dovecot (PID 888)
    [INFO] I found the following ftp server(s):
            PureFTP (PID 1364)
    
    ##### LISTENING PORTS #####
    (only           ()
    Local           (Address)
    [anywhere]:4190         (888/dovecot)
    [localhost]:11211               (895/memcached)
    [localhost]:11334               (1102/rspamd:)
    [localhost]:11332               (1102/rspamd:)
    [localhost]:11333               (1102/rspamd:)
    [anywhere]:6317         (974/sshd:)
    [localhost]:10023               (1195/postgrey)
    [anywhere]:143          (888/dovecot)
    [anywhere]:110          (888/dovecot)
    [anywhere]:25           (451454/master)
    [anywhere]:21           (1364/pure-ftpd)
    [anywhere]:465          (451454/master)
    [anywhere]:587          (451454/master)
    ***.***.***.***:53              (992/named)
    ***.***.***.***:53              (992/named)
    ***.***.***.***:53              (992/named)
    ***.***.***.***:53              (992/named)
    ***.***.***.***:53              (992/named)
    ***.***.***.***:53              (992/named)
    ***.***.***.***:53              (992/named)
    ***.***.***.***:53              (992/named)
    [anywhere]:995          (888/dovecot)
    [anywhere]:993          (888/dovecot)
    ***.***.***.***:53              (992/named)
    ***.***.***.***:53              (992/named)
    ***.***.***.***:53              (992/named)
    ***.***.***.***:53              (992/named)
    ***.***.***.***:53              (992/named)
    ***.***.***.***:53              (992/named)
    ***.***.***.***:53              (992/named)
    ***.***.***.***:53              (992/named)
    [localhost]:53          (992/named)
    [localhost]:53          (992/named)
    [localhost]:53          (992/named)
    [localhost]:53          (992/named)
    [localhost]:53          (992/named)
    [localhost]:53          (992/named)
    [localhost]:53          (992/named)
    [localhost]:53          (992/named)
    [localhost]:953         (992/named)
    [localhost]:953         (992/named)
    [localhost]:953         (992/named)
    [localhost]:953         (992/named)
    [localhost]:953         (992/named)
    [localhost]:953         (992/named)
    [localhost]:953         (992/named)
    [localhost]:953         (992/named)
    [localhost]:6379                (935/redis-server)
    ***.***.***.***:53              (866/systemd-resolve)
    [anywhere]:9571         (1165/mariadbd)
    *:*:*:*::*:4190         (888/dovecot)
    *:*:*:*::*:6317         (974/sshd:)
    *:*:*:*::**:*:*:*::*53          (992/named)
    *:*:*:*::**:*:*:*::*53          (992/named)
    *:*:*:*::**:*:*:*::*53          (992/named)
    *:*:*:*::**:*:*:*::*53          (992/named)
    *:*:*:*::**:*:*:*::*53          (992/named)
    *:*:*:*::**:*:*:*::*53          (992/named)
    *:*:*:*::**:*:*:*::*53          (992/named)
    *:*:*:*::**:*:*:*::*53          (992/named)
    *:*:*:*::*:6379         (935/redis-server)
    *:*:*:*::*:8080         (1340/apache2)
    *:*:*:*::*:8081         (1340/apache2)
    [localhost]43           (888/dovecot)
    *:*:*:*::*:80           (1340/apache2)
    [localhost]10           (888/dovecot)
    *:*:*:*::*:25           (451454/master)
    *:*:*:*::*:21           (1364/pure-ftpd)
    *:*:*:*::*:465          (451454/master)
    *:*:*:*::*:443          (1340/apache2)
    *:*:*:*::*:953          (992/named)
    *:*:*:*::*:953          (992/named)
    *:*:*:*::*:953          (992/named)
    *:*:*:*::*:953          (992/named)
    *:*:*:*::*:953          (992/named)
    *:*:*:*::*:953          (992/named)
    *:*:*:*::*:953          (992/named)
    *:*:*:*::*:953          (992/named)
    *:*:*:*::*:53           (992/named)
    *:*:*:*::*:53           (992/named)
    *:*:*:*::*:53           (992/named)
    *:*:*:*::*:53           (992/named)
    *:*:*:*::*:53           (992/named)
    *:*:*:*::*:53           (992/named)
    *:*:*:*::*:53           (992/named)
    *:*:*:*::*:53           (992/named)
    *:*:*:*::*:587          (451454/master)
    *:*:*:*::*:995          (888/dovecot)
    *:*:*:*::*:993          (888/dovecot)
    *:*:*:*::**:*:*:*::*53          (992/named)
    *:*:*:*::**:*:*:*::*53          (992/named)
    *:*:*:*::**:*:*:*::*53          (992/named)
    *:*:*:*::**:*:*:*::*53          (992/named)
    *:*:*:*::**:*:*:*::*53          (992/named)
    *:*:*:*::**:*:*:*::*53          (992/named)
    *:*:*:*::**:*:*:*::*53          (992/named)
    *:*:*:*::**:*:*:*::*53          (992/named)
    *:*:*:*::*:9571         (1165/mariadbd)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    f2b-pure-ftpd  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 21,20,990,989
    
    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
    
    
    
    
    ##### LET'S ENCRYPT #####
    [WARN] You have both certbot and acme.sh installed. This can lead to problems.
    Certbot: /usr/bin/letsencrypt
    acme.sh: /root/.acme.sh/acme.sh
    .........................

    I recently installed ISPConfig Version: 3.2.9p1 on Ubuntu 22.04.2.
    While setting up websites and mailboxes, FTP server is not connecting thru filezilla anymore.
    Filezilla logs
    Connection established, waiting for welcome message...
    Status: Initializing TLS...
    Status: TLS connection established.
    Command: USER xxxxxx
    Response: 331 User xxxxxx OK. Password required
    Command: PASS **************************************************
    Response: 530 Login authentication failed
    Error: Critical error: Could not connect to server
    ..............................
    FTP Password is correct, i reset it and 2x checked it.

    And emails are also not working anymore meaning I can login into roundcube but send and receiving is not working. Roundcube is showing error when i hit send email
    SMTP Error (451): Failed to add recipient "xxxxx" (4.3.5 : Client host rejected: Server configuration error).
    Please help me. I am a beginner in ISPConfig panel
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Why do you have two LE clients? Using latest ISPConfig autoinstaller, it should only install acme.sh, not certbot. As said in there, this can lead to problems.

    Can you connect securely (https) to your ISPConfig UI via its FQDN?
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    are you sure you entered the full FTP username incl. prefix. take a look at how the FTP users are shown in FTP user list, you must enter the name incl. prefix and not just the custom username part.
     
  4. ajay singh

    ajay singh New Member

    LE which came with panel was stopped working once I was testing a domain and removed it and re-added it. since then LE is not working so I had to install certbot on my own thru cli
     
  5. ajay singh

    ajay singh New Member

    Yes I am using both prefix + ftp username as seen under FTP section. I even restarted whole server, pureftp but nothing seems working. FTP server was working earlier and i was using ftp client to upload websites since 2 weeks then suddenly it started throwing error.
     
  6. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    So this was done wrongly. Remove the certbot thoroughly and force update ISPConfig choosing SSL during that process.
     
    ajay singh likes this.
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    And using certbot manually destroyed the site config so sites are unmanageable with ISPConfig now if you allowed certbot to modify the site config itself. Search for .vhost files in the apache sites-enabled folder with -le in their name, these are from certbot an dmust get removed. And to fiy our original let#s encrypt problem after removing certbot, follow let's encrypt FAQ: https://forum.howtoforge.com/threads/lets-encrypt-error-faq.74179/
     
  8. ajay singh

    ajay singh New Member

    I will do it. But my main concern is ftp and mail servers are not working. Can you please suggest what could be the possible reason and fix for it. Thanks
     
    Last edited: Apr 27, 2023
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    You probably changed something in the configuration, e.g. the MariaDB configuration. Try to run:

    ispconfig_update.sh --force

    and let the updater reconfigure services.
     
  10. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    My guess is that their SSL are using the old LE certs for your server FQDN that may have expired since you said your panel is no longer working, so after removing certbot and its traces thoroughly and get new LE SSL certs for your server FQDN during force update of ISPConfig, they might be fixed.
     
  11. ajay singh

    ajay singh New Member

    Thanks for the quick responses Till. It went thru successfully
    Now I am getting a new error in filezilla client

    Error: Could not connect to server
    Status: Disconnected from server
    Status: Connecting to xxxxxxxxxxx.
    Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server".
    Error: Could not connect to server
    Status: Waiting to retry...
    Status: Connecting to xxxxxxxxxxx.
    Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server".
    Error: Could not connect to server

    And roundcube is showing a new error when i hit send email
    SMTP Error (550): Failed to add recipient "[email protected]" (5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox table).
     
  12. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Is your database up an running?
     

Share This Page