X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=mail-setup;h=9bc36dc3d2344ded9374fc29b0d7bf766a828999;hb=460cc07230c2040305068f17a687e06c7bc13dfe;hp=b79fd8483fa44fd6a0ae9d0bbf56f05ee2d85389;hpb=f31ab4e29572ea4948f292bee814bc23061e992a;p=distro-setup diff --git a/mail-setup b/mail-setup index b79fd84..9bc36dc 100755 --- a/mail-setup +++ b/mail-setup @@ -566,6 +566,9 @@ EOF # internet. I was torn about whether to do this or not, meh. pi dovecot-core dovecot-imapd dovecot-sieve dovecot-lmtpd + for f in /p/c/subdir_files/sieve/*sieve /a/c/subdir_files/sieve/*sieve; do + sudo -u $u /a/exe/lnf -T $f $(eval echo ~$u)/sieve/${f##*/} + done # if we changed 90-sieve.conf and removed the active part of the # sieve option, we wouldn\'t need this, but I\'d rather not modify a # default config if not needed. This won\'t work as a symlink in /a/c @@ -877,10 +880,17 @@ systemctl enable exim4 if [[ $HOSTNAME == "$MAIL_HOST" ]]; then + f=/usr/local/bin/send-test-forward + cat >$f <<'EOF' +#!/bin/bash +echo body_test | mail -s "primary_test $(date +%s) $(date +%Y-%m-%dT%H:%M:%S%z)" iank@posteo.de +EOF + chmod +x $f + cat >/etc/cron.d/mailtest <