Need help setting up strong filtering rules?
Use the form below to easily generate a set of filtering rules.
You can use EditSPAMbaffle.cgi to customize your settings if needed.
Items marked with an asterisk (*) require customization before they will really be useful.
• Select the first checkbox to include a particular filtering rule.
• Select the second checkbox to create a log entry when that rule matches.
• Select the third checkbox to allow senders to bypass that filtering rule by adding a "bypass code" to the subject of their message.
The bypass code will be indicated in the bounce message that is sent to them if the rule catches their email.
Bypass codes are generated randomly, so yours will be unique.
Drop double bounces
If a SPAM you bounced gets bounced back to you because the sender used an invalid address, you don't need to see it.
...messages from known senders
Quickly accept messages from certain people without bothering to run any more filtering tests.
Make sure you know if messages you've sent didn't get delivered.
Accept if the subject contains certain words or phrases without checking anything else.
For example, quickly accept messages from the feedback form on your website without running other filtering tests.
...known SMTP server
Accept if the Received header contains the name of a known good SMTP server.
If you do not allow bypass of these rules, they will use the standard qmail message for identifying an unknown email address.
This will prompt some spammers to remove you from their lists.
Reject ads for "adult" websites, viagra, etc.
Reject messages whose subject contains lots of dollar signs, etc.
...empty sender's address
This will catch some cases where the sender is trying to hide their email address.
If you commonly receive SPAM with a particular subject line which isn't caught by your other filtering rules, add the subject here to block it specifically.
...messages sent by GroupMail
Block email from spammers who use the program "GroupMail".
Add the email addresses of spammers here if you want to block specific addresses.
Bounce messages in unknown languages
This filter is set up to block messages in one particular Chinese character set.
You can add any character set you wish to it to block others.
Bounce HTML messages that...
This filtering rule includes a place to list the addresses of people you know who send HTML only email so that it won't bounce their messages.
...don't have a plain text alternative part.
Most HTML-only messages are SPAM.
...don't have anything in the plain text alternative part.
Some SPAM contains an empty plain text part.
Bounce bogus "Senate 1618" claims.
Some SPAM contains a claim that it is not SPAM because it complies with the requirements of Senate bill 1618, which never became law.
Senders making this claim are probably just trying to dissuade people from suing them for breaking SPAM laws.
Bounce worms and viruses...
...bad attachment filenames
Reject executable attachments types.
...reject suspect "MIME types".
Many worms are sent with their MIME type set to "audio/x-midi", for example.
Unless you commonly receive MIDI music files, it may be wise to reject all messages containing attachments of this type.
You can add any other MIME types you'd like to block.
After clicking this button, save the page that is shown as ".SPAMbaffle" and use it to replace your .SPAMbaffle file.
You may wish to backup your existing file first.