-
Notifications
You must be signed in to change notification settings - Fork 1
/
_forward
176 lines (171 loc) · 3.92 KB
/
_forward
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
#Exim Filter
if $h_X-Spam-Flag: contains "YES" and not delivered
then
save $home/Mail/badpeople/caughtspam
endif
if $sender_helo_name is "randomness.org.uk" and $sender_host_address is not "46.37.32.131"
then
save $home/Mail/badpeople/spamfakes
endif
if $h_To: contains "[email protected]"
then
save $home/Mail/finance
endif
if $h_From: contains "[email protected]"
then
save $home/Mail/bytemark
endif
if $h_From: contains "[email protected]"
then
save $home/Mail/paypal
endif
if $h_From: contains "untappd"
then
save $home/Mail/untappd
endif
if $h_From: contains "gandi"
then
save $home/Mail/gandi
endif
if $h_Subject: contains "Devops Weekly"
then
save $home/Mail/devops-weekly
endif
if $h_From: contains "wldemail.com"
then
save $home/Mail/badpeople/sexdirect
endif
if $h_From: contains "[email protected]"
then
save $home/Mail/dw
endif
if $h_From: contains "plus.google.com"
then
save $home/Mail/googleplus
endif
if $h_From: contains "postmaster@"
then
save $home/Mail/badpeople/postmaster
endif
if $h_From: contains "MAILER-DAEMON"
then
save $home/Mail/badpeople/postmaster
endif
if $h_To:,$h_CC: contains "ssenmodnar"
then
save $home/Mail/mailinglists/Randomness
endif
if $h_To:,$h_CC: contains "[email protected]" and not delivered
then
save $home/Mail/spam
endif
if $h_Subject: contains "*****SPAM*****" and not delivered
then
save $home/Mail/spam
endif
if $h_Subject: contains "Attempted spam edit on RGL" and not delivered
then
save $home/Mail/rglspam
endif
if $h_Sender: matches "overlycute.net" and not delivered
then
seen finish
endif
if $h_From: matches "dermalptch" and not delivered
then
seen finish
endif
if $h_From: matches "[email protected]" and not delivered
then
seen finish
endif
if $h_From: matches "recessionspecials" and not delivered
then
seen finish
endif
if $h_From: matches "horfinc" and not delivered
then
seen finish
endif
if $h_From: matches "comunikis.com" and not delivered
then
seen finish
endif
if $h_Sender: matches "([a-zA-Z-.]*)-admin@" and not delivered
then
save $home/Mail/mailinglists/$1
endif
if $h_Sender: matches "owner-([a-zA-Z-.]*)@" and not delivered
then
save $home/Mail/mailinglists/$1
endif
if $h_Sender: matches "([a-zA-Z-.]*)-bounces@" and not delivered
then
save $home/Mail/mailinglists/$1
endif
if $h_Mailing-List: matches "list ([a-zA-Z-.]*)@yahoogroups.com" and not delivered
then
save $home/Mail/mailinglists/$1
endif
if $h_List-Post: matches "mailto:([a-zA-Z-.]*)@" and not delivered
then
save $home/Mail/mailinglists/$1
endif
if $h_X-Mailing-List: matches "([a-zA-Z-.]*)@" and not delivered
then
save $home/Mail/mailinglists/$1
endif
#logfile $home/tmp/testlog
#logwrite $n9
if ("${lookup{${lc:$sender_address}} lsearch {/export/home/bob/.whitelist}{yes}{no}}" is "yes") and not delivered
then
save $home/Mail/realmail
endif
if ("${lookup{${lc:$sender_address}} lsearch {/export/home/bob/.whitelist.recruiters}{yes}{no}}" is "yes") and not delivered
then
save $home/Mail/jobs
endif
if $h_From: matches "[email protected]" and not delivered
then
save $home/Mail/realmail
endif
if $h_X-Spam-Score: contains "+++" and not delivered
then
save $home/Mail/badpeople/possiblespam
endif
if $h_From: matches "linkedin" and not delivered
then
save $home/Mail/linkedin
endif
if $h_From: matches "@flickr.com" and not delivered
then
save $home/Mail/flickr
endif
if $h_From: matches "[email protected]" and not delivered
then
save $home/Mail/googlealerts
endif
if $h_To: matches "[email protected]" and not delivered
then
save $home/Mail/isitpie
endif
if $h_From: contains "@twitter.com"
then
save $home/Mail/twitter
endif
if not delivered
then
if $h_To:,$h_CC: does not contain "[email protected]"
then
save $home/Mail/badpeople/$original_local_part
endif
# if personal alias [email protected]
# then
# mail
# to $reply_address
# subject "Re: $h_subject:"
# file $home/vacation/message
# once $home/vacation/once
# once_repeat 10d
## endif
endif