To install qmail-relayreject, you'll need finished build directories for qmail serialmail and the qmail and uscpi-tcp installed (but you're running a qmail server, so you had those anyway, right?). Note by 'finished' I mean make has been run so all the .o and .a files are sat there; we'll need some of those. First, build qmail-relayreject: - Copy qmail-relayreject.patch into your qmail source directory - Now run the following commands cp qmail-smtpd.c qmail-relayreject.c patch qmail-relayreject.c