iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
comments
[distro-setup]
/
mail-setup
diff --git
a/mail-setup
b/mail-setup
index 36b3ab57027418c56945b3767d3bb3beac04b29f..e15a31ef782d5dcbb34e628c65a42fbb90ba45ab 100755
(executable)
--- a/
mail-setup
+++ b/
mail-setup
@@
-2120,6
+2120,7
@@
mail_cache_max_size = 50M
# ian: %u is used for alerts user vs iank
# https://doc.dovecot.org/configuration_manual/mail_location/Maildir/
mail_location = maildir:/m/%u:LAYOUT=fs:INBOX=/m/%u/INBOX:INDEX=/var/dovecot-indexes/%u
# ian: %u is used for alerts user vs iank
# https://doc.dovecot.org/configuration_manual/mail_location/Maildir/
mail_location = maildir:/m/%u:LAYOUT=fs:INBOX=/m/%u/INBOX:INDEX=/var/dovecot-indexes/%u
+# note: i don't know if these need to be set, but this seems fine.
mail_uid = iank
mail_gid = iank
mail_uid = iank
mail_gid = iank
@@
-3803,7
+3804,8
@@
case $HOSTNAME in
;;
esac
;;
esac
-# optimization, this only needs to run once.
+# optimization, this only needs to run once. But, if we move to a
+# computer we haven't used much, we need to fetch a fresh cert.
if ! openssl x509 -checkend $(( 60 * 60 * 24 * 3 )) -noout -in /etc/exim4/fullchain.pem; then
m /a/bin/ds/mail-cert-cron -1 -i
m systemctl --now enable mailcert.timer
if ! openssl x509 -checkend $(( 60 * 60 * 24 * 3 )) -noout -in /etc/exim4/fullchain.pem; then
m /a/bin/ds/mail-cert-cron -1 -i
m systemctl --now enable mailcert.timer