Skeleton for procmailrc
This commit is contained in:
parent
bdf4dd3285
commit
de8e100fcf
|
@ -6571,6 +6571,22 @@ function spam_filtering {
|
||||||
echo ' * ^X-Spam-Level: \*\*' >> /home/$MY_USERNAME/.procmailrc
|
echo ' * ^X-Spam-Level: \*\*' >> /home/$MY_USERNAME/.procmailrc
|
||||||
echo 'spam/' >> /home/$MY_USERNAME/.procmailrc
|
echo 'spam/' >> /home/$MY_USERNAME/.procmailrc
|
||||||
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.procmailrc
|
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.procmailrc
|
||||||
|
echo '# get spamassassin to check emails' >> /etc/skel/.procmailrc
|
||||||
|
echo ':0fw: .spamassassin.lock' >> /etc/skel/.procmailrc
|
||||||
|
echo ' * < 256000' >> /etc/skel/.procmailrc
|
||||||
|
echo '| spamc' >> /etc/skel/.procmailrc
|
||||||
|
echo '# strong spam are discarded' >> /etc/skel/.procmailrc
|
||||||
|
echo ':0' >> /etc/skel/.procmailrc
|
||||||
|
echo ' * ^X-Spam-Level: \*\*\*\*\*\*' >> /etc/skel/.procmailrc
|
||||||
|
echo '/dev/null' >> /etc/skel/.procmailrc
|
||||||
|
echo '# weak spam are kept just in case - clear this out every now and then' >> /etc/skel/.procmailrc
|
||||||
|
echo ':0' >> /etc/skel/.procmailrc
|
||||||
|
echo ' * ^X-Spam-Level: \*\*\*\*\*' >> /etc/skel/.procmailrc
|
||||||
|
echo 'maybe-spam/' >> /etc/skel/.procmailrc
|
||||||
|
echo '# otherwise, marginal spam goes here for revision' >> /etc/skel/.procmailrc
|
||||||
|
echo ':0' >> /etc/skel/.procmailrc
|
||||||
|
echo ' * ^X-Spam-Level: \*\*' >> /etc/skel/.procmailrc
|
||||||
|
echo 'spam/' >> /etc/skel/.procmailrc
|
||||||
# filtering scripts
|
# filtering scripts
|
||||||
echo '#!/bin/bash' > /usr/bin/filterspam
|
echo '#!/bin/bash' > /usr/bin/filterspam
|
||||||
echo 'for d in /home/*/ ; do' >> /usr/bin/filterspam
|
echo 'for d in /home/*/ ; do' >> /usr/bin/filterspam
|
||||||
|
|
|
@ -34,6 +34,8 @@ else
|
||||||
echo "set from='$MY_USERNAME <$MY_USERNAME@$HOSTNAME>'" >> /home/$MY_USERNAME/.muttrc
|
echo "set from='$MY_USERNAME <$MY_USERNAME@$HOSTNAME>'" >> /home/$MY_USERNAME/.muttrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sed -i "s|$USER@|$MY_USERNAME@|g" /home/$MY_USERNAME/.procmailrc
|
||||||
|
|
||||||
# generate a gpg key
|
# generate a gpg key
|
||||||
echo "Making a GPG key for $MY_USERNAME@$HOSTNAME"
|
echo "Making a GPG key for $MY_USERNAME@$HOSTNAME"
|
||||||
mkdir /home/$MY_USERNAME/.gnupg
|
mkdir /home/$MY_USERNAME/.gnupg
|
||||||
|
|
Loading…
Reference in New Issue