'qmail-aliasfilter' is a smart filter script for all qmail lovers.
It filters aliases by the domain part of the senders email address,
e.g. mail to
firstname.lastname@example.org will only be delivered to maildir
if the mail comes from the
*.example.com domain, otherwise the mail will be bounced or dropped.
Here is the example content of the
.qmail-nospam-default script inside your home directory (
From now on, you can easily register new accounts or newsletter subscriptions with your
nospam-... email address
email@example.com for mailings from
Let's see how the wildcard works. Here are some examples:
example.com(the strictest, but also the best way to suppress spam)
*.example.com(and of course: example.com!)
*.example.*(the loosest way, use only for debugging!)
nospam-example.com+newsletter.example.org@...-> a combination of the above methods
There is also the possibility to use qmail-aliasfilter in combination with maildrop
|./qmail-aliasfilter.py |maildrop jana
This script is originally by wibuni (firstname.lastname@example.org) who seems to has vanished from the Internet.