Re: [Exim] help with mailing lists

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Drav Sloan
Date:  
À: Thomas Kinghorn
CC: exim-users
Sujet: Re: [Exim] help with mailing lists
Thomas Kinghorn wrote:
> can't figure out this one.
> Need different rewrite files for different domains.


#                      ROUTERS CONFIGURATION                         #


# This is the part that allows us to specify our own aliases in
# Virtual Domains.

virtual_alias:
driver = redirect
allow_defer
allow_fail
data = ${lookup{$local_part}lsearch{/path/to/vdoms/files/${domain}.aliases}}
domains = lsearch;/path/to/vdoms/files/virtual_domains
qualify_preserve_domain
retry_use_local_part

This means that if you create /path/to/vdoms/files/virtual_domains and
stick in domain mydomain.net, you cna then create
/path/to/vdoms/files/mydomain.net.aliases which contain aliases for
that domain.

> Then i also need to forward the mails for the domains to the
> different exchange servers.
>
> eg mail for foo.com needs to go to mail.foo.com
>    mail for foobar.org needs to go to mx01.foobar.org etc......


This sounds like a manual route:

masqueraded_hosts:
driver = manualroute
domains = ! +local_domains
route_data = ${lookup{$domain}partial-lsearch{/path/to/masqueraded_hosts}}
transport = remote_smtp

the file /path/to/masqueraded_hosts contains:

*.foo.com        mail.foo.com:mail2.foo.com    byname
*.foobar.org        mx01.foobar.org:mx02.foobar.org    byname


> read the docs, more confused than ever.


It takes a while, but I'm sure you will get there :)

D.