全部博文(1144)
分类:
2006-02-17 16:21:10
cd /usr/local/src/netqmail-1.05/netqmail-1.05 patch < /usr/local/src/simscan-1.1/contrib/qmail-queue-custom-error.patchThe patch command will return the following lines:
patching file qmail.c Hunk #1 FAILED at 14. Hunk #2 succeeded at 56 (offset 11 lines). Hunk #4 succeeded at 152 (offset 11 lines). 1 out of 4 hunks FAILED -- saving rejects to file qmail.c.rej patching file qmail.hAs you can see, the patch to qmail.h was successful, but the patch for qmail.c was unsuccessful. This is because this patch is not prepared to be installed after the QMAILQUEUE patch that comes installed with netqmail.
To solve this or you edit qmail.c and add manually the rejected hunk saved in qmail.c.rej, or you can use the qmail.c file bellow that was previously edited by Darrel (don’t know his lastname) and posted in the simscan’s mailling in . The thread subject was ‘qmail-queue patch isn't compatible withqmail-queue-custom-error.patch’.
For convenience, the contents of this file are also in APPENDIX A. qmail.c source for netqmail-1.05 with QMAILQUEUE patch plus qmail-queue-custom-error.patch in this document.
So, if you are using netqmail-1.05 and the same qmail-queue-custom-error.patch we’re using, you can cut and paste the contents posted in that link and save it in a file called qmail.c.
Recompiling Netqmail
Time to compile qmail with the patches we just applied:cd /usr/local/src/netqmail-1.05/netqmail-1.05 makeFor precaution, backup your actual qmail binaries, just in case something goes wrong:
tar -cvzf /root/qmail_bin.tar.gz /var/qmail/binStop qmail execution
svc -d /service/qmail*Certify that SMTP and POP are no longer LISTENING for network connections. The following netstat command CANNOT print any line: