Encrypt incoming mail for multiple users

This commit is contained in:
Bob Mottram 2015-10-25 12:38:21 +00:00
parent 03917ed58e
commit 5a3503a080
1 changed files with 4 additions and 0 deletions

View File

@ -6828,6 +6828,10 @@ function encrypt_incoming_email {
echo ':0 f' >> /home/$MY_USERNAME/.procmailrc echo ':0 f' >> /home/$MY_USERNAME/.procmailrc
echo "| /usr/bin/gpgit.pl --encrypt-mode prefer-inline --inline-flatten $MY_EMAIL_ADDRESS" >> /home/$MY_USERNAME/.procmailrc echo "| /usr/bin/gpgit.pl --encrypt-mode prefer-inline --inline-flatten $MY_EMAIL_ADDRESS" >> /home/$MY_USERNAME/.procmailrc
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.procmailrc chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.procmailrc
echo '' >> /etc/skel/.procmailrc
echo ':0 f' >> /etc/skel/.procmailrc
echo -n '| /usr/bin/gpgit.pl --encrypt-mode prefer-inline --inline-flatten $USER@' >> /etc/skel/.procmailrc
echo "$DEFAULT_DOMAIN_NAME" >> /etc/skel/.procmailrc
fi fi
echo 'encrypt_incoming_email' >> $COMPLETION_FILE echo 'encrypt_incoming_email' >> $COMPLETION_FILE
} }