# This is the Smail routers file
# M. Andreoli for muLinux

inet_addrs:
	driver=gethostbyaddr, transport=smtp;
	check_for_local, fail_if_error

# this routers use DNS query: it works
# well only if you are connected (-ma)


#inet_bind:
#        driver=bind, transport=smtp;
#        defer_no_connect, -local_mx_okay, defnames,
#        #gateways=192.168.1.2:+:


# use query.sh to match hosts

#query_routers:
#        driver = queryprogram,
#        transport = smtp;
#        cmd = "/bin/sh /etc/smail/query.sh ${lc:host}",
#        read_path, read_transport




# this routing interfere with smart_host :-(
# As workaround, "only_local_domain" match address like x@y,
# but not x@y.z.it

inet_hosts:
       driver=gethostbyname, transport=smtp;
       -required, -domain,
       only_local_domain



# default path

smart_host:
        driver=smarthost, transport=smtp;
        -path

