franc walter wrote: >Am Sat, 10 Jul 2010 10:50:59 -0700 schriebst du: > >> With the above, all your lists will be mapped to the lists.example2.org >> domain which must be local. > >> lists.example2.org needs to be in my_destination in main.cf and not in >> virtual_alias_domains or in POSTFIX_STYLE_VIRTUAL_DOMAINS. All the >> other list email domains need to be in both virtual_alias_domains and >> POSTFIX_STYLE_VIRTUAL_DOMAINS, and data/virtual-mailman needs to be >> referenced in virtual_alias_maps. > >??? > >Which "all the other list email domains" ??? >Why to put them to virtual_alias_domains etc. if it is not working?
virtual_alias_maps mappings map an address like some_addr...@some.virtual.domain to another address. Your original virtual-mailman mappings were of the form list-addr...@virtual.domain list-address This didn't work for you because Postfix assumes that a bare list-address is in the mydomain domain, but mail to mydomain is being delivered via the Dovecot LDA which doesn't consult alias_maps, so the mail to list-address was not piped to Mailman. I suggested you could try the Mailman/MTA/Postfix.py from the head of the 2.1 development branch because it can append a domain to the right hand side of the mappings in virtual-mailman. This domain is set in mm_cfg.py as VIRTUAL_MAILMAN_LOCAL_DOMAIN. I probably should have pointed you to the documentation of POSTFIX_STYLE_VIRTUAL_DOMAINS and VIRTUAL_MAILMAN_LOCAL_DOMAIN in the branch as well, but I have attached it here as doc.txt You chose to set VIRTUAL_MAILMAN_LOCAL_DOMAIN to lists.example2.org. Given that choice, I told you that you had to configure lists.example2.org as local in postfix. The other domains, lists.example1.org, lists.example3.org, lists.example4.org, etc. could still be Postfix virtual domains and virtual-mailman will map, e.g. list-addr...@lists.example1.org list-addr...@lists.example2.org for local delivery. I would not have set VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'lists.example2.org' I probably would have set VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'localhost' and left all your lists.examplen.org domains virtual, but you didn't ask me, You just reported what you'd done and asked me how to fix it so I suggested the first fix that came to my mind. Here's a simple view of how this works if properly configured. For a list in a virtual domain in POSTFIX_STYLE_VIRTUAL_DOMAINS, Mailman generates virtual-mailman mappings from list addresses in the virtual domain to local addresses delivered by Postfix' local delivery (not Dovecot). Postfix' local delivery consults alias_maps including Mailman's aliases and these map the local addresses to the appropriate pipe to Mailman. If this isn't clear to you, perhaps some of the documentation at <http://de.postfix.org/> will help. -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
# If you set MTA='Postfix', then you also want to set the following variable, # depending on whether you're using virtual domains in Postfix, and which # style of virtual domain you're using. Set this to the empty list if you're # not using virtual domains in Postfix, or if you're using Sendmail-style # virtual domains (where all addresses are visible in all domains). If you're # using Postfix-style virtual domains, where aliases should only show up in # the virtual domain, set this variable to the list of host_name values to # write separate virtual entries for. I.e. if you run dom1.ain, dom2.ain, and # dom3.ain, but only dom2 and dom3 are virtual, set this variable to the list # ['dom2.ain', 'dom3.ain']. Matches are done against the host_name attribute # of the mailing lists. See the Postfix section of the installation manual # for details. POSTFIX_STYLE_VIRTUAL_DOMAINS = [] # If you specify any virtual domains in the above list, Mailman will generate # a virtual-mailman file containing virtual mappings of the form # # listaddr...@dom2.ain listaddress # etc. # # to map the list addresses in those domains to local addresses. If you need # mappings that specify a domain on the right hand side such as # # listaddr...@dom2.ain listaddr...@localhost # or # listaddr...@dom2.ain listaddr...@other.local.domain # # specify the desired local domain in mm_cfg.py as for example # # VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'localhost' # or # VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'other.local.domain' # # Whatever string value you set will be literally appended with an '@' to the # listaddress local parts on the right hand side. VIRTUAL_MAILMAN_LOCAL_DOMAIN = None
------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org