diff options
-rw-r--r-- | etc/exim.conf | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/etc/exim.conf b/etc/exim.conf new file mode 100644 index 0000000..474012d --- /dev/null +++ b/etc/exim.conf @@ -0,0 +1,100 @@ +daemon_smtp_port = 11025 +tls_advertise_hosts = +domainlist local_domains = @ : randomdan.homeip.net : random.lan +hostlist relay_from_hosts = 127.0.0.1 : 10.10.0.0/16 +hosts_proxy = <;10.10.0.0/16; fdc7:602:e9c5:b8f0::/16 + +acl_smtp_rcpt = acl_check_rcpt +acl_smtp_data = acl_check_scan +acl_smtp_expn = accept +acl_smtp_vrfy = accept +qualify_domain = randomdan.homeip.net +never_users = root +host_lookup = 10.10.0.0/16 + +sender_unqualified_hosts = 10.10.0.0/16 +ignore_bounce_errors_after = 2d +timeout_frozen_after = 7d +auto_thaw = 1h +rfc1413_query_timeout = 0s +spamd_address = 10.10.0.2 783 : 10.10.0.3 783 +av_scanner = clamd:/var/run/clamav/clamd.sock + +begin acl +acl_check_rcpt: + accept hosts = : + deny local_parts = ^.*[@%!/|] + accept local_parts = postmaster + domains = +local_domains + accept domains = +local_domains + endpass + message = Unknown user + verify = recipient + accept hosts = +relay_from_hosts + deny message = relay not permitted + +acl_check_scan: + deny message = This message contains malware ($malware_name) + malware = */defer_ok + deny message = This message is spam ($spam_score) + spam = nobody + condition = ${if > {$spam_score_int}{30}{1}{0}} + warn message = X-Spam-Score: $spam_score ($spam_bar) + spam = nobody:true + warn message = X-Spam-Report: $spam_report + spam = nobody:true + accept + +begin routers +passontoisp: + driver = manualroute + domains = ! +local_domains + transport = remote_smtp + ignore_target_hosts = 127.0.0.0/8 + route_list = * relay.plus.net + no_more +system_aliases: + driver = redirect + allow_fail + allow_defer + data = ${lookup ldap {ldap://localhost/ou=Aliases,dc=random,dc=lan?userid?one?organizationalUnitName=$local_part}} + file_transport = address_file + pipe_transport = address_pipe +userforward: + driver = redirect + check_local_user + file = $home/.forward + no_verify + no_expn + check_ancestor + file_transport = address_file + pipe_transport = address_pipe + reply_transport = address_reply +localuser: + driver = accept + check_local_user + transport = local_delivery + +begin transports +remote_smtp: + driver = smtp +local_delivery: + driver = appendfile + directory = /$home/.maildir + delivery_date_add + envelope_to_add + return_path_add + maildir_format +address_pipe: + driver = pipe + return_output +address_reply: + driver = autoreply + +begin retry + * * F,4h,10m; G,16h,1h,1.5; F,4d,6h + +begin rewrite + +begin authenticators + |