]> git.madduck.net Git - etc/mailfilter.git/blob - procmail/procmailrc

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

fix location of mailreaver
[etc/mailfilter.git] / procmail / procmailrc
1 #!/usr/bin/procmail -t
2
3 #LOGFILE=$HOME/.var/procmail/log
4 #LOGABSTRACT=no
5 #VERBOSE=yes
6
7 PMDIR=$HOME/.etc/mailfilter/procmail
8
9 INCLUDERC=$PMDIR/defer
10
11 FROM_ALBATROSS=!
12 :0
13 * ^X-Been-There: madduck@albatross
14 {
15   M=$MATCH
16   :0
17   * M ?? ^\+.+\+\/[^@]+
18   {
19     # we have two +, so it's a virtual domain
20     L=$MATCH
21
22     :0
23     * M ?? ^\+\/[^+]+
24     { D=$MATCH }
25
26     OT="$L@$D"
27     L
28     D
29   }
30  
31   :0 E
32   * M ?? ^\/\+?[^@]*
33   { OT="madduck$MATCH@madduck.net" }
34   M
35
36   :0 fw
37   |formail -I "X-Original-To: $OT" -A'X-From-Albatross: yes'
38   OT
39
40   FROM_ALBATROSS
41   LOG="log:     *** received $MSGID from albatross$NL"
42 }
43
44 INCLUDERC=$PMDIR/defines
45
46 INCLUDERC=$PMDIR/ignore
47
48 INCLUDERC=$PMDIR/smsmail
49
50 #VERBOSE=yes
51
52 INCLUDERC=$PMDIR/logging
53
54 INCLUDERC=$PMDIR/marknew
55 INCLUDERC=$PMDIR/eqdomains
56
57 INCLUDERC=$PMDIR/duplicates
58
59 INCLUDERC=$PMDIR/to-gmail
60
61 INCLUDERC=$PMDIR/justme
62
63 INCLUDERC=$PMDIR/spamtraps
64 INCLUDERC=$PMDIR/spammers
65 INCLUDERC=$PMDIR/spamfilter
66
67 #INCLUDERC=$PMDIR/autoreplies
68
69 INCLUDERC=$PMDIR/lurker
70
71 INCLUDERC=$PMRULES/all