On 3/30/23 08:55, Zaheer Abbas wrote:
Hi All,
I need to whitelist a domain for a specific mailing list on your platform. Only *@example.com email addresses should be allowed to post messages to this list.
Could you please provide me with documentation or instructions on how to achieve this? I have already searched the knowledge base and user manuals without success.
In Postorius Header filters add a filter with Header = from, pattern = ^.*@(?!example\.com(\W|$)) and Action as desired. That pattern will match anything in a From: header which contains an @ followed by anything other than example.com and a non-alphanumeric or the end of string. I.e., things that won't match are for example
xxx@example.com xxx@example.com> xxx@example.com yyy
Things that will match are for example
xxx@other.domain xxx@example.comp
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan