2013-12-28 22:13:31 +00:00
|
|
|
PATH=/bin:/usr/bin
|
|
|
|
#On perd les privilèges si on en a
|
|
|
|
DROPPRIVS=yes
|
|
|
|
MAILDIR=$HOME/Maildir
|
2014-08-29 15:32:09 +00:00
|
|
|
|
2013-12-28 22:13:31 +00:00
|
|
|
SPAMBOX=.SPAM/cur
|
2014-09-13 16:35:21 +00:00
|
|
|
UNIGEBOX=.UNIGE/cur
|
|
|
|
DEVNULLBOX=.DEVNULL/cur
|
|
|
|
BITFLIPBOX=.BITFLIP/cur
|
|
|
|
MAILINGLISTS_USELESS=.MLUSELESS/cur
|
2013-12-28 22:13:31 +00:00
|
|
|
DEFAULT=$HOME/Maildir/
|
|
|
|
LOGFILE=$HOME/procmail.log
|
2014-08-04 21:19:50 +00:00
|
|
|
VERBOSE=ON
|
2013-12-30 19:41:36 +00:00
|
|
|
SED=/bin/sed
|
2014-08-22 11:00:41 +00:00
|
|
|
VACATION="no"
|
2013-12-28 22:13:31 +00:00
|
|
|
|
2014-08-05 16:04:15 +00:00
|
|
|
|
|
|
|
#DEBUT SPAM
|
|
|
|
#
|
|
|
|
#{{{
|
2013-12-28 22:13:31 +00:00
|
|
|
# Spam à la poubelle.
|
|
|
|
#:0
|
|
|
|
# * ^Subject:.*(credit|cash|money|debt|sex|sale|loan)
|
|
|
|
# $MAILDIR/.SPAM/new
|
2014-07-21 14:06:37 +00:00
|
|
|
|
2015-11-20 09:22:38 +00:00
|
|
|
:0
|
|
|
|
* ^Subject:\*\*\*\*\*SPAM\*\*\*\*\*.*
|
|
|
|
$MAILDIR/.SPAM/new
|
|
|
|
|
2014-08-29 15:25:49 +00:00
|
|
|
:0
|
|
|
|
* ^Subject:.*Finance News.*Investment.*returns
|
|
|
|
$MAILDIR/.SPAM/new
|
|
|
|
|
2015-10-14 12:53:06 +00:00
|
|
|
#Univ-savoie fucking spam
|
|
|
|
:0
|
|
|
|
* ^From:.*2univ-savoie.com.*
|
|
|
|
$MAILDIR/.SPAM/new
|
|
|
|
|
2015-03-23 16:53:07 +00:00
|
|
|
:0
|
|
|
|
* ^From:.*diffusion-messages.com
|
|
|
|
$MAILDIR/.SPAM/new
|
|
|
|
|
2014-05-28 15:59:30 +00:00
|
|
|
#Out EachBuyer
|
|
|
|
:0
|
|
|
|
* ^From:.*EachBuyer.*
|
2014-08-29 15:32:09 +00:00
|
|
|
$DEVNULLBOX
|
2014-05-28 15:59:30 +00:00
|
|
|
|
2014-08-22 11:41:42 +00:00
|
|
|
#Out Bug me not
|
|
|
|
:0
|
|
|
|
* ^To:.*bugmenot@vi-di.fr.*
|
2014-08-29 15:32:09 +00:00
|
|
|
$DEVNULLBOX
|
2014-08-22 11:41:42 +00:00
|
|
|
|
2014-06-30 17:57:19 +00:00
|
|
|
#TVShow time: I dont fucking care
|
|
|
|
:0
|
|
|
|
* ^From:.*weekly@tvshowtime.com.*
|
2014-08-29 15:32:09 +00:00
|
|
|
$DEVNULLBOX
|
2014-06-30 17:57:19 +00:00
|
|
|
|
2014-05-28 15:59:30 +00:00
|
|
|
#Acycles: spam de merde
|
|
|
|
:0
|
|
|
|
* ^To:.*acycles@vi-di.fr.*
|
2014-08-29 15:32:09 +00:00
|
|
|
$DEVNULLBOX
|
2014-05-28 15:59:30 +00:00
|
|
|
|
2014-06-24 11:03:18 +00:00
|
|
|
#Eurovox fuck-you
|
|
|
|
:0
|
|
|
|
* ^To:.*eurovox@vi-di.fr.*
|
2014-08-29 15:32:09 +00:00
|
|
|
$DEVNULLBOX
|
2014-06-24 11:03:18 +00:00
|
|
|
|
2014-05-28 15:59:30 +00:00
|
|
|
#Jesigne de merde
|
|
|
|
:0
|
|
|
|
* ^From:.*signature@jesigne.fr.*
|
2014-08-29 15:32:09 +00:00
|
|
|
$DEVNULLBOX
|
2013-12-28 22:13:31 +00:00
|
|
|
|
2014-01-16 12:11:17 +00:00
|
|
|
#Out MesOpinions
|
|
|
|
:0
|
|
|
|
* ^To:.*mesopinions@vi-di.fr.*
|
2014-08-29 15:32:09 +00:00
|
|
|
$DEVNULLBOX
|
2014-01-16 12:11:17 +00:00
|
|
|
|
2014-06-17 15:21:35 +00:00
|
|
|
#Out MarcelFuckingGreen
|
|
|
|
:0
|
|
|
|
* ^From:.*Marcel Green.*
|
2014-08-29 15:32:09 +00:00
|
|
|
$DEVNULLBOX
|
2014-06-17 15:21:35 +00:00
|
|
|
|
2014-05-21 17:40:43 +00:00
|
|
|
:0
|
|
|
|
* ^From:.*Pourmonbureau.com.*
|
|
|
|
$SPAMBOX
|
|
|
|
|
|
|
|
:0
|
|
|
|
* ^From:.*Masterstudies.com.*
|
2014-08-29 15:32:09 +00:00
|
|
|
$DEVNULLBOX
|
2014-05-21 17:40:43 +00:00
|
|
|
|
2014-10-03 14:28:12 +00:00
|
|
|
:0
|
|
|
|
* ^To:.*masterstudies@vi-di.fr.*
|
|
|
|
$DEVNULLBOX
|
|
|
|
|
2014-05-15 12:44:48 +00:00
|
|
|
:0
|
|
|
|
* ^To:.*contact@vi-di.fr.*
|
|
|
|
* ^Subject:.*VIDI.*
|
|
|
|
$SPAMBOX
|
|
|
|
|
|
|
|
:0
|
|
|
|
* From:.*news@offres-professionnelles.*
|
2014-08-29 15:32:09 +00:00
|
|
|
$DEVNULLBOX
|
2014-05-15 12:44:48 +00:00
|
|
|
|
2013-12-28 22:13:31 +00:00
|
|
|
#Out bons de réduction
|
|
|
|
:0
|
|
|
|
* ^From: .*bons-de-reduction*
|
|
|
|
$SPAMBOX
|
|
|
|
|
2015-02-25 09:38:32 +00:00
|
|
|
#Out myled.com
|
|
|
|
:0
|
|
|
|
* ^From: .*MyLED.com.*
|
|
|
|
$SPAMBOX
|
|
|
|
|
2014-01-19 11:13:17 +00:00
|
|
|
#Out directindustry
|
2014-07-21 14:06:37 +00:00
|
|
|
:0
|
2014-01-19 11:13:17 +00:00
|
|
|
* ^From:.*Directindustry.*
|
|
|
|
$SPAMBOX
|
|
|
|
|
2013-12-28 22:13:31 +00:00
|
|
|
#Out facebook
|
|
|
|
:0
|
|
|
|
* ^From: .*Facebook*
|
|
|
|
$SPAMBOX
|
|
|
|
|
|
|
|
#Out Twitter
|
|
|
|
:0
|
|
|
|
* ^From: .*Twitter*
|
|
|
|
$SPAMBOX
|
|
|
|
|
|
|
|
#Out client EDF
|
|
|
|
:0
|
|
|
|
* ^From: .*Votre espace Client EDF*
|
|
|
|
$SPAMBOX
|
|
|
|
|
|
|
|
#Out wolfram
|
|
|
|
:0
|
|
|
|
* ^From: .*insider@wolfram.com.
|
|
|
|
$SPAMBOX
|
|
|
|
|
|
|
|
#Out emailbrokers
|
|
|
|
:0
|
2014-06-24 11:03:18 +00:00
|
|
|
* ^From: .*mailBrokers*
|
2013-12-28 22:13:31 +00:00
|
|
|
$SPAMBOX
|
|
|
|
|
|
|
|
:0
|
|
|
|
* ^To:.*votatiolycenne@villaro-dixon.eu
|
2014-08-29 15:32:09 +00:00
|
|
|
$DEVNULLBOX
|
2013-12-28 22:13:31 +00:00
|
|
|
|
|
|
|
:0
|
|
|
|
* ^Subject:.*Voici le listing des.*fonction.*
|
|
|
|
$SPAMBOX
|
|
|
|
|
|
|
|
:0
|
|
|
|
* ^Subject:.*vid-i.com.*
|
|
|
|
$SPAMBOX
|
|
|
|
|
2014-07-21 14:06:37 +00:00
|
|
|
:0
|
|
|
|
*^To:.*email_list@test.villaro.ch.*
|
|
|
|
$SPAMBOX
|
|
|
|
|
2014-01-20 17:42:52 +00:00
|
|
|
#WTF is this shit ?
|
|
|
|
:0
|
|
|
|
* ^From:.*newfrog.*
|
|
|
|
$SPAMBOX
|
2014-02-08 16:52:37 +00:00
|
|
|
:0
|
2014-02-10 17:19:07 +00:00
|
|
|
* ^From:.*FoxNews.*
|
2014-02-08 16:52:37 +00:00
|
|
|
$SPAMBOX
|
2014-02-13 10:16:18 +00:00
|
|
|
:0
|
|
|
|
* ^Subject:.*BREAKING.*NEWS.*
|
|
|
|
$SPAMBOX
|
2014-02-13 14:24:19 +00:00
|
|
|
:0
|
|
|
|
* ^To:.*tor@villaro-dixon.eu.*
|
|
|
|
* ^Subject:.*(F|f)inance.*
|
|
|
|
$SPAMBOX
|
2014-01-20 17:42:52 +00:00
|
|
|
|
2014-02-24 20:17:49 +00:00
|
|
|
|
2013-12-28 22:13:31 +00:00
|
|
|
#I don't need-it :D
|
|
|
|
:0
|
|
|
|
* ^From:.*(Viiagra|Viaggra|Viagrra|Viagra).*
|
|
|
|
$SPAMBOX
|
2014-01-20 17:42:52 +00:00
|
|
|
|
2013-12-28 22:13:31 +00:00
|
|
|
:0
|
2014-01-27 17:18:29 +00:00
|
|
|
* ^From:.*(Pfizer|Pfizzer|Pfiizer|Prizer).*
|
2013-12-28 22:13:31 +00:00
|
|
|
$SPAMBOX
|
|
|
|
|
|
|
|
#Stupid fucking viagra
|
|
|
|
:0
|
|
|
|
* ^X-Mailer: Airmail.*
|
2014-01-20 09:55:57 +00:00
|
|
|
* ^X-Original-To:.*tor.*
|
|
|
|
$SPAMBOX
|
|
|
|
|
|
|
|
#Out fcking ads
|
2014-07-21 14:06:37 +00:00
|
|
|
:0
|
2014-01-20 09:55:57 +00:00
|
|
|
* ^To:.*tor@vi-di.fr.*
|
|
|
|
* ^From:.*(Prizer|Prizer).*
|
|
|
|
* ^Subject:.*(S|s)av(ings|e).*
|
2013-12-28 22:13:31 +00:00
|
|
|
$SPAMBOX
|
|
|
|
|
2015-02-25 09:38:32 +00:00
|
|
|
##Russian spams
|
|
|
|
:0
|
|
|
|
* ^To:.*tor@vi-di.fr.*
|
|
|
|
* ^Subject:.*(п|и|я).*
|
|
|
|
$SPAMBOX
|
|
|
|
|
2014-02-07 17:33:21 +00:00
|
|
|
#out edaboard
|
2014-07-21 14:06:37 +00:00
|
|
|
:0
|
2014-02-07 17:33:21 +00:00
|
|
|
* ^To:.*edaboard@vi-di.fr.*
|
2014-08-29 15:32:09 +00:00
|
|
|
$DEVNULLBOX
|
2014-02-07 17:33:21 +00:00
|
|
|
|
2014-01-27 17:18:29 +00:00
|
|
|
#Out discounts
|
2014-07-21 14:06:37 +00:00
|
|
|
:0
|
2014-01-27 17:18:29 +00:00
|
|
|
* ^To:.*tor@vi-di.fr.*
|
|
|
|
* ^From: American Health Store.*
|
|
|
|
$SPAMBOX
|
|
|
|
|
2014-08-04 21:19:11 +00:00
|
|
|
#Out scammers
|
|
|
|
:0 B
|
|
|
|
* sum
|
|
|
|
* (British Pounds|dollars)
|
|
|
|
* bank
|
|
|
|
* reply
|
|
|
|
* financial
|
|
|
|
* deal
|
|
|
|
* wife
|
|
|
|
* deposit
|
|
|
|
$SPAMBOX
|
|
|
|
|
2014-10-07 20:12:22 +00:00
|
|
|
:0 B
|
|
|
|
* Dear
|
|
|
|
* illion
|
|
|
|
* lottery
|
|
|
|
* immediately
|
|
|
|
* information
|
|
|
|
* contact
|
|
|
|
* fund
|
|
|
|
$SPAMBOX
|
|
|
|
|
2014-08-04 21:19:11 +00:00
|
|
|
|
2014-08-07 00:31:58 +00:00
|
|
|
:0 B
|
2013-12-28 22:13:31 +00:00
|
|
|
* petroleum
|
|
|
|
* spill
|
|
|
|
* oil
|
|
|
|
$SPAMBOX
|
2014-02-24 20:17:49 +00:00
|
|
|
:0 B
|
|
|
|
* oil
|
|
|
|
* painting
|
|
|
|
* (photo|image)
|
|
|
|
* qq.com
|
|
|
|
* frank
|
|
|
|
$SPAMBOX
|
2013-12-28 22:13:31 +00:00
|
|
|
|
2014-02-04 16:44:19 +00:00
|
|
|
#out russian dating
|
|
|
|
:0 B
|
|
|
|
* (R|r)ussian
|
|
|
|
* (W|w)oman
|
|
|
|
* (single|dating)
|
|
|
|
$SPAMBOX
|
|
|
|
|
2014-05-15 12:41:05 +00:00
|
|
|
#Out fucking oil paintings
|
|
|
|
:0 B
|
|
|
|
* oil
|
|
|
|
* painting
|
|
|
|
* pictures
|
|
|
|
* item
|
|
|
|
$SPAMBOX
|
|
|
|
|
2014-08-29 15:34:22 +00:00
|
|
|
:0 B
|
|
|
|
* Salary
|
|
|
|
* Engineer
|
|
|
|
* money
|
|
|
|
* Electronics
|
|
|
|
$SPAMBOX
|
|
|
|
|
2014-08-05 16:04:15 +00:00
|
|
|
#}}}
|
|
|
|
|
2013-12-28 22:13:31 +00:00
|
|
|
|
2014-08-22 11:06:55 +00:00
|
|
|
#Filtering of things I don't care
|
2014-08-28 16:37:55 +00:00
|
|
|
##PTL things
|
2014-08-22 11:06:55 +00:00
|
|
|
:0
|
|
|
|
* ^To: .*ptl@posttenebraslab.ch.*
|
2014-09-13 16:34:05 +00:00
|
|
|
* ^Subject:.*(Menu|Dinner|is open|ouvert|is closed).*
|
2014-08-29 15:32:09 +00:00
|
|
|
$MAILINGLISTS_USELESS
|
2014-08-22 11:06:55 +00:00
|
|
|
|
2013-12-28 22:13:31 +00:00
|
|
|
:0
|
|
|
|
* ^To: .*bit_flipping@villaro-dixon.eu.*
|
|
|
|
$BITFLIPBOX
|
|
|
|
|
2015-02-24 20:50:11 +00:00
|
|
|
:0
|
|
|
|
* ^From:.*MailCleaner.*
|
|
|
|
$DEVNULLBOX
|
|
|
|
|
2014-08-05 16:04:15 +00:00
|
|
|
#Mailing lists mal foutues
|
|
|
|
#{{{
|
2013-12-28 22:13:31 +00:00
|
|
|
:0
|
|
|
|
* ^Resent-From:.*frank.villaro@etu.unige.ch.*
|
|
|
|
* ^To:.*aei@listes.unige.ch.*
|
2014-08-29 15:32:09 +00:00
|
|
|
$MAILINGLISTS_USELESS
|
2013-12-28 22:13:31 +00:00
|
|
|
|
2014-01-15 20:02:19 +00:00
|
|
|
:0
|
|
|
|
* ^To:.*aei@listes.unige.ch.*
|
2014-01-15 20:04:47 +00:00
|
|
|
* ^X-Original-To:.*frank_mail@villaro-dixon.eu.*
|
2014-08-29 15:32:09 +00:00
|
|
|
$MAILINGLISTS_USELESS
|
2014-08-05 16:04:15 +00:00
|
|
|
#}}}
|
|
|
|
|
|
|
|
#Auto formating des signatures de ML mal foutues
|
|
|
|
#{{{
|
2014-01-15 20:02:19 +00:00
|
|
|
|
2013-12-30 19:41:36 +00:00
|
|
|
#taken from bethesignal.org; thanks ;)
|
|
|
|
:0 fBw
|
2014-07-21 14:06:37 +00:00
|
|
|
* ^--$
|
|
|
|
| $SED -e 's/^--$/-- /'
|
2013-12-30 19:41:36 +00:00
|
|
|
|
|
|
|
:0 fBw
|
2014-07-21 14:06:37 +00:00
|
|
|
* ^_______________________________________________$
|
|
|
|
| $SED -e 's/^_______________________________________________$/-- /'
|
2013-12-30 19:41:36 +00:00
|
|
|
|
2014-01-10 14:06:08 +00:00
|
|
|
:0 fBw
|
2014-07-21 14:06:37 +00:00
|
|
|
* ^________________________________$
|
|
|
|
| $SED -e 's/^________________________________$/-- /'
|
2014-01-10 14:06:08 +00:00
|
|
|
|
2014-01-06 13:18:06 +00:00
|
|
|
:0 fBw
|
2014-07-21 14:06:37 +00:00
|
|
|
* ^---------------------------$
|
|
|
|
| $SED -e 's/^---------------------------$/-- /'
|
2014-08-05 16:04:15 +00:00
|
|
|
#}}}
|
2014-01-06 13:18:06 +00:00
|
|
|
|
2013-12-30 19:41:36 +00:00
|
|
|
|
2013-12-28 22:13:31 +00:00
|
|
|
#:0c
|
|
|
|
# * ^From: *Service messagerie*
|
|
|
|
# ! email1 email2 email3 MARCHE PAS !
|
|
|
|
|
2014-08-05 16:09:00 +00:00
|
|
|
#:0:
|
|
|
|
# $DEFAULT
|
|
|
|
|
|
|
|
SENDMAIL=/usr/lib/sendmail
|
|
|
|
|
|
|
|
#:0 Whc: .vacation.lock
|
|
|
|
#* !^FROM_DAEMON
|
|
|
|
#* !^X-Loop: frank@villaro-dixon.eu
|
|
|
|
#| formail -rD 8192 .vacation.cache
|
|
|
|
|
|
|
|
#Mailer chaque user une seule fois
|
|
|
|
#:0 ehc # if the name was not in the cache
|
|
|
|
#| (formail -rA"Precedence: junk" \
|
|
|
|
#-A"X-Loop: frank@villaro-dixon.eu" ; \
|
|
|
|
#cat $HOME/.vacation.msg; \
|
|
|
|
#echo "-- "; \
|
|
|
|
#cat $HOME/.signature \
|
|
|
|
#) | $SENDMAIL -oi -t
|
|
|
|
|
2014-08-07 00:31:58 +00:00
|
|
|
:0 wc
|
|
|
|
* VACATION ?? yes
|
|
|
|
| /usr/bin/vacation -a frank $LOGNAME
|