1 From: "Brian K. West" <brian@bkw.org>
2 Date: Wed, 6 Sep 2000 11:18:19 -0500
3 Subject: Amavis virus relaying
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...
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 ######################################################################
19 primary_hostname = av.cwis.net
20 trusted_users = amavis:nobody
23 forbid_domain_literals
25 host_accept_relay = localhost
26 #ignore_errmsg_errors_after = 3h
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"
37 #headers_sender_verify
40 ######################################################################
41 # TRANSPORTS CONFIGURATION #
42 ######################################################################
43 # ORDER DOES NOT MATTER #
44 # Only one appropriate transport is called for each delivery. #
45 ######################################################################
51 # This transport is used for handling deliveries directly to files that are
52 # generated by aliassing or forwarding.
64 command = "/usr/sbin/scanmails -f ${sender_address} -d
65 ${local_part}@${domain}"
69 return_path_add = false
72 path = "/bin:/sbin:/usr/bin:/usr/sbin"
73 headers_add = "X-AntiVirus: Amavis/CWIS Internet Anti-Virus Server"
77 # fallback_hosts = mail1.cwis.net
78 # I have not seen this work. so its commented out.
81 ######################################################################
82 # DIRECTORS CONFIGURATION #
83 # Specifies how local addresses are handled #
84 ######################################################################
86 # A local address is passed to each in turn until it is accepted. #
87 ######################################################################
89 # Well we will not have any local mailboxes so this is not needed.
93 ######################################################################
94 # ROUTERS CONFIGURATION #
95 # Specifies how remote addresses are handled #
96 ######################################################################
98 # A remote address is passed to each in turn until it is accepted. #
99 ######################################################################
102 condition = "${if eq {$received_protocol}{scanned-ok} {0}{1}}"
105 transport = scanmails_remote
107 # this is where we tell it what domain to direct and
108 # where to direct it too.
111 transport = remote_smtp
112 route_list = "cwis.net mail1.cwis.net byname"
116 transport = remote_smtp
120 ######################################################################
121 # RETRY CONFIGURATION #
122 ######################################################################
124 * * F,2h,15m; G,16h,1h,1.5; F,4d,8h
128 ######################################################################
129 # REWRITE CONFIGURATION #
130 ######################################################################
132 # There are no rewriting specifications in this configuration file.