Re: [Exim] Newbie Forwarding issue

Top Page
Delete this message
Reply to this message
Author: Phil Pennock
Date:  
To: James Herschel
CC: exim-users
Subject: Re: [Exim] Newbie Forwarding issue
On 2004-05-07 at 13:03 -0400, James Herschel wrote:
> I've Googled for some time and looked at the FAQ, and I'm embarassed to
> say that I can't figure out how to forward emails for a particular user
> to a non-local domain.


You've got stuck on the .forward part, when instead it's a Router
problem.

> I have the .forward file in the users homedir and my log file said
> "Mailing to remote domains not supported". So I added "nonlocal.com" to
> my local_domains. My logs now say "Unrouteable address" instead, so I
> tried adding "nonlocal.com" to my relay_to_domains as well, but I'm
> still receiving the error.


Remove it from those.

Look at why you're defining DCconfig_local instead.

> qualify_domain = megatron
>
> DCreadhost =
>
> DCsmarthost =


Either set DCconfig_internet or unset DCconfig_local and then set both
DCsmarthost and DCconfig_smarthost. I think. I'm tired and not used to
the config layout which you've posted.

I've a suspicion that this is set on the command-line which invokes
Exim, via the -D option (eg, -DDCconfig_internet is needed).

> begin routers


At this point, you get the rules which are tried, in order, to figure
out how to deliver email.

> .ifdef DCconfig_internet
>
> dnslookup_relay_to_domains:
> driver = dnslookup
> domains = ! +local_domains : +relay_to_domains
> transport = remote_smtp
> same_domain_copy_routing = yes
> no_more
>
> dnslookup:
>  driver = dnslookup
>  domains = ! +local_domains
>  transport = remote_smtp
>  same_domain_copy_routing = yes
>  ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 :\
>                        172.16.0.0/12 : 10.0.0.0/8 : 169.254.0.0/16
>  no_more

>
> .endif


So, if DCconfig_internet is defined, then you'll try direct deliveries.

> .ifdef DCconfig_local
> nonlocal:
> driver = redirect
> allow_fail
> data = :fail: Mailing to remote domains not supported
> no_more
> domains = ! +local_domains
>
> .endif


If DCconfig_local is set, then you'll explicitly generate the error
which you're seeing.

> .ifdef DCconfig_smarthost DCconfig_satellite
> smarthost:
> driver = manualroute
> domains = ! +local_domains
> transport = remote_smtp
> route_list = * DCsmarthost
> host_find_failed = defer
> same_domain_copy_routing = yes
> no_more
>
> .endif


That's an explicit routing used if DCconfig_smarthost or
DCconfig_satellite is defined, relying upon DCsmarthost being defined.

> real_local:


Here onwards is local delivery rules, then other sections.

Figure out why your setup is defining DCconfig_local, which seems to be
explicitly telling Exim, with this config, that the system should only
accept mail for local delivery and not send any mail out.
--
Phil Pennock,  Senior Systems Administrator,  Demon Internet Netherlands
NL Sales: +31 20 422 20 00      Thus Plc      NL Support: 0800 33 6666 8