[LINUX/NETWORKING] ISPConfig 3

Today I’m going to discuss about installing ISPConfig 3 on Ubuntu 20.04 and the little issues I came across when installing it.

So, let’s get to it:

nano /etc/hosts

  • Configure the hostname

nano /etc/hostname

and ensure that only the subdomain part is present: e.g. mail1

  • Reboot the system: systemctl reboot
  • Verify the correct hostname and FQDN

hostname ——> should display mail1

hostname -f —–> should display mail1.pbnet.local

  • update your system: apt-get update && apt-get upgrade
  • eventually apt-get dist-upgrade
  • do the clean-up: apt-get autoremove  and apt-get autoclean
  • Run ISPCONFIG‘s auto installer:

  • after all the pre-requisites are installed, you can run the script with arguments: e.g. with a port range for passive FTP and unattended upgrades

  • follow the on-screen instructions and at the end don’t forget to copy your ISPConfig Admin and MySQL Root password:

Now with the things that I encountered, like Amavisd not running properly, I decided to switch to Rspamd

  • Install Redis

  • Install Unbound if BIND is not installed

if the command returns the path to the named binary:

then BIND and installed. Otherwise just run: apt-get install unbound

  • Install and configure Rspamd

  • update the package list

  • Install Rspamd with apt-get:

  • Activate Redis and Rspamd:

  • Increase the Rspamd hstory, enable compression and show the subject in history (optional)

  • Restart Rspamd

  • Update ISPConfig: ISPConfig needs to be updated to enable the Rspamd configuration. When the updater ask you if you want to reconfigure services, choose yes

  • Enable Rspamd in ISPConfig

Login as the admin user

Go to: System –> Server Config –> Mail and from the content filter switch from Amavisd to Rspamd

More info: Replacing Amavisd with Rspamd in ISPConfig 3.1 on Debian and Ubuntu (howtoforge.com)

  • Disable Amavisd

 

Another issue: you lost the MySQL root password:

  • sudo service mysql stop
  • sudo mysqld_safe –skip-grant-tables
  • sudo service mysql start
  • sudo mysql -u root
  • use mysql;
  • show tables;
  • describe user;
  • update user set authentication_string=password(‘1111′) where user=’root’;
  • FLUSH PRIVILEGES;

Log in with password “1111”.

Another issue: you lost the admin password for ISPConfig3

  • Log in to the MySQL database

  • Enter the password of the mySQL root user. To switch to the ISPConfig database, run this command:

  • execute this command:

  • Finally close MySQL shell:

Now login to the mySQL console (default is http://mail1.pbnet.local/8080) with admin/admin
Enjoy!