1 Date: Mon, 26 Oct 1998 15:14:04 -0500
2 From: Mario Dupuis <Mario.Dupuis@mfg.canadair.ca>
4 I've take some tips from the FAQ about permitting only certain users
5 to send to external mail and came up with my own for the receiving part.
7 [I have modified this to cope with the case of a null sender. PH]
14 file = /etc/exim/err_messages/reject_remote_user.txt
18 from = postmaster@${domain}
20 subject = "Re: Your mail to ${local_part}@${domain}"
27 transport = local_delivery
28 condition = "${if eq{$sender_address}{}{yes}\
29 {${lookup{$sender_address_domain}lsearch{/exim/perm/domains}{yes}}}}"
31 localuser_from_external:
33 transport = local_delivery
34 condition ="${lookup{$local_part}lsearch{/exim/permitted/receivers}{yes}}"
36 localuser_from_external_bounce:
38 transport = reject_remote_user
47 route_list = "*our_domain.com $domain bydns_mx;\
48 *our_friend.com $domain bydns_mx;\
49 transport = remote_smtp
53 route_list = "* internet-gateway.com bydns_a"
54 transport = remote_smtp
55 require_files = /etc/exim/permitted/senders
57 ^[^@]+@(?!${rxquote:our_domain.com}\\$):\
58 lsearch;/etc/exim/permitted/senders"