Question about whitlisting a domain for specific mailing list
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.
I believe it was previously available in mailman2 via Accept_these_nonmembers attribute.
But I cannot find this attribute anywhere on postorius.
I am using mailman 3.2.2
Any help would be really appreciated.
Best regards,
--
*ZA*
On Thu, Mar 30, 2023 at 6:55 PM Zaheer Abbas <zaheer.psg@gmail.com> 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.
I believe it was previously available in mailman2 via Accept_these_nonmembers attribute.
But I cannot find this attribute anywhere on postorius.
I am using mailman 3.2.2
Any help would be really appreciated.
Best regards,
I would do this at the MTA level with either a router or a filter (milter in Postfix lingo):
IF $sender_address_domain IS NOT "example.com" AND $recipient is "listname@domain" THEN send-to-dev-null.
Exim (MTA) has a filter plugin to do this. I don't know about Postfix and Sendmail (as I am not willing to read on your behalf).
It is easier that way.
I don't remember is Mailman3 has the logic to deal with that, but maybe it does. If you did not manage to find it, then my solution is plausible, no? Filter at the MTA level.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
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
So the MTA option that doesn't involve any regex is better than no?
On Thu, Mar 30, 2023, 20:17 Mark Sapiro <mark@msapiro.net> wrote:
Hi All,
I need to whitelist a domain for a specific mailing list on your
On 3/30/23 08:55, Zaheer Abbas wrote: 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
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
This message sent to odhiambo@gmail.com
On 3/30/23 11:07, Odhiambo Washington wrote:
So the MTA option that doesn't involve any regex is better than no?
Partly it's a matter of taste and possibly a matter of necessity. I.e. a list admin can do this with header filters and may not have access to the MTA config.
Also, it's not clear to me that doing this in Postfix is less complicated than understanding a regex.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thanks, Mark & Odhiambo for providing options for the solution. I will try the 'postorius header filters' hacky way as it's more suitable to my requirement, however, if it didn't work as expected, then filtration through exim filter is also an acceptable option.
Thanks again for the quick response.
On Thu, Mar 30, 2023 at 8:58 PM Mark Sapiro <mark@msapiro.net> wrote:
On 3/30/23 11:07, Odhiambo Washington wrote:
So the MTA option that doesn't involve any regex is better than no?
Partly it's a matter of taste and possibly a matter of necessity. I.e. a list admin can do this with header filters and may not have access to the MTA config.
Also, it's not clear to me that doing this in Postfix is less complicated than understanding a regex.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
This message sent to zaheer.psg@gmail.com
participants (3)
-
Mark Sapiro
-
Odhiambo Washington
-
Zaheer Abbas