Block all domains from sending to all lists on server except xyz.com

Asked by KC

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

Question information

Language:
English Edit question
Status:
Answered
For:
GNU Mailman Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mark Sapiro (msapiro) said :
#1

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 abc.com and xyz.com domains and discard everything else.

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

 ^from:.*[@.](xyz|abc)\.com([>\s,]|$)

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.