Re: [exim] Forward one email address to exchange server

Page principale
Supprimer ce message
Répondre à ce message
Auteur: John Burnham
Date:  
À: exim-users@exim.org
Sujet: Re: [exim] Forward one email address to exchange server
>
> I need to have all email addresses for a domain @company.com delivered
> locally except one. This one email
> joe@???<mailto:joe@company.com> should be forwarded to an
> external Microsoft Exchange server.
>
> I know this is possible. I have found lots of resources and threads online, but
> I am not advanced enough to get it to work. I have a WHM/Cpanel server
> which uses Exim.
>


I don't know much about Cpanel - I've never had cause to use it - but can you manually add routers to your Exim configuration ? If so, routers are run through in the order they are in the config file, so somewhere before the local delivery router you would add a router that detects that email address and then sends it to the Exchange server. Off the top of my head, something like


special_route:
driver = manualroute
domains = company.com
local_parts = joe
transport = remote_smtp
route_list = * address_of_external_exchange_server


That will only match if the local_part is joe and the domain is company.com - ie if the email address is joe@??? and then send all mail matching it to the address of the external Exchange server via SMTP.

If you can't manually alter the config file, then I'm afraid I'm out of ideas - I don't know what Cpanel can and can't do.

J