iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix and improve system status
[distro-setup]
/
mail-setup
diff --git
a/mail-setup
b/mail-setup
index 9bc36dc3d2344ded9374fc29b0d7bf766a828999..690d17daa941028f46bbf8564f7a18fdcbe81fa5 100755
(executable)
--- a/
mail-setup
+++ b/
mail-setup
@@
-840,6
+840,8
@@
for d in /Maildir /root/Maildir; do
ln -sf -T /m/md/bounces $d
done
ln -sf -T /m/md/bounces $d
done
+sudo -u $u ln -sf -T /m/.mu /home/$u/.mu
+
# put spool dir in directory that spans multiple distros.
# based on http://www.postfix.org/qmgr.8.html and my notes in gnus
#
# put spool dir in directory that spans multiple distros.
# based on http://www.postfix.org/qmgr.8.html and my notes in gnus
#
@@
-890,9
+892,9
@@
EOF
cat >/etc/cron.d/mailtest <<EOF
SHELL=/bin/bash
# running as user just because no need to run as root
cat >/etc/cron.d/mailtest <<EOF
SHELL=/bin/bash
# running as user just because no need to run as root
-*/10 * * * * $u $f
-*/10 * * * * $u /usr/local/bin/mailtest-check
-*/10 * * * * root chmod -R g+rw /m/md/bounces
+*/10 * * * * $u $f
2>&1 | log-once send-test-forward
+*/10 * * * * $u /usr/local/bin/mailtest-check
2>&1 | log-once -1 send-test-forward
+*/10 * * * * root chmod -R g+rw /m/md/bounces
2>&1 | log-once -1 bounces-chmod
EOF
cp /a/bin/distro-setup/filesystem/usr/local/bin/mailtest-check /usr/local/bin
else
EOF
cp /a/bin/distro-setup/filesystem/usr/local/bin/mailtest-check /usr/local/bin
else