exim4.conf.4.95.template 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. ######################################################################
  2. # #
  3. # Exim configuration file for Hestia Control Panel #
  4. # #
  5. ######################################################################
  6. #SPAMASSASSIN = yes
  7. #SPAM_SCORE = 50
  8. #SPAM_REJECT_SCORE = 100
  9. #CLAMD = yes
  10. smtp_banner = $smtp_active_hostname
  11. smtp_active_hostname = ${lookup dnsdb{>: defer_never,ptr=$interface_address}{${listextract{1}{$value}}}{$primary_hostname}}
  12. add_environment = <; PATH=/bin:/usr/bin
  13. keep_environment =
  14. disable_ipv6 = true
  15. smtp_accept_max = 100
  16. smtp_accept_max_per_host = 20
  17. SRS_SECRET = ${readfile{/etc/exim4/srs.conf}}
  18. smtputf8_advertise_hosts =
  19. domainlist local_domains = dsearch;/etc/exim4/domains/
  20. domainlist relay_to_domains = dsearch;/etc/exim4/domains/
  21. hostlist relay_from_hosts = 127.0.0.1
  22. hostlist whitelist = net-iplsearch;/etc/exim4/white-blocks.conf
  23. hostlist spammers = net-iplsearch;/etc/exim4/spam-blocks.conf
  24. no_local_from_check
  25. untrusted_set_sender = *
  26. acl_smtp_connect = acl_check_spammers
  27. acl_smtp_mail = acl_check_mail
  28. acl_smtp_rcpt = acl_check_rcpt
  29. acl_smtp_data = acl_check_data
  30. acl_smtp_mime = acl_check_mime
  31. .ifdef SPAMASSASSIN
  32. spamd_address = 127.0.0.1 783
  33. .endif
  34. .ifdef CLAMD
  35. av_scanner = clamd: /run/clamav/clamd.ctl
  36. .endif
  37. log_selector = +tls_sni
  38. tls_advertise_hosts = *
  39. # We test that $tls_in_sni is a valid domain, by an arbitrary email address foo@domain.tld .
  40. # Then, we extract the domain with a function that would fail if the email address is invalid.
  41. # If the certificate exists, we will use it, otherwise the default certificate in /etc/ssl will be used.
  42. tls_certificate = \
  43. ${if and {\
  44. { eq {${domain:foo@$tls_in_sni}} {$tls_in_sni}}\
  45. { exists{/usr/local/hestia/ssl/mail/$tls_in_sni.crt} }\
  46. }\
  47. {/usr/local/hestia/ssl/mail/$tls_in_sni.crt}\
  48. {/usr/local/hestia/ssl/certificate.crt}\
  49. }
  50. tls_privatekey = \
  51. ${if and {\
  52. { eq {${domain:foo@$tls_in_sni}} {$tls_in_sni}}\
  53. { exists{/usr/local/hestia/ssl/mail/$tls_in_sni.key} }\
  54. }\
  55. {/usr/local/hestia/ssl/mail/$tls_in_sni.key}\
  56. {/usr/local/hestia/ssl/certificate.key}\
  57. }
  58. daemon_smtp_ports = 25 : 465 : 587
  59. tls_on_connect_ports = 465
  60. tls_require_ciphers = PERFORMANCE:-RSA:-VERS-ALL:+VERS-TLS1.2:+VERS-TLS1.3:%SERVER_PRECEDENCE
  61. auth_advertise_hosts = localhost : ${if eq{$tls_in_cipher}{}{}{*}}
  62. never_users = root
  63. host_lookup = *
  64. rfc1413_hosts = *
  65. rfc1413_query_timeout = 0s
  66. ignore_bounce_errors_after = 2d
  67. timeout_frozen_after = 7d
  68. DKIM_DOMAIN = ${lc:${domain:$h_from:}}
  69. DKIM_FILE = /etc/exim4/domains/${lookup{${lc:${domain:$h_from:}}}dsearch{/etc/exim4/domains/}}/dkim.pem
  70. DKIM_PRIVATE_KEY = ${if exists{DKIM_FILE}{DKIM_FILE}{0}}
  71. OUTGOING_IP = /etc/exim4/domains/${lookup{$sender_address_domain}dsearch{/etc/exim4/domains}}/ip
  72. SMTP_RELAY_FILE = ${if exists{/etc/exim4/domains/${lookup{$sender_address_domain}dsearch{/etc/exim4/domains}}/smtp_relay.conf}{/etc/exim4/domains/${lookup{$sender_address_domain}dsearch{/etc/exim4/domains}}/smtp_relay.conf}{/etc/exim4/smtp_relay.conf}}
  73. SMTP_RELAY_HOST = ${lookup{host}lsearch{SMTP_RELAY_FILE}}
  74. SMTP_RELAY_PORT = ${lookup{port}lsearch{SMTP_RELAY_FILE}}
  75. SMTP_RELAY_USER = ${lookup{user}lsearch{SMTP_RELAY_FILE}}
  76. SMTP_RELAY_PASS = ${lookup{pass}lsearch{SMTP_RELAY_FILE}}
  77. # Custom Filter
  78. system_filter = /etc/exim4/system.filter
  79. system_filter_user = Debian-exim
  80. ######################################################################
  81. # ACL CONFIGURATION #
  82. # Specifies access control lists for incoming SMTP mail #
  83. ######################################################################
  84. acl_not_smtp = acl_not_smtp
  85. begin acl
  86. # Limit per user for PHP scripts
  87. acl_not_smtp:
  88. deny message = Website of user $authenticated_id is sending too many emails - rate overlimit = $sender_rate / $sender_rate_period
  89. ratelimit = 200 / 1h / $authenticated_id
  90. warn ratelimit = 100 / 1h / strict / $authenticated_id
  91. log_message = Sender rate [limitlog]: log / account / $authenticated_id / $sender_rate / $sender_rate_period
  92. accept
  93. acl_check_spammers:
  94. accept hosts = +whitelist
  95. drop message = Your host in blacklist on this server.
  96. log_message = Host in blacklist
  97. hosts = +spammers
  98. accept
  99. acl_check_mail:
  100. deny condition = ${if eq{$sender_helo_name}{}}
  101. message = HELO required before MAIL
  102. drop !authenticated = *
  103. message = Helo name contains an IP address (HELO was $sender_helo_name) and not is valid
  104. condition = ${if match{$sender_helo_name}{\N((\d{1,3}[.-]\d{1,3}[.-]\d{1,3}[.-]\d{1,3})|([0-9a-f]{8})|([0-9A-F]{8}))\N}{yes}{no}}
  105. condition = ${if match {${lookup dnsdb{>: defer_never,ptr=$sender_host_address}}\}{$sender_helo_name}{no}{yes}}
  106. delay = 45s
  107. drop !authenticated = *
  108. condition = ${if isip{$sender_helo_name}}
  109. message = Access denied - Invalid HELO name (See RFC2821 4.1.3)
  110. drop !authenticated = *
  111. condition = ${if eq{[$interface_address]}{$sender_helo_name}}
  112. message = $interface_address is _my_ address
  113. accept
  114. acl_check_rcpt:
  115. accept hosts = :
  116. # Limit per email account for SMTP auhenticated users
  117. deny message = Email account $authenticated_id is sending too many emails - rate overlimit = $sender_rate / $sender_rate_period
  118. set acl_c_msg_limit = ${if exists{/etc/exim4/domains/${lookup{${domain:$authenticated_id}}dsearch{/etc/exim4/domains/}}/limits}{${lookup {$authenticated_id} lsearch{/etc/exim4/domains/${lookup{${domain:$authenticated_id}}dsearch{/etc/exim4/domains/}}/limits}{$value}{${readfile{/etc/exim4/limit.conf}}}}}{${readfile{/etc/exim4/limit.conf}}} }
  119. ratelimit = $acl_c_msg_limit / 1h / strict/ $authenticated_id
  120. warn ratelimit = ${eval:$acl_c_msg_limit / 2} / 1h / strict / $authenticated_id
  121. log_message = Sender rate [limitlog]: log / email / $authenticated_id / $sender_rate / $sender_rate_period
  122. deny message = Restricted characters in address
  123. domains = +local_domains
  124. local_parts = ^[.] : ^.*[@%!/|]
  125. deny message = Restricted characters in address
  126. domains = !+local_domains
  127. local_parts = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
  128. require verify = sender
  129. accept hosts = +relay_from_hosts
  130. control = submission
  131. accept authenticated = *
  132. control = submission/domain=
  133. deny message = Rejected because $sender_host_address is in a black list at $dnslist_domain\n$dnslist_text
  134. hosts = !+whitelist
  135. dnslists = ${readfile {/etc/exim4/dnsbl.conf}{:}}
  136. require message = relay not permitted
  137. domains = +local_domains : +relay_to_domains
  138. deny message = smtp auth required
  139. sender_domains = +local_domains
  140. !authenticated = *
  141. require verify = recipient
  142. .ifdef CLAMD
  143. warn set acl_m0 = no
  144. warn condition = ${if exists {/etc/exim4/domains/$domain/antivirus}{yes}{no}}
  145. set acl_m0 = yes
  146. .endif
  147. .ifdef SPAMASSASSIN
  148. warn set acl_m1 = no
  149. set acl_m3 = no
  150. warn condition = ${if exists {/etc/exim4/domains/$domain/antispam}{yes}{no}}
  151. set acl_m1 = yes
  152. warn condition = ${if exists {/etc/exim4/domains/$domain/reject_spam}{yes}{no}}
  153. set acl_m3 = yes
  154. .endif
  155. accept
  156. acl_check_data:
  157. .ifdef CLAMD
  158. deny message = Message contains a virus ($malware_name) and has been rejected
  159. malware = */defer_ok
  160. condition = ${if eq{$acl_m0}{yes}{yes}{no}}
  161. .endif
  162. .ifdef SPAMASSASSIN
  163. warn !authenticated = *
  164. hosts = !+relay_from_hosts
  165. condition = ${if < {$message_size}{1024K}}
  166. condition = ${if eq{$acl_m1}{yes}{yes}{no}}
  167. spam = debian-spamd:true/defer_ok
  168. add_header = X-Spam-Score: $spam_score_int
  169. add_header = X-Spam-Bar: $spam_bar
  170. add_header = X-Spam-Report: $spam_report
  171. set acl_m2 = $spam_score_int
  172. warn condition = ${if !eq{$acl_m2}{} {yes}{no}}
  173. condition = ${if >{$acl_m2}{SPAM_SCORE} {yes}{no}}
  174. add_header = X-Spam-Status: Yes
  175. message = SpamAssassin detected spam (from $sender_address to $recipients).
  176. # Deny spam at high score if spam score > SPAM_REJECT_SCORE and delete_spam is enabled
  177. deny message = This message scored $spam_score spam points
  178. spam = debian-spamd:true
  179. condition = ${if eq{$acl_m3}{yes}{yes}{no}}
  180. condition = ${if >{$spam_score_int}{SPAM_REJECT_SCORE}{1}{0}}
  181. .endif
  182. accept
  183. acl_check_mime:
  184. deny message = Blacklisted file extension detected
  185. condition = ${if match {${lc:$mime_filename}}{\N(\.ace|\.ade|\.adp|\.app|\.arj|\.asp|\.aspx|\.asx|\.bas|\.bat|\.cab|\.cer|\.chm|\.cmd|\.cnt|\.com|\.cpl|\.crt|\.csh|\.der|\.diagcab|\.dll|\.efi|\.exe|\.fla|\.fon|\.fxp|\.gadget|\.grp|\.hlp|\.hpj|\.hta|\.htc|\.img|\.inf|\.ins|\.iso|\.isp|\.its|\.jar|\.jnlp|\.js|\.jse|\.ksh|\.lib|\.lnk|\.mad|\.maf|\.mag|\.mam|\.maq|\.mar|\.mas|\.mat|\.mau|\.mav|\.maw|\.mcf|\.mda|\.mdb|\.mde|\.mdt|\.mdw|\.mdz|\.msc|\.msh|\.msh1|\.msh1xml|\.msh2|\.msh2xml|\.mshxml|\.msi|\.msp|\.mst|\.msu|\.ops|\.osd|\.pcd|\.pif|\.pl|\.plg|\.prf|\.prg|\.printerexport|\.ps1|\.ps1xml|\.ps2|\.ps2xml|\.psc1|\.psc2|\.psd1|\.psdm1|\.pst|\.py|\.pyc|\.pyo|\.pyw|\.pyz|\.pyzw|\.reg|\.scf|\.scr|\.sct|\.sfx|\.shb|\.shs|\.swf|\.sys|\.theme|\.tmp|\.ttf|\.url|\.vb|\.vba|\.vbe|\.vbp|\.vbs|\.vhd|\.vhdx|\.vsmacros|\.vsw|\.vxd|\.webpnp|\.website|\.wim|\.ws|\.wsc|\.wsf|\.wsh|\.xbap|\.xll|\.xnk)$\N}{1}{0}}
  186. accept
  187. ######################################################################
  188. # AUTHENTICATION CONFIGURATION #
  189. ######################################################################
  190. begin authenticators
  191. smtp_relay_login:
  192. driver = plaintext
  193. public_name = LOGIN
  194. hide client_send = : SMTP_RELAY_USER : SMTP_RELAY_PASS
  195. dovecot_plain:
  196. driver = dovecot
  197. public_name = PLAIN
  198. server_socket = /run/dovecot/auth-client
  199. server_set_id = $auth1
  200. dovecot_login:
  201. driver = dovecot
  202. public_name = LOGIN
  203. server_socket = /run/dovecot/auth-client
  204. server_set_id = $auth1
  205. ######################################################################
  206. # ROUTERS CONFIGURATION #
  207. # Specifies how addresses are handled #
  208. ######################################################################
  209. begin routers
  210. send_via_unauthenticated_smtp_relay:
  211. driver = manualroute
  212. address_data = SMTP_RELAY_HOST:SMTP_RELAY_PORT
  213. domains = !+local_domains
  214. require_files = SMTP_RELAY_FILE
  215. condition = ${if eq{SMTP_RELAY_USER}{}}
  216. transport = remote_smtp
  217. route_list = * ${extract{1}{:}{$address_data}}::${extract{2}{:}{$address_data}}
  218. no_more
  219. no_verify
  220. send_via_smtp_relay:
  221. driver = manualroute
  222. address_data = SMTP_RELAY_HOST:SMTP_RELAY_PORT
  223. domains = !+local_domains
  224. require_files = SMTP_RELAY_FILE
  225. transport = smtp_relay_smtp
  226. route_list = * ${extract{1}{:}{$address_data}}::${extract{2}{:}{$address_data}}
  227. no_more
  228. no_verify
  229. dnslookup:
  230. driver = dnslookup
  231. # if outbound, and forwarding has been done, use an alternate transport
  232. domains = ! +local_domains
  233. transport = ${if eq {$local_part@$domain} \
  234. {$original_local_part@$original_domain} \
  235. {remote_smtp} {remote_forwarded_smtp}}
  236. no_more
  237. userforward:
  238. driver = redirect
  239. check_local_user
  240. file = $home/.forward
  241. require_files = ${local_part}:+${home}/.forward
  242. domains = +local_domains
  243. allow_filter
  244. no_verify
  245. no_expn
  246. check_ancestor
  247. file_transport = address_file
  248. pipe_transport = address_pipe
  249. reply_transport = address_reply
  250. procmail:
  251. driver = accept
  252. check_local_user
  253. require_files = ${local_part}:+${home}/.procmailrc:/usr/bin/procmail
  254. transport = procmail
  255. no_verify
  256. autoreplay:
  257. driver = accept
  258. require_files = /etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/autoreply.${local_part}.msg
  259. condition = ${if exists{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/autoreply.${local_part}.msg}{yes}{no}}
  260. retry_use_local_part
  261. transport = userautoreply
  262. unseen
  263. inbound_srs:
  264. driver = redirect
  265. senders = :
  266. domains = +local_domains
  267. # detect inbound bounces which are SRS'd, and decode them
  268. condition = ${if inbound_srs {$local_part} {SRS_SECRET}}
  269. data = $srs_recipient
  270. inbound_srs_failure:
  271. driver = redirect
  272. senders = :
  273. domains = +local_domains
  274. # detect inbound bounces which look SRS'd but are invalid
  275. condition = ${if inbound_srs {$local_part} {}}
  276. allow_fail
  277. data = :fail: Invalid SRS recipient address
  278. aliases:
  279. driver = redirect
  280. headers_add = X-redirected: yes
  281. data = ${extract{1}{:}{${lookup{$local_part@$domain}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/aliases}}}}
  282. require_files = /etc/exim4/domains/$domain/aliases
  283. redirect_router = dnslookup
  284. pipe_transport = address_pipe
  285. unseen
  286. localuser_fwd_only:
  287. driver = accept
  288. transport = devnull
  289. condition = ${if exists{/etc/exim4/domains/$domain/fwd_only}{${lookup{$local_part}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/fwd_only}{true}{false}}}}
  290. localuser_spam:
  291. driver = accept
  292. transport = local_spam_delivery
  293. condition = ${if eq {${if match{$h_X-Spam-Status:}{\N^Yes\N}{yes}{no}}} {${lookup{$local_part}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/passwd}{yes}{no_such_user}}}}
  294. localuser:
  295. driver = accept
  296. transport = local_delivery
  297. condition = ${lookup{$local_part}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/passwd}{true}{false}}
  298. catchall:
  299. driver = redirect
  300. headers_add = X-redirected: yes
  301. require_files = /etc/exim4/domains/$domain/aliases
  302. data = ${extract{1}{:}{${lookup{*@$domain}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/aliases}}}}
  303. file_transport = local_delivery
  304. redirect_router = dnslookup
  305. condition = ${lookup{$local_part@$domain}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/aliases}{false}{true}}
  306. terminate_alias:
  307. driver = accept
  308. transport = devnull
  309. condition = ${lookup{$local_part@$domain}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/aliases}{true}{false}}
  310. ######################################################################
  311. # TRANSPORTS CONFIGURATION #
  312. ######################################################################
  313. begin transports
  314. smtp_relay_smtp:
  315. driver = smtp
  316. hosts_require_auth = $host_address
  317. hosts_require_tls = $host_address
  318. remote_smtp:
  319. driver = smtp
  320. helo_data = ${lookup dnsdb{>: defer_never,ptr=$sending_ip_address}{${listextract{1}{$value}}}{$primary_hostname}}
  321. dkim_domain = DKIM_DOMAIN
  322. dkim_selector = mail
  323. dkim_private_key = DKIM_PRIVATE_KEY
  324. dkim_canon = relaxed
  325. dkim_strict = 0
  326. hosts_try_fastopen = !*.l.google.com
  327. interface = ${if exists{OUTGOING_IP}{${readfile{OUTGOING_IP}}}}
  328. remote_forwarded_smtp:
  329. driver = smtp
  330. helo_data = ${lookup dnsdb{>: defer_never,ptr=$sending_ip_address}{${listextract{1}{$value}}}{$primary_hostname}}
  331. dkim_domain = DKIM_DOMAIN
  332. dkim_selector = mail
  333. dkim_private_key = DKIM_PRIVATE_KEY
  334. dkim_canon = relaxed
  335. dkim_strict = 0
  336. hosts_try_fastopen = !*.l.google.com
  337. interface = ${if exists{OUTGOING_IP}{${readfile{OUTGOING_IP}}}}
  338. # modify the envelope from, for mails that we forward
  339. max_rcpt = 1
  340. return_path = ${srs_encode {SRS_SECRET} {$return_path} {$original_domain}}
  341. procmail:
  342. driver = pipe
  343. command = "/usr/bin/procmail -d $local_part"
  344. return_path_add
  345. delivery_date_add
  346. envelope_to_add
  347. user = $local_part
  348. initgroups
  349. return_output
  350. local_delivery:
  351. driver = appendfile
  352. maildir_format
  353. maildir_use_size_file
  354. user = ${extract{2}{:}{${lookup{$local_part}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/passwd}}}}
  355. group = mail
  356. create_directory
  357. directory_mode = 770
  358. mode = 660
  359. use_lockfile = no
  360. delivery_date_add
  361. envelope_to_add
  362. return_path_add
  363. directory = "${extract{5}{:}{${lookup{$local_part}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/passwd}}}}/mail/${lookup{$domain}dsearch{/etc/exim4/domains/}}/${lookup{$local_part}dsearch{${extract{5}{:}{${lookup{$local_part}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/passwd}}}}/mail/${lookup{$domain}dsearch{/etc/exim4/domains/}}}}"
  364. quota = ${extract{6}{:}{${lookup{$local_part}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/passwd}}}}M
  365. quota_warn_threshold = 75%
  366. local_spam_delivery:
  367. driver = appendfile
  368. maildir_format
  369. maildir_use_size_file
  370. user = ${extract{2}{:}{${lookup{$local_part}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/passwd}}}}
  371. group = mail
  372. create_directory
  373. directory_mode = 770
  374. mode = 660
  375. use_lockfile = no
  376. delivery_date_add
  377. envelope_to_add
  378. return_path_add
  379. directory = "${extract{5}{:}{${lookup{$local_part}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/passwd}}}}/mail/${lookup{$domain}dsearch{/etc/exim4/domains/}}/${lookup{$local_part}dsearch{${extract{5}{:}{${lookup{$local_part}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/passwd}}}}/mail/${lookup{$domain}dsearch{/etc/exim4/domains/}}}}/.Spam"
  380. quota = ${extract{6}{:}{${lookup{$local_part}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/passwd}}}}M
  381. quota_directory = "${extract{5}{:}{${lookup{$local_part}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/passwd}}}}/mail/${lookup{$domain}dsearch{/etc/exim4/domains/}}/${lookup{$local_part}dsearch{${extract{5}{:}{${lookup{$local_part}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/passwd}}}}/mail/${lookup{$domain}dsearch{/etc/exim4/domains/}}}}"
  382. quota_warn_threshold = 75%
  383. address_pipe:
  384. driver = pipe
  385. return_output
  386. address_file:
  387. driver = appendfile
  388. delivery_date_add
  389. envelope_to_add
  390. return_path_add
  391. address_reply:
  392. driver = autoreply
  393. userautoreply:
  394. driver = autoreply
  395. file = /etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/autoreply.${extract{1}{:}{${lookup{$local_part}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/accounts}}}}.msg
  396. from = "${extract{1}{:}{${lookup{$local_part}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/accounts}}}}@${lookup{$domain}dsearch{/etc/exim4/domains/}}"
  397. headers = Content-Type: text/plain; charset=utf-8;\nContent-Transfer-Encoding: 8bit
  398. subject = "${if def:h_Subject: {Autoreply: \"${rfc2047:$h_Subject:}\"} {Autoreply Message}}"
  399. to = "${sender_address}"
  400. devnull:
  401. driver = appendfile
  402. file = /dev/null
  403. ######################################################################
  404. # RETRY CONFIGURATION #
  405. ######################################################################
  406. begin retry
  407. # Address or Domain Error Retries
  408. # ----------------- ----- -------
  409. * * F,2h,15m; G,16h,1h,1.5; F,4d,6h
  410. ######################################################################
  411. # REWRITE CONFIGURATION #
  412. ######################################################################
  413. begin rewrite
  414. ######################################################################