Debian packages install
Install Daemontools and ucspi-tcp
Install Courier packages
You should accept all the default answers
Install needed compiler, tools and library
For security reason, it's a good idea to remove the compilers (cpp, g++, gcc and make) after your complete this guide
Install MySQL database and libraries
Remember your root MySQL password (described as MySQL_root_password later in this guide)
Install Apache & PHP
Install antispam and antivirus
Install un-archiver tools
Install perl modules
aptitude install libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl perl-doc libgeo-ip-perl libdate-manip-perl libio-string-perl libio-socket-ssl-perl libnet-ident-perl libsys-syslog-perl libencode-detect-perl
aptitude install libnet-dns-perl libtimedate-perl libio-compress-perl libdigest-hmac-perl libdigest-sha-perl libparse-syslog-perl libmail-dkim-perl libcrypt-openssl-bignum-perl
Install debug / manipulation tools
Those last ones are not mandatory but are useful if you need to debug
Download all the needed items for the Qmail installation
Users comments
for debian 9 (stretch) use
apt install mariadb-common mariadb-server mariadb-client mariadb-server-core-10.1 libmariadbclient-dev lib
mariadbclient18
courierpassd is available on jessie packages,
wget http://ftp.cl.debian.org/debian/pool/main/c/courierpassd/courierpassd_1.1.2-3_amd64.deb
and install with dpkg -i, no problems.
Debian9 error Couldn't find any package whose name or description matched "courierpassd"
Hi Thibs
Thanks for your contribution.
Please update this script.
Best Regards,
Mobin
@Mark, I've found unrar on non-free source list for debian 8. Today, I found at multiverse for ubuntu.
I'm following this guide now, and unrar is not available. I'll have to look for it.
@Mark : Patch the Debian source package (http://packages.debian.org/squeeze/ucspi-tcp-src) just to be sure you keep exactly the same version with the same path
If I recompile tcpserver (ucspi-tcp) with fefe's patch to support ipv6, is there any other things I should take into account?
If you're installing on LUCID, check http://ubuntuforums.org/showthread.php?t=1458885 for installing libmd5-perl. (post #4)
Hello, my english is not good but here we go!
I'm following this guide for debian 9 (stretch). At the first try if i executed qmail-rspawn as a result i had segmentation fault, which caused that the server could not send or receive emails.
For this error, i had to add #include "alloc.h"in the file /usr/src/qmail/qmail-1.03/spawn.c. With this patch, everything works fine!
Source: https://qmail.cr.yp.narkive.com/Mu3q0iUl/qmail-segfault-alloc-problem-on-x86-64-and-solution
Regards.
Ramiro.