Re: [exim] Fidonet...

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Marco Gaiarin
CC: exim-users
Subject: Re: [exim] Fidonet...
On Wed, 25 Oct 2006, Marco Gaiarin wrote:

> I'm f1016.n333.z2.fidonet.org, and i've to route some subdomain of this
> domain, but not all.


So you have to have a list of the domains you want, in some form or
other.

> After this router i've to route some generically on fidonet.org domain,
> so if i simply ignore that i'll simply generate a continue bounce to my
> uplink.


I'm not sure exactly what you mean...

> I can simply setup a router like:
>
> > # FTN routing for points, rather same as above but we do exact search and
> > # we use as domains an regexp to match...
> > #
> > ftn_points:
> > debug_print = "R: ftn_points for $local_part@$domain"
> > driver = manualroute
> > domains = partial-lsearch;/etc/exim4/local_domains
> > require_files = /etc/exim4/ftn_points : +/usr/lib/ifmail/ifmail
> > route_data = ${lookup{$domain}lsearch{/etc/exim4/ftn_points}}
> > no_more
> > transport = ifmail_h
>
> where /etc/exim4/local_domains have:
>
>    f1016.n333.z2.fidonet.org


Why have you not just used

domains = *.f1016.n333.z2.fidonet.org

?

> and put in /etc/exim4/ftn_points, that appear like:
>
> >  # FidoNet
> >  #
> >  p2.f1016.n333.z2.fidonet.org:           p2.f1016.n333.z2.fidonet.org
> >  p13.f1016.n333.z2.fidonet.org:          p13.f1016.n333.z2.fidonet.org
> >  p14.f1016.n333.z2.fidonet.org:          p14.f1016.n333.z2.fidonet.org
> >  p17.f1016.n333.z2.fidonet.org:          p17.f1016.n333.z2.fidonet.org
> >  p8088.f1016.n333.z2.fidonet.org:        p8088.f1016.n333.z2.fidonet.org


Since you are going to search that file anyway, why not just

domains = /etc/exim4/ftn_points

and then

route_data = * $domain

? (And then you don't need the second column in the file.)

> a catch-all final row that make the routing fail ('unroutable domain')?


When do you want it to fail? If the domain matches
*.f1016.n333.z2.fidonet.org but is not listed? You could try this:


ftn_points:
debug_print = "R: ftn_points for $local_part@$domain"
driver = manualroute
domains = /etc/exim4/ftn_points
require_files = /etc/exim4/ftn_points : +/usr/lib/ifmail/ifmail
route_data = * $domain
transport = ifmail_h

ftn_unknown:
driver = redirect
domains = *.f1016.n333.z2.fidonet.org
allow_fail
data = :fail: Unrouteable domain

... or something similar. Note: the require_files doesn't look right. It
isn't tested till after "domains", so the first entry is useless, and no
file name can start with + so the second item is also useless.


-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book