On 2/4/19 2:46 AM, Konrad Wawryn wrote:
> 
> In our Mailman configuration we are using two sender domains:
> 
> example.com
> subdomain.example.com
> 
> 
> In the file /etc/mailman/virtual-mailman    I have found only this
> addresses
> 
> # STANZA START: mailman
> # CREATED: Thu Jun 22 10:43:16 2017
> mail...@example.com              mailman
> mailman-ad...@example.com        mailman-admin
> mailman-boun...@example.com      mailman-bounces
> mailman-conf...@example.com      mailman-confirm
> mailman-j...@example.com         mailman-join
> mailman-le...@example.com        mailman-leave
> mailman-ow...@example.com        mailman-owner
> mailman-requ...@example.com      mailman-request
> mailman-subscr...@example.com    mailman-subscribe
> mailman-unsubscr...@example.com  mailman-unsubscribe
> 
> 
> 
> but there are no entries for subdomain.example.com.


Mailman 2.1 does not support two lists with the same listname. This you
cannot configure Mailman as distributed to generate virtual mappings for
both domains.


> I would like to understand how its working with multiple domains. Does
> mailman and mailman-*@* addresses are reserverd only for root domain ?
> What about subdomain ?
> 
> Do I have to create separate entry like this one to resolve my e-mail
> loop issue ?
> 
> mail...@subdomain.example.com              mailman
> mailman-ad...@subdomain.example.com        mailman-admin
> mailman-boun...@subdomain.example.com      mailman-bounces
> mailman-conf...@subdomain.example.com      mailman-confirm
> mailman-j...@subdomain.example.com         mailman-join
> mailman-le...@subdomain.example.com        mailman-leave
> mailman-ow...@subdomain.example.com        mailman-owner
> mailman-requ...@subdomain.example.com      mailman-request
> mailman-subscr...@subdomain.example.com    mailman-subscribe
> mailman-unsubscr...@subdomain.example.com  mailman-unsubscribe


Yes. It is possible to patch Mailman/MTA/Postfix.py to write those
mappings as well. Here in context is a patch I use to create mappings
for the grizzlypeakcyclists.org domain as well as grizz.org.

>     # Now add all the standard alias entries
>     for k, v in makealiases(listname):
>         fqdnaddr = '%s@%s' % (k, hostname)
>         if mm_cfg.VIRTUAL_MAILMAN_LOCAL_DOMAIN:
>             localaddr = '%s@%s' % (k, mm_cfg.VIRTUAL_MAILMAN_LOCAL_DOMAIN)
>         else:
>             localaddr = k
>         # Format the text file nicely
>         print >> fp, fqdnaddr, ((fieldsz - len(k)) * ' '), localaddr
>     # Major Kludge alert!
>     if hostname == 'grizz.org':
>         for k, v in makealiases(listname):
>             fqdnaddr = '%s@%s' % (k, 'grizzlypeakcyclists.org')
>             if mm_cfg.VIRTUAL_MAILMAN_LOCAL_DOMAIN:
>                 localaddr = '%s@%s' % (k, mm_cfg.VIRTUAL_MAILMAN_LOCAL_DOMAIN)
>             else:
>                 localaddr = k
>             # Format the text file nicely
>             print >> fp, fqdnaddr, ((fieldsz - len(k)) * ' '), localaddr
>     # Finish the text file stanza


-- 
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to