Must use stable branch of debian otherwise you see errno errors upon compiling ucspi-tcp

lex courier-0.47 # dpkg -l | grep gcc
ii  gcc            3.3.5-3        The GNU C compiler
ii  gcc-3.3        3.3.5-13       The GNU C compiler
ii  gcc-3.3-base   3.3.5-13       The GNU Compiler Collection (base package)
ii  libgcc1        3.4.3-13       GCC support library
lex courier-0.47 #

Once you get to the courier imap part - do this instead.

BTW its going to barf once telling you you need deps. just install em and get on with it.

Once you get to the courier imap part - do this instead. BTW its going to barf once telling you you need deps. just install em and get on with it.

your-server:~# cd /usr/local/

your-server:~# apt-get install expect libmysqlclient12-dev libpam0g-dev libsasl2-dev debhelper

your-server:~# mkdir sourcedebs

your-server:~# cd sourcedebs

your-server:~# apt-get source courier-imap

your-server:~# cd courier-0.47

your-server:~# sed "s/without-authvchkpw/with-authvchkpw/" debian/rules > debian/rules-new
your-server:~# cp debian/rules debian/rules-backup && cp debian/rules-new debian/rules

your-server:~# dpkg-buildpackage -us -uc

your-server:~# cp authlib/authvchkpw /usr/lib/courier/authlib/

your-server:~# cd /etc/courier

your-server:~# sed "s/authpam/authvchkpw/" authdaemonrc > authdaemonrc-new

your-server:~# cp authdaemonrc authdaemonrc-old && cp authdaemonrc-new authdaemonrc

your-server:~# /etc/init.d/courier-authdaemon restart

http://forum.qmailrocks.org/showthread.php?t=2199&highlight=howto

Rumor has it you can compile vpopmail with mysql support by installing the following

# apt-get install libmysqlclient14-dev libmysqlclient14

http://forum.qmailrocks.org/showthread.php?t=2532

Setup to provide spooling

Domains that we agree to spool for MUST have an entry in both /var/qmail/control/rcpthosts file like thus

whitecannon.org blackcannon.org redcannon.org

AND exist in a file called smtproutes /var/qmail/control/smtproutes here

whitecannon.org:mail.whitecannon.org blackcannon.org:mail.blackcannon.org redcannon.org:mail.redcannon.org

RBL CHECKS for qmailrocks

You must install rblcheck

--->  apt-get install rblcheck

I don’t know if this is manditory or not but I do it and it seems to work. You must make a symlink

--->  ln -sf /usr/local/bin/rblsmtpd /var/qmail/bin

and then edit /var/qmail/supervise/qmail-smtpd/run and add the following entries

exec /usr/local/bin/softlimit -m 40000000 
/usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" 
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp 
rblsmtpd 
-r sbl-xbl.spamhaus.org 
-r bl.spamcop.net 
-r relays.ordb.org 
-r dnsbl.njabl.org 
### -r dnsbl.sorbs.net   ### ---> don't know if I like this one yet
-r cn-kr.blackholes.us 
-r comcast.blackholes.us 
/var/qmail/bin/qmail-smtpd mail.rustyrackguys.com 
/home/vpopmail/bin/vchkpw /usr/bin/true 2>&1

Then restart qmail.

qmailctl restart