1. rejectutils

: future https://schmonz.com/software/rejectutils/

https://schmonz.com/software/rejectutils/future/

doc: Updated mail/qmail-acceptutils to 20230511 https://github.com/NetBSD/pkgsrc/commit/83577fd0b86572821e35dfa3ad8e11d5f841e59c

../acceptutils

https://wiki.netbsd.org/users/schmonz/

1.1. QMAILQUEUE

qmail-qfilter-queue is a QMAILQUEUE wrapper that runs qmail-qfilter with the sequence of programs listed in the control file defined in QMAILQUEUEFILTERS, rejecting if any of them reject.

1.2. rcptcheck

qmail-rcptcheck runs the sequence of RCPTCHECK-compatible programs in control/rcptchecks, rejecting if any of them reject.

It runs under qmail-smtpd with either the RCPTCHECK patch or the qmail-spp patch.

1.3. Example

Example: prepare to filter incoming SMTP messages

To make it easy to add filters for incoming SMTP messages (requires the QMAILQUEUE patch, included in netqmail):

# echo ':allow,QMAILQUEUE="/var/qmail/bin/qmail-qfilter-queue",QMAILQUEUEFILTERS="control/smtpfilters"' >> /etc/tcp.smtp # qmailctl cdb

(As before, if you already have an :allow line, just extend it to also define QMAILQUEUE and QMAILQUEUEFILTERS.)

2. Get these programs

(Generated with git diff netqmail-1.06 netqmail-1.06-rejectutils-20201215.)

rejectutils adds new programs and manual pages. It’s distributed as a patch, but that doesn’t mean it needs to be merged into your main qmail source tree.

I recommend applying it to vanilla netqmail:

    Extract netqmail into qmail-rejectutils.
    Apply netqmail-1.06-rejectutils-20201215.patch there.
    Copy over conf-* from your main qmail source tree.

Then simply:

# make rejectutils
# make rejectutils-install

2.1. qmail-spp

Example: as above, but with qmail-spp

Assuming you have the SPP patch, to run all of the checks in control/rcptchecks,
add /var/qmail/bin/qmail-rcptcheck to the [rcpt] section of control/smtpplugins.

2.2. history


CategoryDns CategoryWatch CategoryTemplate

MoinQ: qmail/rejectutils (last edited 2023-05-27 20:21:47 by ToshinoriMaeno)