Joseph Okech wrote:
> Marco,
>
> Have the following settings on your exim.conf and make sure your system's
> command 'uname -ra' does not return mydomain.com anywhere but
> www.mydomain.com
>
> ###### MAIN ########
>
> primary_hostname = www.mydomain.com
> domainlist local_domains = @ : localhost
>
> ###### ROUTERS ########
>
> routed_domains_over_smtp:
> driver = manualroute
> no_check_local_user
> domains = ! +local_domains
> route_data =${lookup{$domain}lsearch{/etc/exim/routed_domains}}
> transport = remote_smtp
> ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
>
> ##########################
>
> Make sure mydomain.com is in the relay domains, and have an entry for routed
> domains
>
> #/etc/exim/routed_domains
> mydomain.com: xxx.xxx.xxx.xxx #IP address of remote mail server
I try your suggestion but now even the message to local user (mail
address without the final part '@mydomain.com') goes to remote mail
server. Is it possible route mailaddress without domain part (user) to
local and all the complete addresses (user@??? or
else@??? ) to internet ?
Thanks Joseph
Marco