Re:Disabling auto_help
rgball <[email protected]> Wed, 17 Mar 2004 13:49:58 -0500
| Newsgroups | gmane.mail.smartlist.user |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 17 Mar 2004 07:16:53 -0800 (PST), Harshal wrote
> Rich,
>
> Thanks for your suggestions. I have a general spam filter for all the
> email addresses on that domain but I will double check to make sure
> that it also catches spam for the list addresses.
>
> > You can be more draconian and only allow "help" to work for those
> > already subscribed.
>
> That is perfectly fine with me. Almost no one uses the 'help' feature
> and setting it to subscriber-only will help me lots. Now, how do I do
> this? I could not find any flag in rc.custom for this.
There isn't a predefined setting for this but it is easy to implement if you
want to do that. Otherwise you can simply add a multigram check on the dist
file for the sender in the rc.request file. For instance, in the base
rc.request file is the rule for sending the help.txt and info.txt files:
:0 hw ${cc_requests:+c}
| (formail -i"From: $listreq" -rtA"X-Loop: $listaddr"; \
cat help.txt info.txt 2>/dev/null ) | $SENDMAIL $sendmailOPT -t
you can make this read
:0 hw ${cc_requests:+c}
* ? formail -X"From " -xFrom: -xReply-To: -xSender: -xResent-From: \
-xResent-Reply-To: -xResent-Sender: -xReturn-Path: | \
multigram -b1 -m -l$submit_threshold -L$domain \
-x$listaddr -x$listreq dist
| (formail -i"From: $listreq" -rtA"X-Loop: $listaddr"; \
cat help.txt info.txt 2>/dev/null ) | $SENDMAIL $sendmailOPT -t
and then the files will be returned only if an address in the "dist" file
matches a sending address.
If you want to make it more configurable then you can add a variable to the
rc.custom file and check for it here (like the checking done for auto_help).
Rich