Block all domains from sending to all lists on server except

Asked by KC

I want to discard or block all mail from the mailman server, except messages that come from and domains. How can I do this?

Question information

English Edit question
GNU Mailman Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mark Sapiro (msapiro) said :

In order to do it in a spoof proof way, you have to do it in the MTA, because the envelope sender and any headers can be spoofed.

In Mailman itself, you can use Privacy options... -> Spam filters -> header_filter_rules to look at any and all message headers and accept the and domains and discard everything else.

For example, if you wanted to use a From: header you could use a regexp like


and an action of accept as the first rule and then a second rule with a regexp of say


which will match anything, and an action of discard.

Can you help with this problem?

Provide an answer of your own, or ask KC for more information if necessary.

To post a message you must log in.