It's really annoyed me that I can't create a list alias domain, like lists.omnifarious.org and still be able to refuse mail to list-name@omnifarious.org
So, I created a small patch to Mailman.MTA.Postfix that allows you to specify a prefix to be applied to all virtually hosted lists that show up in the omnifarious.org domain.
For example, I have set this prefix to 'mmlist_'. This is what my virtual-mailman file now looks like:
# STANZA START: list-name # CREATED: Thu May 27 08:00:48 2004 list-name@lists.omnifarious.org mmlist_list-name list-name-admin@lists.omnifarious.org mmlist_list-name-admin list-name-bounces@lists.omnifarious.org mmlist_list-name-bounces list-name-confirm@lists.omnifarious.org mmlist_list-name-confirm list-name-join@lists.omnifarious.org mmlist_list-name-join list-name-leave@lists.omnifarious.org mmlist_list-name-leave list-name-owner@lists.omnifarious.org mmlist_list-name-owner list-name-request@lists.omnifarious.org mmlist_list-name-request list-name-subscribe@lists.omnifarious.org mmlist_list-name-subscribe list-name-unsubscribe@lists.omnifarious.org mmlist_list-name-unsubscribe # STANZA END: list-name
And, here is what my aliases file looks like:
# STANZA START: list-name # CREATED: Thu May 27 08:00:48 2004 mmlist_list-name: "|/var/list-name/mail/list-name post list-name" mmlist_list-name-admin: "|/var/list-name/mail/list-name admin list-name" mmlist_list-name-bounces: "|/var/list-name/mail/list-name bounces list-name" mmlist_list-name-confirm: "|/var/list-name/mail/list-name confirm list-name" mmlist_list-name-join: "|/var/list-name/mail/list-name join list-name" mmlist_list-name-leave: "|/var/list-name/mail/list-name leave list-name" mmlist_list-name-owner: "|/var/list-name/mail/list-name owner list-name" mmlist_list-name-request: "|/var/list-name/mail/list-name request list-name" mmlist_list-name-subscribe: "|/var/list-name/mail/list-name subscribe list-name" mmlist_list-name-unsubscribe: "|/var/list-name/mail/list-name unsubscribe list-name" # STANZA END: list-name
Yes, people can still send to mmlist_list-name@omnifarious.org, but I consider that an acceptable tradeoff since I'm now allowed a lot more detailed control over my omnifarious.org namespace.
The parameter's name is POSTFIX_VIRTUAL_PREFIX, and it's expected to be set in the mm_cfg file. If there is no POSTFIX_VIRTUAL_PREFIX set, it defaults to being blank, which gives you the original behavior for the Postfix MTA.
Have fun (if at all possible),
The best we can hope for concerning the people at large is that they be properly armed. -- Alexander Hamilton -- Eric Hopper (hopper@omnifarious.org http://www.omnifarious.org/~hopper) --
participants (1)
-
Eric M. Hopper