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 (from parent 1:
28904b4
)
handle local bounces better
author
Ian Kelling
<ian@iankelling.org>
Mon, 29 Jul 2019 00:26:04 +0000
(20:26 -0400)
committer
Ian Kelling
<ian@iankelling.org>
Mon, 29 Jul 2019 00:26:04 +0000
(20:26 -0400)
mail-setup
patch
|
blob
|
history
diff --git
a/mail-setup
b/mail-setup
index 31841b9ef71f6293a95e0784411fbbef44eebd48..db75252b4f2eaae59b3754e4760929b4ee12a292 100755
(executable)
--- a/
mail-setup
+++ b/
mail-setup
@@
-816,15
+816,15
@@
EOF
fi
# local mail that bounces to alerts goes to /Maildir
fi
# local mail that bounces to alerts goes to /Maildir
-mkdir -p /m/md/INBOX
-chmod 770 /m/md/INBOX
+mkdir -p /Maildir{cur,tmp,new}
+chgrp Debian-exim /Maildir{cur,tmp,new}
+chmod 775 /Maildir{cur,tmp,new}
if id -g 1000 &>/dev/null; then
if id -g 1000 &>/dev/null; then
- chgrp 1000 /m/md/INBOX
- usermod -a -G 1000 Debian-exim
-else
- chgrp Debian-exim /m/md/INBOX
+ usermod -a -G Debian-exim 1000
+fi
+if [[ -e /m/md ]]; then
+ ln -s /Maildir /m/md/bounces
fi
fi
-ln -s /m/md/INBOX /Maildir
# 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