On Sun, Mar 21, 2021 at 03:44:06PM +0100, Markus Grunwald wrote:

> I've set up postfix to serve mail for the local domain the-grue.de 
> and for the virtual domains maennerchor-kirchseeon.de and 
> goldschmiede-grunwald.de
> 
> Now I'd like to run a mailman mailing list for
> maennerchor-kirchseeon.de. Their mailing list tells me, that to avoid
> problems...
>
> > Whatever you set for VIRTUAL_MAILMAN_LOCAL_DOMAIN must be a 
> > local domain, not a virtual domain.

Their advice is just one way to get this working.  The actual
requirement is only that a small set of addresses be ultimately handled
by the local(8) delivery agent.

So you can keep the domain virtual provided you're willing to
do some rewriting:

  virtual:
    somel...@maennerchor-kirchseeon.de somel...@lists.maennerchor-kirchseeon.de
    owner-somel...@maennerchor-kirchseeon.de 
owner-somel...@lists.maennerchor-kirchseeon.de
    somelist-requ...@maennerchor-kirchseeon.de 
somelist-requ...@lists.maennerchor-kirchseeon.de

    (Double-check the mailman aliases file for any additional
    requisite address local-parts).

with:

    mydestination = the-grue.de lists.aennerchor-kirchseeon.de ...

This can also be done without rewriting, via transport table mappings
for just these addresses:

    somel...@maennerchor-kirchseeon.de local
    owner-somel...@maennerchor-kirchseeon.de local
    somelist-requ...@maennerchor-kirchseeon.de local

> So I'd like to have maennerchor-kirchseeon.de as local domain and 
> the-grue.de as virtual domain. I thought it might be as simple as 
> s/the-grue.de/maennerchor-kirchseeon.de/ in these two lines from 
> main.cf:
> 
>   myhostname = the-grue.de
>   mydomain = the-grue.de

You can have both be local domains, the only thing you need to keep in
mind is that when you have multiple local domains, just the local part
of the address identifies the mailbox, regardless of the domain suffix.

-- 
    Viktor.

Reply via email to