LOCAL_CONFIG F{Home_aliases} /etc/mail/home-aliases F{Home_IPs} /etc/mail/home-ips LOCAL_RULESETS ###################################################################### ### Only IP addresses and subnets in class Home_IPs are allowed ### send to local recipients listed in class Home_aliases. ###################################################################### SLocal_check_rcpt R $* $: $>canonify $1 Focus on hostname of recipient R $+ <@ $+ > $* $: $( dequote $1 $) <@ $2 > R $={Home_aliases} <@ $=w . > $: $>Home_ip_lookup Listed rcpt R $+ <@ $+ > $@ OK remote recipient R $+ $: $( dequote $1 $) Username only in address R $={Home_aliases} $: $>Home_ip_lookup Listed rcpt, check IP R $* $@ OK rcpt not in restricted access list SHome_ip_lookup R $* $: $&{client_addr} R $={Home_IPs} $* $@ OK friendly IP address R $* $#error $@ 5.1.1 $: "550 User gone fishing"