Exim 4.72 release
[exim-website.git] / config.samples / C038
1 From: "Brian K. West" <brian@bkw.org>
2 Date: Wed, 6 Sep 2000 11:18:19 -0500
3 Subject: Amavis virus relaying
4
5
6 Here ya go.  This is the config we use.. this box is our main MX host then
7 relays it to our real server for delivery...
8
9
10
11 ######################################################################
12 # Exim Anti-Virus Relay Server Setup      #
13 # Config by Brian West <brian@bkw.org>      #
14 # IP FOR BOX 208.165.104.37      #
15 #                    MAIN CONFIGURATION SETTINGS                     #
16 ######################################################################
17
18 queue_only_load = 5
19 primary_hostname = av.cwis.net
20 trusted_users = amavis:nobody
21 local_domains =
22 auto_thaw = 60s
23 forbid_domain_literals
24 never_users = root
25 host_accept_relay = localhost
26 #ignore_errmsg_errors_after = 3h
27 ignore_errmsg_errors
28 # this is the list of relay domains
29 relay_domains = cwis.net
30 host_lookup = 0.0.0.0/0
31 rbl_domains = rbl.maps.vix.com:dul.maps.vix.com:relays.mail-abuse.org
32 rbl_warn_header = true
33 rbl_reject_recipients = true
34 smtp_banner = "av.cwis.net ESMTP"
35 sender_verify
36 sender_verify_fixup
37 #headers_sender_verify
38 end
39
40 ######################################################################
41 #                      TRANSPORTS CONFIGURATION                      #
42 ######################################################################
43 #                       ORDER DOES NOT MATTER                        #
44 #     Only one appropriate transport is called for each delivery.    #
45 ######################################################################
46
47 address_pipe:
48   driver = pipe
49   return_output
50
51 # This transport is used for handling deliveries directly to files that are
52 # generated by aliassing or forwarding.
53
54 address_file:
55   driver = appendfile
56   delivery_date_add
57   envelope_to_add
58   return_path_add
59
60 scanmails_remote:
61   driver = pipe
62   bsmtp = all
63   batch_max = 32767
64   command = "/usr/sbin/scanmails -f ${sender_address} -d
65 ${local_part}@${domain}"
66   log_output = true
67   prefix =
68   return_output = false
69   return_path_add = false
70   user = amavis
71   group = amavis
72   path = "/bin:/sbin:/usr/bin:/usr/sbin"
73   headers_add = "X-AntiVirus: Amavis/CWIS Internet Anti-Virus Server"
74
75 remote_smtp:
76   driver = smtp
77 #  fallback_hosts = mail1.cwis.net
78 # I have not seen this work. so its commented out.
79 end
80
81 ######################################################################
82 #                      DIRECTORS CONFIGURATION                       #
83 #             Specifies how local addresses are handled              #
84 ######################################################################
85 #                          ORDER DOES MATTER                         #
86 #   A local address is passed to each in turn until it is accepted.  #
87 ######################################################################
88
89 # Well we will not have any local mailboxes so this is not needed.
90
91 end
92
93 ######################################################################
94 #                      ROUTERS CONFIGURATION                         #
95 #            Specifies how remote addresses are handled              #
96 ######################################################################
97 #                          ORDER DOES MATTER                         #
98 #  A remote address is passed to each in turn until it is accepted.  #
99 ######################################################################
100
101 vircheck:
102   condition = "${if eq {$received_protocol}{scanned-ok} {0}{1}}"
103   driver = domainlist
104   route_list = "*"
105   transport = scanmails_remote
106
107 # this is where we tell it what domain to direct and
108 # where to direct it too.
109 send_to_gateway:
110            driver = domainlist
111            transport = remote_smtp
112            route_list = "cwis.net mail1.cwis.net byname"
113
114 lookuphost:
115   driver = lookuphost
116   transport = remote_smtp
117
118 end
119
120 ######################################################################
121 #                      RETRY CONFIGURATION                           #
122 ######################################################################
123
124 *                      *           F,2h,15m; G,16h,1h,1.5; F,4d,8h
125
126 end
127
128 ######################################################################
129 #                      REWRITE CONFIGURATION                         #
130 ######################################################################
131
132 # There are no rewriting specifications in this configuration file.
133
134 end