1 #################################################
3 # This is the main procmail file with common SPAM recipes
4 # Based on the article at
5 # http://www.ncworldmag.com/ncw-05-1998/ncw-05-imap.html
8 # First we define some basics
13 # We define DELIVERTO just to prevent a lot of extra
14 # typing later on. We define SPAMIT to prevent even more
15 # repetitive typing, as it's the same action for every user.
16 # This assumes we set up a SPAM folder right off the INBOX
17 # for every user on the system. If we neglect to do that, we'll
18 # get in a bit of trouble.
20 DELIVERTO=/usr/cyrus/bin/deliver-wrapper
21 SPAMIT="$DELIVERTO user.$LOGNAME.SPAM"
23 # This file includes the appropriate procmail.$LOGNAME
24 # file so that each user has his or her own recipe techniques
25 # for subscribed lists, e-mail alerts, etc.
27 # Before we begin any recipes, let's make a backup
28 # copy of any incoming mail.
30 # Remember to comment out the next recipe once
31 # you know everything is working fine, otherwise
32 # you'll fill up the backup directory very quickly.
33 # Some procmail tutorials demonstrate how you can
34 # set a quota on the backup directory so that you can
35 # leave it in force at all times.
38 | $DELIVERTO user.$LOGNAME.Backup
40 ###############################
41 # If there used to be an existing system-wide procmailrc, you can
43 #INCLUDERC=/etc/procmailrc
45 # We shouldn't be running as a privileged user, but just in case,
46 # make sure we drop any privileges we have
49 ###############################
50 # If users want to be able to define their own private recipes
51 # and put them in their home .procmailrc files, comment out
52 # the next definition.
54 # These recipes will be processed BEFORE the user-specific
55 # recipes that are kept in the /home/cyrus directory
57 # setup some variables, before we start
58 ALERTSBOX=user.$LOGNAME.Folders.Alerts
59 LISTSBOX=user.$LOGNAME.Folders.Lists
61 INCLUDERC=$HOME/.procmailrc
63 # If you want to define user-specific recipes that
64 # you manage centrally (perhaps because you don't want
65 # to allow your users to "roll their own," then
66 # uncomment the following line. In this case, you have
67 # to create a file for each user in the form:
68 # procmail.username -- for example, procmail.Joe
70 # INCLUDERC=/usr/cyrus/etc/procmail.$LOGNAME
72 #############################
73 # Now we begin our recipes
75 #############################
76 # Email-specific SPAM recipes
79 #### NOTE: surely cyrus 'deliver' does its own locking? There should
80 #### thus be no need for :0:$LOGNAME.lock
83 * ^To:.*anyplace@juno.com
86 #############################
87 # General SPAM Recipes
88 # Here are a few examples
90 # The "To:" line doesn't exist
96 # The "To:" line is empty
102 # The "From:" line is empty
108 #############################
109 # All the mail that falls
110 # through the above recipes
111 # will be put into the user's
112 # inbox. This is always the LAST
113 # recipe to appear in the file.
116 | $DELIVERTO user.$LOGNAME
118 # If that fails - maybe because the user is out of quota, or the mailbox
119 # hasn't been created - then force a bounce (otherwise the message would
120 # get silently appended to /var/spool/mail/$LOGNAME).
122 # This is EX_CANTCREAT (Can't create output)
128 # End of procmailrc file
129 ##############################