![]() |
Saturday September 6 2008 |
| Home • Forums • Bible • Directory • Menu | 32 visitors Welcome Guest! |
Help Documents: PEPMain | Actions | Headers | Tests | Commands | Reply Files | DNS Blocklists | SpamAssassin | Challenges | Glossary | Spam FAQ | SMTP Tutorial | PEP Wizard
ChallengesThis page provides more detailed information about using PEP's "challenge" feature. It is assumed that you know the basics about creating a mailrule file and constructing rules.
The Basic PremiseA great deal (most?) of the spam today either has an invalid return address or it's a throw-away account that has already been abandoned by the spammer. If you could delete messages that come from such addresses, you'd be a long way towards eliminating spam from your mailbox.The challenge feature "freezes" messages that come from unrecognised senders and only "thaws" and delivers them to you if the sender responds to a challenge message. If the challenge goes unanswered, the frozen message is eventually deleted (after 7 days by default) and you never see it.
How It WorksThis description may be a little technical for some folks. It is not necessary to understand how it works in order to use it. You can skip this section if you prefer.When a message arrives, PEP examines the Envelope-To: header to see if it contains a special challenge ID. If it does, then the following events occur:
When a "challenge" rule is triggered, PEP looks up the sender's address in the "pep-challenge/responses" file in your home directory. If that directory/file does not exist, or if it doesn't contain the sender's address, then the following events occur:
If the sender's address is found in the "pep-challenge/responses" file, then the message is from a valid address that was previously confirmed, so PEP continues on with the rest of your mailrule file. Note: Subsequent rules in the mailrule file may still delete the message, even though it's from a confirmed address. It all depends on how you structure your mailrule file. Finally, files in "pep-challenge/indexes" and "pep-challenge/messages" are examined periodically and any that are too old are deleted. The default time period is 7 days, but you can override this.
How You Use ItTo use the challenge system you have to do two things: create a challenge message that will be sent back to unrecognised addresses, and add one or more challenge rules to your mailrule file.Let's start with the challenge rules. These are just like any other PEP rule except the action is "challenge". Challenge rules require one parameter, and that is the name of the reply file to send.
This example sends the file "spamchal.txt" to unrecognised senders but only if the message has a high spam score:
This example sends the file "challenge.txt" to all unrecognised senders:
You can choose to send a challenge based on any condition, but the above two examples will probably be the most common. You can have multiple challenge rules if you want, only the first one that matches the message will send a challenge. The reply file that is sent as a challenge is just like any other, except that it must contain the following header line: Reply-to: you/cr-{CHALLENGEID}@christian.net If your username is "mark", you'd use "mark/cr-{CHALLENGEID}@christian.net" instead. Without a Reply-to: header a reply file can't be replied to at all, and in this case we need to make sure that the "/cr-" is in there along with the unique challenge ID. NOTE: The actual username and domain for the reply address can be anything that will ultimately cause a response to pass through your mailrule file (ie: you can use your own domain name if you want). It's critical that the address contains the "/cr-{CHALLENGEID}" part though. Here's a sample challenge reply file. Feel free to copy it or create your own:
Deleting Old Frozen MessagesPEP periodically looks at all the messages that are currently waiting for a challenge response and deletes those that have been waiting too long. The default period of time is 7 days. If a response to a challenge is not received within this time, the message is deleted and you never see it.If 7 days isn't long enough for you (or if it's too short), you can change it with the "expirechallenged" command. This command takes a single parameter which indicates a length of time. This command must come somewhere before the challenge rules to which it applies. This example expires frozen messages after 3 days:
Both of these examples expire frozen messages after 2 weeks:
Hints & Tips
|
|
Copyright © 2002-2008 Christian.net
- all rights reserved Please read our terms of use before using this site Page generation time: 0.02 seconds |