Re: [exim] Exim: Select smarthost on basis of receipient add…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Dominic Benson
Date:  
À: Exim-users
Sujet: Re: [exim] Exim: Select smarthost on basis of receipient address

On 16 Feb 2012, at 12:59, Muhammad Irfan wrote:

> Yes, addresses of the form bob@???
> corrected as follows:
>
> send_to_gateway:
> driver = manualroute
> domains = example.com
> transport = remote_smtp
> ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
> route_list = * 69.16.197.150
> host_find_failed = defer
>
> dnslookup:
> driver = dnslookup
> domains = ! +local_domains
> transport = remote_smtp
> ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
> no_more
>
> Also tested will exim -bt command and looks OK to me. Let me know if you
> still found any issues in it.
>
> $ exim -bt bob@???
> router = send_to_gateway, transport = remote_smtp
>
> $ exim -bt bob@???
> router = dnslookup, transport = remote_smtp
>


That looks fine to me.


[snip]
>
> Is there any way in exim to replicate mailboxes ? so i can replicate china
> user mailboxes from US DC primary MTA to secondry SMTP.
> Is there any possibliity without changing domain name for any user i can
> improve email receive mechanism.
> Any suggestion.
> And sorry for long post.
>
> Waiting for your reply.
>
> Thanks,
>



I don't think that replicating mailboxes is the way to go. As I said before, if you're modifying it from both ends you're just making problems.

You *can* have mailboxes in both places on the same domain. There are a few ways to do it; as I said before, I think that Cyrus is your best bet because it provides the ability to split mailboxes across multiple hosts, and connect via any. You don't have to maintain it all by hand that way.

You can do it in Exim, though, but it would be more manual: if you give both Exim instances a list of local parts in one of the locations (probably China, for you) and deliver to that location when the local part is in that (probably a lookup against a file), then go to the forward/accept router to send mail to the other location. The domain being the same just means that you have to do a bit more work to find where to deliver mail.