Skip to content

panzerfahrer/qmail-aliasfilter

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

'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 nospam-.example.com@hostname.localhost 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 (/home/jana):

|./qmail-aliasfilter.py
jana

From now on, you can easily register new accounts or newsletter subscriptions with your nospam-... email address e.g. nospam-newsletter.example.com@hostname.localhost for mailings from newsletter.example.com

Let's see how the wildcard works. Here are some examples:

  • nospam-example.com@... -> example.com (the strictest, but also the best way to suppress spam)
  • nospam-.example.com@... -> *.example.com (and of course: example.com!)
  • nospam-example.@... -> example.*
  • nospam-.example.@... -> *.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

See also

Credits

This script is originally by wibuni (github@wibuni.de) who seems to has vanished from the Internet.

About

a smart filter script for all qmail lovers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages