Why this patch
I wanted to modify messages bound for remote systems via a simple Unix filter interface. Reasons:
- SRS-rewriting outbound messages requires patching
qmail-remote(8). - DKIM-signing outbound messages requires a surprisingly intricate script.
- If it were easy to modify outbound messages, I’d probably think of more applications.
Without this patch
To SRS-rewrite outbound messages, apply Marcelo Coelho’s SRS patch.
To DKIM-sign outbound messages, use Kyle Wheeler’s qmail-remote wrapper (preferably with my QMAILREMOTE patch).
With this patch
qmail-rfilterwould be toqmail-remoteasqmail-qfilter(1)is toqmail-queue(8): an easy way to run filters on outbound messages.qmail-rfilter-remotewould be aQMAILREMOTEwrapper that runsqmail-rfilterwith the sequence of programs incontrol/remotefilters(akin toqmail-qfilter-ofmipd-queueforQMAILQUEUE).qmail-rfilter-srsforwardwould be a filter that SRS-rewrites envelope senders. I’d list it incontrol/remotefilters.qmail-rfilter-dkimsignwould be a filter that signs messages with DKIM. I’d list it (last) incontrol/remotefilters.
Get this patch
The qmail-rfilter patch doesn’t exist. If you’d like it to, let me know!
