Commit | Line | Data |
---|---|---|
725c9874 | 1 | |
2 | ### main/02_exim4-config_options | |
3 | ################################# | |
4 | ||
5 | ||
d2b0a567 | 6 | # Defines the access control list that is run when an |
7 | # SMTP MAIL command is received. | |
8 | # | |
9 | .ifndef MAIN_ACL_CHECK_MAIL | |
10 | MAIN_ACL_CHECK_MAIL = acl_check_mail | |
11 | .endif | |
12 | acl_smtp_mail = MAIN_ACL_CHECK_MAIL | |
13 | ||
14 | ||
725c9874 | 15 | # Defines the access control list that is run when an |
16 | # SMTP RCPT command is received. | |
17 | # | |
18 | .ifndef MAIN_ACL_CHECK_RCPT | |
19 | MAIN_ACL_CHECK_RCPT = acl_check_rcpt | |
20 | .endif | |
21 | acl_smtp_rcpt = MAIN_ACL_CHECK_RCPT | |
22 | ||
23 | ||
24 | # Defines the access control list that is run when an | |
25 | # SMTP DATA command is received. | |
26 | # | |
27 | .ifndef MAIN_ACL_CHECK_DATA | |
28 | MAIN_ACL_CHECK_DATA = acl_check_data | |
29 | .endif | |
30 | acl_smtp_data = MAIN_ACL_CHECK_DATA | |
31 | ||
32 | ||
33 | # Message size limit. The default (used when MESSAGE_SIZE_LIMIT | |
34 | # is unset) is 50 MB | |
35 | .ifdef MESSAGE_SIZE_LIMIT | |
36 | message_size_limit = MESSAGE_SIZE_LIMIT | |
37 | .endif | |
38 | ||
39 | ||
d2b0a567 | 40 | # If you are running exim4-daemon-heavy or a custom version of Exim that |
41 | # was compiled with the content-scanning extension, you can cause incoming | |
42 | # messages to be automatically scanned for viruses. You have to modify the | |
43 | # configuration in two places to set this up. The first of them is here, | |
44 | # where you define the interface to your scanner. This example is typical | |
45 | # for ClamAV; see the manual for details of what to set for other virus | |
46 | # scanners. The second modification is in the acl_check_data access | |
47 | # control list. | |
48 | ||
49 | # av_scanner = clamd:/tmp/clamd | |
50 | ||
51 | ||
52 | # For spam scanning, there is a similar option that defines the interface to | |
53 | # SpamAssassin. You do not need to set this if you are using the default, which | |
54 | # is shown in this commented example. As for virus scanning, you must also | |
55 | # modify the acl_check_data access control list to enable spam scanning. | |
56 | ||
57 | # spamd_address = 127.0.0.1 783 | |
58 | ||
725c9874 | 59 | # Domain used to qualify unqualified recipient addresses |
60 | # If this option is not set, the qualify_domain value is used. | |
61 | # qualify_recipient = <value of qualify_domain> | |
62 | ||
63 | ||
64 | # Allow Exim to recognize addresses of the form "user@[10.11.12.13]", | |
65 | # where the domain part is a "domain literal" (an IP address) instead | |
66 | # of a named domain. The RFCs require this facility, but it is disabled | |
67 | # in the default config since it is seldomly used and frequently abused. | |
68 | # Domain literal support also needs a special router, which is automatically | |
69 | # enabled if you use the enable macro MAIN_ALLOW_DOMAIN_LITERALS. | |
d38e06ff CE |
70 | # Additionally, you might want to make your local IP addresses (or @[]) |
71 | # local domains. | |
725c9874 | 72 | .ifdef MAIN_ALLOW_DOMAIN_LITERALS |
73 | allow_domain_literals | |
74 | .endif | |
75 | ||
76 | ||
77 | # Do a reverse DNS lookup on all incoming IP calls, in order to get the | |
78 | # true host name. If you feel this is too expensive, the networks for | |
79 | # which a lookup is done can be listed here. | |
80 | .ifndef DC_minimaldns | |
81 | .ifndef MAIN_HOST_LOOKUP | |
82 | MAIN_HOST_LOOKUP = * | |
83 | .endif | |
84 | host_lookup = MAIN_HOST_LOOKUP | |
85 | .endif | |
86 | ||
87 | ||
88 | # In a minimaldns setup, update-exim4.conf guesses the hostname and | |
89 | # dumps it here to avoid DNS lookups being done at Exim run time. | |
d38e06ff CE |
90 | .ifdef MAIN_HARDCODE_PRIMARY_HOSTNAME |
91 | primary_hostname = MAIN_HARDCODE_PRIMARY_HOSTNAME | |
92 | .endif | |
725c9874 | 93 | |
d2b0a567 | 94 | # The settings below, which are actually the same as the defaults in the |
95 | # code, cause Exim to make RFC 1413 (ident) callbacks for all incoming SMTP | |
96 | # calls. You can limit the hosts to which these calls are made, and/or change | |
97 | # the timeout that is used. If you set the timeout to zero, all RFC 1413 calls | |
98 | # are disabled. RFC 1413 calls are cheap and can provide useful information | |
99 | # for tracing problem messages, but some hosts and firewalls are | |
100 | # misconfigured to drop the requests instead of either answering or | |
101 | # rejecting them. This can result in a timeout instead of an immediate refused | |
102 | # connection, leading to delays on starting up SMTP sessions. (The default was | |
103 | # reduced from 30s to 5s for release 4.61.) | |
725c9874 | 104 | # rfc1413_hosts = * |
d2b0a567 | 105 | # rfc1413_query_timeout = 5s |
725c9874 | 106 | |
d38e06ff CE |
107 | # When using an external relay tester (such as rt.njabl.org and/or the |
108 | # currently defunct relay-test.mail-abuse.org, the test may be aborted | |
109 | # since exim complains about "too many nonmail commands". If you want | |
110 | # the test to complete, add the host from where "your" relay tester | |
111 | # connects from to the MAIN_SMTP_ACCEPT_MAX_NOMAIL_HOSTS macro. | |
112 | # Please note that a non-empty setting may cause extra DNS lookups to | |
113 | # happen, which is the reason why this option is commented out in the | |
114 | # default settings. | |
115 | # MAIN_SMTP_ACCEPT_MAX_NOMAIL_HOSTS = !rt.njabl.org | |
116 | .ifdef MAIN_SMTP_ACCEPT_MAX_NOMAIL_HOSTS | |
117 | smtp_accept_max_nonmail_hosts = MAIN_SMTP_ACCEPT_MAX_NOMAIL_HOSTS | |
118 | .endif | |
725c9874 | 119 | |
120 | # By default, exim forces a Sender: header containing the local | |
121 | # account name at the local host name in all locally submitted messages | |
122 | # that don't have the local account name at the local host name in the | |
123 | # From: header, deletes any Sender: header present in the submitted | |
124 | # message and forces the envelope sender of all locally submitted | |
125 | # messages to the local account name at the local host name. | |
126 | # The following settings allow local users to specify their own envelope sender | |
127 | # in a locally submitted message. Sender: headers existing in a locally | |
128 | # submitted message are not removed, and no automatic Sender: headers | |
129 | # are added. These settings are fine for most hosts. | |
130 | # If you run exim on a classical multi-user systems where all users | |
131 | # have local mailboxes that can be reached via SMTP from the Internet | |
132 | # with the local FQDN as the domain part of the address, you might want | |
133 | # to disable the following three lines for traceability reasons. | |
134 | .ifndef MAIN_FORCE_SENDER | |
135 | local_from_check = false | |
136 | local_sender_retain = true | |
137 | untrusted_set_sender = * | |
138 | .endif | |
139 | ||
140 | ||
141 | # By default, Exim expects all envelope addresses to be fully qualified, that | |
142 | # is, they must contain both a local part and a domain. Configure exim | |
143 | # to accept unqualified addresses from certain hosts. When this is done, | |
144 | # unqualified addresses are qualified using the settings of qualify_domain | |
145 | # and/or qualify_recipient (see above). | |
146 | # sender_unqualified_hosts = <unset> | |
147 | # recipient_unqualified_hosts = <unset> | |
148 | ||
149 | ||
150 | # Configure Exim to support the "percent hack" for certain domains. | |
151 | # The "percent hack" is the feature by which mail addressed to x%y@z | |
152 | # (where z is one of the domains listed) is locally rerouted to x@y | |
153 | # and sent on. If z is not one of the "percent hack" domains, x%y is | |
154 | # treated as an ordinary local part. The percent hack is rarely needed | |
155 | # nowadays but frequently abused. You should not enable it unless you | |
156 | # are sure that you really need it. | |
157 | # percent_hack_domains = <unset> | |
158 | ||
159 | ||
160 | # Bounce handling | |
161 | .ifndef MAIN_IGNORE_BOUNCE_ERRORS_AFTER | |
162 | MAIN_IGNORE_BOUNCE_ERRORS_AFTER = 2d | |
163 | .endif | |
164 | ignore_bounce_errors_after = MAIN_IGNORE_BOUNCE_ERRORS_AFTER | |
165 | ||
166 | .ifndef MAIN_TIMEOUT_FROZEN_AFTER | |
167 | MAIN_TIMEOUT_FROZEN_AFTER = 7d | |
168 | .endif | |
169 | timeout_frozen_after = MAIN_TIMEOUT_FROZEN_AFTER | |
170 | ||
171 | .ifndef MAIN_FREEZE_TELL | |
172 | MAIN_FREEZE_TELL = postmaster | |
173 | .endif | |
174 | freeze_tell = MAIN_FREEZE_TELL | |
175 | ||
176 | ||
177 | # Define spool directory | |
178 | .ifndef SPOOLDIR | |
179 | SPOOLDIR = /var/spool/exim4 | |
180 | .endif | |
181 | spool_directory = SPOOLDIR | |
182 | ||
183 | ||
184 | # trusted users can set envelope-from to arbitrary values | |
185 | .ifndef MAIN_TRUSTED_USERS | |
186 | MAIN_TRUSTED_USERS = uucp | |
187 | .endif | |
188 | trusted_users = MAIN_TRUSTED_USERS | |
189 | .ifdef MAIN_TRUSTED_GROUPS | |
190 | trusted_groups = MAIN_TRUSTED_GROUPS | |
191 | .endif | |
192 | ||
193 | ||
194 | # users in admin group can do many other things | |
195 | # admin_groups = <unset> | |
196 | ||
197 | ||
725c9874 | 198 | # SMTP Banner. The example includes the Debian version in the SMTP dialog |
d38e06ff | 199 | # MAIN_SMTP_BANNER = "${primary_hostname} ESMTP Exim ${version_number} (Debian package MAIN_PACKAGE_VERSION) ${tod_full}" |
725c9874 | 200 | # smtp_banner = $smtp_active_hostname ESMTP Exim $version_number $tod_full |
20a9cf7b CE |
201 | |
202 | ||
203 | # hcoop-change: raise limit for incoming SMTP connections | |
204 | smtp_accept_max = 95 | |
205 | ||
206 | # hcoop-change: expire retry data after a single day | |
207 | retry_data_expire = 1d | |
208 | ||
209 | # hcoop-change: don't penalize hosts past 4 hours | |
210 | retry_interval_max = 4h |