[Mailman-Users] multiple domains - mailman-bounces at subdomain.example.com not
Mark Sapiro
mark at msapiro.net
Mon Feb 4 10:57:40 EST 2019
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
> mailman at example.com mailman
> mailman-admin at example.com mailman-admin
> mailman-bounces at example.com mailman-bounces
> mailman-confirm at example.com mailman-confirm
> mailman-join at example.com mailman-join
> mailman-leave at example.com mailman-leave
> mailman-owner at example.com mailman-owner
> mailman-request at example.com mailman-request
> mailman-subscribe at example.com mailman-subscribe
> mailman-unsubscribe at 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 ?
>
> mailman at subdomain.example.com mailman
> mailman-admin at subdomain.example.com mailman-admin
> mailman-bounces at subdomain.example.com mailman-bounces
> mailman-confirm at subdomain.example.com mailman-confirm
> mailman-join at subdomain.example.com mailman-join
> mailman-leave at subdomain.example.com mailman-leave
> mailman-owner at subdomain.example.com mailman-owner
> mailman-request at subdomain.example.com mailman-request
> mailman-subscribe at subdomain.example.com mailman-subscribe
> mailman-unsubscribe at 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 <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users
mailing list