Dear all, I operate a number of mailinglists that are open for posting to anyone. Unfortunately, this openness is being abused by spammers that send out a lot of spam to the lists. As is common with most spam, they send to fake or non existing addresses with the real recipient address only being given in BCC headers. How do I put up such a filter that only mail for a given domain is accepted for the list? Right now I have a rc.local.s10 like this: :0 * !(To|Cc):.*starchat.net ! spameater@webconquest.com SUBJ=`formail -zx Subject:` :0fw * ! ^Subject:.*\[routing]\] * ! ^Subject:.Re: * | formail -I "Subject: [routing] $SUBJ" But that doesn't seem to do the trick. Any insights? -- ICQ: 760542, Tel: (+31) 6 11316573, http://www.webconquest.com -*- Zippy's revelation of the moment: -*- As President I have to go vacuum my coin collection!
On Thu, Oct 11, 2001 at 07:02:01AM +0200, Remco Rijnders wrote:
Right now I have a rc.local.s10 like this:
Why not using rc.local.s00?
:0 * !(To|Cc):.*starchat.net ! spameater@webconquest.com
In general it should work but you need to be a bit more verbose how the problem is showing up. Did you enable "VERBOSE=on" in rc.local.s10? I would write the above recipe as :0 * !^TOstarchat.net ! spameater@webconquest.com
SUBJ=`formail -zx Subject:` :0fw * ! ^Subject:.*\[routing]\] * ! ^Subject:.Re: * | formail -I "Subject: [routing] $SUBJ"
What's purpose of this recipe?
But that doesn't seem to do the trick.
Any insights?
Insight need some clues ;) Werner
On Thursday 11 October 2001 22:54, you wrote:
On Thu, Oct 11, 2001 at 07:02:01AM +0200, Remco Rijnders wrote:
Right now I have a rc.local.s10 like this:
Why not using rc.local.s00?
Because I seem unable to find anywhere at what point 00, 05, 10, 20, etc. are called. All I see is "at different stadia" but nothing that tells which statdia these are :/
:0
* !(To|Cc):.*starchat.net ! spameater@webconquest.com
In general it should work but you need to be a bit more verbose how the problem is showing up. Did you enable "VERBOSE=on" in rc.local.s10?
Nope, shall try that :)
I would write the above recipe as
:0
* !^TOstarchat.net ! spameater@webconquest.com
Ok, I'll adjust that, thank you :)
SUBJ=`formail -zx Subject:`
:0fw
* ! ^Subject:.*\[routing]\] * ! ^Subject:.Re: *
| formail -I "Subject: [routing] $SUBJ"
What's purpose of this recipe?
It's unrelated to the subject at hand, but inserts "[routing] into the subject line of every mail sent to the list. Thank you for your help :) Sincerely, Remco Rijnders -- ICQ: 760542, Tel: (+31) 6 11316573, http://www.webconquest.com -*- Zippy's revelation of the moment: -*- Can you MAIL a BEAN CAKE?
participants (2)
-
Remco Rijnders
-
Werner Reisberger