iankelling.org
/
git
/
distro-setup
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
110b15e
)
mail backups were getting in a loop, i think this fixes
author
Ian Kelling
<ian@iankelling.org>
Fri, 11 Nov 2022 22:36:44 +0000
(17:36 -0500)
committer
Ian Kelling
<ian@iankelling.org>
Fri, 11 Nov 2022 22:36:44 +0000
(17:36 -0500)
mail-setup
patch
|
blob
|
history
diff --git
a/mail-setup
b/mail-setup
index 4619b2e2c8ed0db1977f0b84434f4c29837f91a8..85bd17b78f6313541af26babbdde0a3d6f6eabb4 100755
(executable)
--- a/
mail-setup
+++ b/
mail-setup
@@
-1355,7
+1355,9
@@
EOF
# old file
# old file
-rm -fv /etc/exim4/conf.d/router/8{8,9}0_backup_copy /etc/exim4/conf.d/router/865_backup_redir
+rm -fv /etc/exim4/conf.d/router/8{8,9}0_backup_copy \
+ /etc/exim4/conf.d/router/865_backup_redir \
+ /etc/exim4/conf.d/router/870_backup_local
# It is important for this to exist everywhere except in MAIL_HOST
# non-nn config. Previously, just had it in the nn-config on MAIL_HOST,
# It is important for this to exist everywhere except in MAIL_HOST
# non-nn config. Previously, just had it in the nn-config on MAIL_HOST,
@@
-2813,7
+2815,7
@@
case $HOSTNAME in
# ** $MAIL_HOST|bk|je)
$MAIL_HOST|bk|je)
# ** $MAIL_HOST|bk|je)
$MAIL_HOST|bk|je)
- echo|i /etc/exim4/conf.d/router/
870
_backup_local
+ echo|i /etc/exim4/conf.d/router/
165
_backup_local
cat >>/etc/exim4/update-exim4.conf.conf <<EOF
# note: some things we don't set that are here by default because they are unused.
cat >>/etc/exim4/update-exim4.conf.conf <<EOF
# note: some things we don't set that are here by default because they are unused.
@@
-2966,6
+2968,11
@@
deny
!authenticated = *
domains = +local_hostnames
message = no relay
!authenticated = *
domains = +local_hostnames
message = no relay
+
+# for testing bounce behavior
+#deny
+# senders = testlist-bounces+test=zroe.org@fsf.org
+# message = iank-bounce
EOF
echo|i /etc/exim4/conf.d/router/880_universal_forward
EOF
echo|i /etc/exim4/conf.d/router/880_universal_forward
@@
-3192,7
+3199,7
@@
backup_maildir:
mode_fail_narrower = false
EOF
mode_fail_narrower = false
EOF
- i /etc/exim4/conf.d/router/
870
_backup_local <<'EOF'
+ i /etc/exim4/conf.d/router/
165
_backup_local <<'EOF'
### router/900_exim4-config_local_user
#################################
### router/900_exim4-config_local_user
#################################