Bill Long writes:
Hi all:
Is there a way to have couriermlm require "subscribe" or some such
thing in the subject or body of a subscription email? What I'm
seeing is ton's of spammer's email going to my
<maillist>-subs...@foo.bar.com. For the non-moderated lists, this
is fine, but for the lists that require approval before the
subscription is accepted, it's a real pain. Fully 99% of the
subscription-requests I'm getting are from spammers. I'm thinking if
it checked for the word "subscribe" or some other such word in the
body or subject line, it would filter all that crap out.
I don't have a problem going in and hacking away as the couiermlm
code, but wanted to check to see if somebody had done it already
before I jump into it.
Copy .courier-{listname}-default to .courier-{listname}-subscribe, and
have .courier-{listname}-subscribe invoke a script first that checks
for the required content. An exit code of 99 drops the message. An
exit code of 0 proceeds with the next delivery instruction which
invokes couriermlm, and it's back to business as usual.