02_exim4-config_options 7.5 KB

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