lutz.niederer | 19 Jul 2012 23:11
Picon

Address rewriting

Hi!

We do have several domains listed with mydomains.  The users are the same for all domains and exist locally,
means mail gets delivered locally.  Aliases file is used to expand to lists of recipients.  This works ok and
we only have one set of files (aliases) that works for all domains.

We will now add another domain.  All users are again local and are the same as with the domains above.  All
domains use info <at>  and contact <at>  and deliver to the same group of recipients.
Now for this one domain info <at>  and contact <at>  should be delivered to other users.  It would be great if we could
write the following into the aliases file (I know it does not work):
info: user1, user2
contact: user3, user4
info <at> this_other_domain.com: john, jane
contact <at> this_other_domain.com: john, pete

Can we use virtual_alias_maps for this?  Without using virtual_alias_domains?  Is there still a
processing of aliases file?  Is that before or after virtual_aliases_maps?

Is virtual_aliases_maps the correct way to handle these two exceptions or would you do it another and
better way?

Thanks,
-lutzn

Noel Jones | 20 Jul 2012 00:27

Re: Address rewriting

On 7/19/2012 4:11 PM, lutz.niederer <at> gmx.net wrote:
> Hi!
> 
> We do have several domains listed with mydomains.  The users are the same for all domains and exist locally,
means mail gets delivered locally.  Aliases file is used to expand to lists of recipients.  This works ok and
we only have one set of files (aliases) that works for all domains.
> 
> We will now add another domain.  All users are again local and are the same as with the domains above.  All
domains use info <at>  and contact <at>  and deliver to the same group of recipients.
> Now for this one domain info <at>  and contact <at>  should be delivered to other users.  It would be great if we could
write the following into the aliases file (I know it does not work):
> info: user1, user2
> contact: user3, user4
> info <at> this_other_domain.com: john, jane
> contact <at> this_other_domain.com: john, pete
> 
> Can we use virtual_alias_maps for this?  Without using virtual_alias_domains?  Is there still a
processing of aliases file?  Is that before or after virtual_aliases_maps?
> 
> Is virtual_aliases_maps the correct way to handle these two exceptions or would you do it another and
better way?
> 
> Thanks,
> -lutzn
> 
> 

Yes, virtual_alias_maps is the correct solution for general-purpose
address rewriting.  The domain does not need to be listed in
virtual_alias_domains.
(Continue reading)


Gmane