Qmail, Chkuser, FreeBSD Ports.
Long time, no post.
I was looking for a way to get the chkuser patch compiled into qmail-smtpd while still using the FreeBSD Ports system.
I found another article here, but when I tried it, the compile failed during the patching process. I’m not sure exactly what is happening, but from what I can tell the other patches I chose during the qmail compile dialog changed qmail-smtpd.c to the extent that the chkuser patch failed.
The only way I was able to get it to work was to stop selecting so many other patches from the dialog.
This is my /var/db/ports/qmail/options file:
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for qmail-1.03_7
_OPTIONS_READ=qmail-1.03_7
WITHOUT_SMTP_AUTH_PATCH=true
WITH_QMAILQUEUE_PATCH=true
WITHOUT_BIG_TODO_PATCH=true
WITHOUT_BIG_CONCURRENCY_PATCH=true
WITHOUT_OUTGOINGIP_PATCH=true
WITHOUT_LOCALTIME_PATCH=true
WITHOUT_QMTPC_PATCH=true
WITHOUT_MAILDIRQUOTA_PATCH=true
WITHOUT_BLOCKEXEC_PATCH=true
WITH_DISCBOUNCES_PATCH=true
WITHOUT_SPF_PATCH=true
WITHOUT_TARPIT_PATCH=true
WITHOUT_EXTTODO_PATCH=true
WITHOUT_QEXTRA=true
WITH_RCDLINK=true
So in summary.
cd /usr/local/src
wget http://www.interazioni.it/opensource/chkuser/download/archives/chkuser-2.0.9-release.tar.gz
tar xzvf chkuser-2.0.9-release.tar.gz
cd /usr/ports/mail/qmail/files
cp /usr/local/src/chkuser-2.0.9-release.patch .
Follow this selecting the patches I have listed above.
make
cd /usr/ports/mail/qmail/work/qmail-1.03/
cp qmail-smtpd /var/qmail/bin/
If anybody has any ideas on how to do this better, especially with the spf and tarpit patch I would love to hear about them.
|