postfix deployment scenario needs to be supported
Hello!
At work I have the following real-world postfix setup:
mydomain = redoaksw.com
mydestination = local.redoaksw.com # note that this domain doesn't exist
virtual_mailbox_domains = redoaksw.com
I installed mailman and created the list 'test1@redoaksw.com'. So far so good, however the "virtual-mailman" alias map mailman generates does not work.
The problem is as follows : 1) the map contains entries such as test1@redoaksw.com test1 2) postfix converts "test1@redoaksw.com" to "test1" as it should, and then qualifies the address with $mydomain, test1@redoaksw.com. (note: this does not actually create a loop) 3) with the address test1@redoaksw.com, postfix hands the message to virtual(8) which looks in the virtual_mailbox_maps and correctly reports no such user
The solution is simple -- change the map to: test1@redoaksw.com test1@local.redoaksw.com
In this scenario, after the virtual_alias_map rewriting, postfix will hand the message to local(8) which will find the mailman command in $alias_maps.
To this end I created the attached patch to mailman. It WorksForMe, but is not yet complete enough to include in the next release. I need some assistance in polishing it for inclusion. The core of the patch is simply to optionally fully-qualify the map value in _addvirtual() in Mailman/MTA/Postfix.py.
The parts I need help with are :
+ What are good names for the parameters (in mm_cfg.py and the
mail list object)? I'm not convinced you want to be stuck
with the names in my patch forever :-).
+ How do you handle additional parameters on maillist objects? I
noted that __getattr__ fails when the web interface tries to
load the current value from a list created before the
parameter was added.
+ Should the default value for 'local_domain' (as it is currently
called in my patch) be '' or None? I would generally choose
None, but that seems to not play well with the web interface
(it shows "None" instead of nothing).
+ Do I need to do anything with any translation files with regards
to the new list parameter?
-D
-- One OS to rule them all, one OS to find them, One OS to bring them all and in the darkness bind them, In the Land of Redmond, where the Shadows lie.
www: http://dman13.dyndns.org/~dman/ jabber: dman@dman13.dyndns.org
participants (1)
-
Derrick Hudson