Re: [exim] Fidonet...

Pàgina inicial
Delete this message
Reply to this message
Autor: Marco Gaiarin
Data:  
A: exim-users
Assumpte: Re: [exim] Fidonet...
Mandi! Philip Hazel
In chel di` si favelave...

> Why have you not just used
> domains = *.f1016.n333.z2.fidonet.org


Oh, probably because i'm maniac, or i've misunderstood something...
;)))



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


Right.


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


Ok, it is more or less what i need, but i've still two questions.

1) i can simply use only this router:

>   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


And put in /etc/exim4/ftn_points as last row a catchall rule that make
the router fail?
Better: can i use the :fail: keyword in a ((partial-)lsearch) file?

    
2) suppose i just have a file that contains my AKA /etc/exim4/akas
(f1016.n333.z2.fidonet.org, but now only this, i have many...).
I can setup a ``catchall'' recipe like this:

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


that match all my AKAs but only if they have something.AKA, eg
p2.f1016.n333.z2.fidonet.org, without explicitly set
*.f1016.n333.z2.fidonet.org but using insted /etc/exim4/akas only?


> ... 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


Hem, ops... thanks!!!


> file name can start with + so the second item is also useless.


?! I see in
http://www.exim.org/exim-html-4.63/doc/html/spec_html/ch15.html:

The default action for handling an unresolved EACCES is to consider it
to be caused by a configuration error, and routing is deferred because
the existence or non-existence of the file cannot be determined.
However, in some circumstances it may be desirable to treat this
condition as if the file did not exist. If the file name (or the
exclamation mark that precedes the file name for non-existence) is
preceded by a plus sign, the EACCES error is treated as if the file did
not exist.

Because ifmail are suid binaries, could be that a misconfiguration of
membership prevent ifmail executions, so i put the +. I'm wrong?

-- 
dott. Marco Gaiarin                    GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''                http://www.sv.lnf.it/
  Polo FVG  -  Via della Bont?, 7 - 33078  -  San Vito al Tagliamento (PN)
  marco.gaiarin(at)sv.lnf.it      tel +39-0434-842711  fax +39-0434-842797