Browse Source

procmail integration

Bob Mottram 11 years ago
parent
commit
4bdf8f1e08
1 changed files with 9 additions and 18 deletions
  1. 9
    18
      beaglebone.txt

+ 9
- 18
beaglebone.txt View File

658
 Exim4 seems much easier to install and configure than Postfix.
658
 Exim4 seems much easier to install and configure than Postfix.
659
 
659
 
660
 #+BEGIN_SRC: bash
660
 #+BEGIN_SRC: bash
661
-aptitude install exim4 sasl2-bin swaks libnet-ssleay-perl
661
+aptitude install exim4 sasl2-bin swaks libnet-ssleay-perl procmail
662
 #+END_SRC
662
 #+END_SRC
663
 
663
 
664
 You will be prompted to remove postfix.  Say yes and yes again.
664
 You will be prompted to remove postfix.  Say yes and yes again.
947
 emacs ~/.procmailrc
947
 emacs ~/.procmailrc
948
 #+END_SRC
948
 #+END_SRC
949
 
949
 
950
-The text should look like the following.
950
+The text should look like the following.  Replace /username/ with your username.
951
 
951
 
952
 #+BEGIN_SRC: sh
952
 #+BEGIN_SRC: sh
953
 MAILDIR=$HOME/Maildir
953
 MAILDIR=$HOME/Maildir
970
   * ^X-Spam-Level: \*\*\*\*\*
970
   * ^X-Spam-Level: \*\*\*\*\*
971
 .0-spam/
971
 .0-spam/
972
 
972
 
973
-# if it wasn't detected as spam, but is to a fake address, then we
974
-# know it is spam, so learn from that
975
-:0
976
-  * !^(From|To|cc|bcc)[ :].*($USER|root|webmaster|admin|postmaster).*@acooke\.org
977
-  * !^(From|To|cc|bcc)[ :].*@isti\.com
978
-# add mailing lists below
979
-  * !^From[ :].*(snowmail_daily@...|Section@...|rforno@...|alert@...).*
980
-{
981
-  # save in case of screw-ups, mailing lists, etc
982
-  :0 c
983
-  .0-spam/
984
-  :0
985
-  .learn-spam/
986
-}
987
-
988
 # otherwise, marginal spam goes here for revision
973
 # otherwise, marginal spam goes here for revision
989
 :0
974
 :0
990
   * ^X-Spam-Level: \*\*
975
   * ^X-Spam-Level: \*\*
991
 .spam/
976
 .spam/
977
+
978
+# mail addressed to me
979
+:0
980
+  * ^TOusername
981
+$MAILDIR/new
992
 #+END_SRC
982
 #+END_SRC
993
 
983
 
994
 Save and exit.
984
 Save and exit.
1156
   mkdir -m 700 $LISTDIR/cur
1146
   mkdir -m 700 $LISTDIR/cur
1157
 fi
1147
 fi
1158
 chown -R $MYUSERNAME:$MYUSERNAME $LISTDIR
1148
 chown -R $MYUSERNAME:$MYUSERNAME $LISTDIR
1149
+echo "" >> $PM
1159
 echo ":0" >> $PM
1150
 echo ":0" >> $PM
1160
-echo "* ^Subject:.*[$SUBJECTTAG].*" >> $PM
1151
+echo "  * ^Subject:.*[$SUBJECTTAG]" >> $PM
1161
 echo "$LISTDIR/new" >> $PM
1152
 echo "$LISTDIR/new" >> $PM
1162
 chown $MYUSERNAME:$MYUSERNAME $PM
1153
 chown $MYUSERNAME:$MYUSERNAME $PM
1163
 if [ ! -f "$MUTTRC" ]; then
1154
 if [ ! -f "$MUTTRC" ]; then