MailmanWiki

3.51. Can you show me some examples of 'header_filter_rules'?

Example 1. I want to auto reject Bcc posts but require_explicit_destination option only holds messages.

    \nto:.*your-list-name
    \ncc:.*your-list-name

    ^to:.*your-list-name
    ^cc:.*your-list-name

to accomplish the same thing. Note also that the match is case insensitive. Finally, note that 'your-list-name' can be as simple as list@example.com, but this will also match things like xyz-list@examplexcom.ca.us, so you may want a more elaborate pattern for your-list-name such as, e.g.,

    \nto:.*[,"):;<\s]list@example\.com[>\s:;(,"]

but note that this may not be exhaustively correct. Consult <http://www.faqs.org/rfcs/rfc2822.html> and <http://docs.python.org/lib/re-syntax.html> and adjust this for your own needs.

    .

Example 2. Can I reject/discard those dangerous virus email?

    content-.*name.*\.(exe|com|cmd|bat|pif|vbs|scr|zip)

Converted from the Mailman FAQ Wizard

This is one of many Frequently Asked Questions.

MailmanWiki: DOC/Can you show me some examples of 'header_filter_rules'? (last edited 2015-01-31 02:36:58 by msapiro)