if [[ ! -r $f ]] || (( $(( $(date +%s) - $(stat -c %Y $f ) )) > 60*60*12 )); then
m apt-get update
fi
- m DEBIAN_FRONTEND=noninteractive apt-get -y install --purge --auto-remove "$@"
+ DEBIAN_FRONTEND=noninteractive m apt-get -y install --purge --auto-remove "$@"
}
postmaster=alerts
sed -r s/^\\S+:/$b:/ 600_exim4-config_userforward >175_$b
-m rm -f /etc/exim4/conf.d/main/000_localmacros # old filename
+rm -vf /etc/exim4/conf.d/main/000_localmacros # old filename
cat >/etc/exim4/conf.d/main/000_local <<EOF
MAIN_TLS_ENABLE = true
-
# debian exim config added this in 2016 or so?
# it's part of the smtp spec, to limit lines to 998 chars
# but a fair amount of legit mail does not adhere to it. I don't think
# more verbose logs
MAIN_LOG_SELECTOR = +all
+
+# normally empty, I set this so I can set the envelope address
+# when doing mail redelivery to invoke filters. Also allows
+# me exiqgrep and stuff.
+MAIN_TRUSTED_GROUPS = $u
EOF
rm -fv /etc/exim4/rcpt_local_acl # old path
# enable 587 in addition to the default 25, so that
# i can send mail where port 25 is firewalled by isp
daemon_smtp_ports = 25 : 587
-# i don't have ipv6 setup properly yet
-disable_ipv6 = true
DKIM_CANON = relaxed
DKIM_SELECTOR = li
# Seems logical for this to be the same as mailname.
MAIN_HARDCODE_PRIMARY_HOSTNAME = mail.iankelling.org
-# normally empty, I set this so I can set the envelope address
-# when doing mail redelivery to invoke filters
-MAIN_TRUSTED_GROUPS = $u
-
LOCAL_DELIVERY = dovecot_lmtp
# options exim has to avoid having to alter the default config files