Keep the spamassassin filter rules up to date in ISPConfig 3

To update the spamassassin rules regularily on your ISPConfig 3 server, add the following line to the root crontab by running: crontab -e then insert the following line: 23 4 */2 * * /usr/bin/sa-update --no-gpg &> /dev/null and save the file. The path to the sa-update script is /usr/bin/sa-update on Ubuntu and Debian Linux, if ... Read more

How to renew the SSL certificate for dovecot on Ubuntu Linux

To create new SSL certificates for the dovecot pop3 and imap server on Ubuntu, follow these steps: Make a backup copy of the old key and certificate file sudo cp /etc/ssl/private/dovecot.key /etc/ssl/private/dovecot.key.old sudo cp /etc/ssl/certs/dovecot.pem /etc/ssl/certs/dovecot.pem.old Create the new key file openssl genrsa -out /etc/ssl/private/dovecot.key 1024 Create the new certificate file, valid for 2 years ... Read more

Find the .deb package that contains a specific file on Ubuntu or Debian Linux

Sometimes you need to know to which debian or ubuntu package a specific file belongs, e.g. because you deleted a system file and want to reinstall it. There is a handy utility called apt-file which searches for a filename in all debian packages. Installation apt-get install apt-file Usage example search for the file /etc/sysctl.conf apt-file ... Read more

How to enable port 465 (smtps) in postfix mailserver

More and more internet access providers are closing port 25 to reduce spam except for connections to their own mailservers. If you run your own mailserver and have problems to connect to it on port 25, you can enable port 465 (smtps) in postfix as a workaround. Edit the /etc/postfix/master.cf file: vi /etc/postfix/master.cf and remove ... Read more

How to set PassivePortRange and PassiveIP in pure-ftpd on Debian and Ubuntu Linux

If you run a firewall on your Linux server and want to use passive FTP connections, you have to define the passive port range in pure-ftpd and your firewall to ensure that the connections don't get blocked. The following example is for pure-ftpd on Debian or Ubuntu Linux and ISPConfig 3. Set Passive Port Range ... Read more

How to enable DKIM email signatures in amavisd-new and ISPConfig 3.0

NOTE: This post is about ISPConfig 3.0 and not 3.1 and newer. ISPConfig 3.1 and newer has DKIM support builtin, you can simply enable DKIM in ISPConfig 3.1 GUI now for the mail domain. DKIM is a system to verify the sender and integrity of emails. ISPConfig 3 uses amavisd-new as content filter for spam ... Read more

Solve error message: PHP Startup: Unable to load dynamic library htscanner.so

If you get the following error message in Ubuntu when you use PHP based shell scripts: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/htscanner.so' - /usr/lib/php5/20060613+lfs/htscanner.so: cannot open shared object file: No such file or directory in Unknown on line 0 Then edit the file /etc/php5/cli/php.ini: vi /etc/php5/cli/php.ini and remove the lines: [htscanner] ... Read more