added book stuff
[exim-website.git] / config.samples / C013
1 Date: Mon, 26 Oct 1998 15:14:04 -0500                                   
2 From: Mario Dupuis <Mario.Dupuis@mfg.canadair.ca>                
3
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.
6
7 [I have modified this to cope with the case of a null sender. PH]
8
9 #
10 # Transports
11 #
12 reject_remote_user:
13   driver        = autoreply
14   file          = /etc/exim/err_messages/reject_remote_user.txt
15   file_expand
16   user          = exim
17   group         = exim
18   from          = postmaster@${domain}
19   to            = $sender_address
20   subject       = "Re: Your mail to ${local_part}@${domain}"
21
22 #
23 # Directors
24 #
25 localuser:
26   driver = localuser
27   transport = local_delivery
28   condition = "${if eq{$sender_address}{}{yes}\
29     {${lookup{$sender_address_domain}lsearch{/exim/perm/domains}{yes}}}}"
30
31 localuser_from_external:
32   driver = localuser
33   transport = local_delivery
34   condition ="${lookup{$local_part}lsearch{/exim/permitted/receivers}{yes}}"
35
36 localuser_from_external_bounce:
37   driver = smartuser
38   transport = reject_remote_user
39   no_verify
40   unseen
41
42 #
43 # Routers
44 #
45 internal_delivery:
46   driver = domainlist
47   route_list = "*our_domain.com  $domain  bydns_mx;\
48                 *our_friend.com  $domain  bydns_mx;\
49   transport = remote_smtp
50
51 external_delivery:
52         driver = domainlist
53         route_list = "*  internet-gateway.com  bydns_a"
54         transport = remote_smtp
55         require_files = /etc/exim/permitted/senders
56         senders = ":\
57           ^[^@]+@(?!${rxquote:our_domain.com}\\$):\
58           lsearch;/etc/exim/permitted/senders"
59