# A SAMPLE .PROCMAILRC FILE FOR NOVICES # # Written by Catherine Hampton # # Version 2.3 # Updated 07/20/2005 # # NOTE: THIS SAMPLE PROCMAIL CONFIGURATION FILE IS NOT PART OF # THE OFFICIAL SPAMBOUNCER DISTRIBUTION. IT IS PROVIDED AS A # CONVENIENCE FOR THOSE WHO ARE UNFAMILIAR WITH PROCMAIL. # # Those who know Procmail can write their own .procmailrc files, # or customize this to their heart's content. :) # # Released to the Public Domain. # # # VARIABLE SETTINGS SECTION # # Modify the variable settings here to fit your system. # SpamBouncer Configuration Defaults variable # # Change this to "Lite" if you want to reduce the SpamBouncer's # load on your system significantly. Change this to "Analyze" # if you want to check each spam against all internal lists of # known spammers, and don't mind a more loaded system and slower # delivery of email. # SBCONFIG=Default # SpamBouncer System Defaults variable # # Change this to "Solaris" if your server is a Sun system running # Solaris. Change this to "Sun" if your server is a Sun system # running SunOS. # SBSYSCHECK=Generic # Internal settings # # Don't mess with LINEBUF or VERBOSE unless you know what you are doing. # You can modify the PATH statement if there needs to be different or # other directories to programs that SpamBouncer uses. # LINEBUF=8096 PATH=${HOME}/bin:/bin:/usr/bin:/usr/local/bin VERBOSE=off # Variables for programs # # Make sure you set the proper paths for FORMAIL and SENDMAIL. # Different systems often put these programs in different # locations, so you *MUST* check this for your system. # # The other programs should be on your path if your PATH statement # is configured properly, but if you prefer to use specific versions # of theseprograms, you can explicitly set them to a particular path and # program name individually. # CAT=cat CD=cd DATE=date ECHO=echo EGREP=egrep FORMAIL=/usr/bin/formail GREP=fgrep LS=ls RM=rm SBHOST=host SED=sed SENDMAIL=/usr/sbin/sendmail SHELL=/bin/sh TEST=test TR=tr WHOIS=whois # Default local system settings # # Set the DOMAIN variable to your local domain. If you handle email # for more than one domain, choose the domain that your server uses # in DNS for its FQDN. (For example, if your server is named # mail.example.com, set DOMAIN=example.com, even if the # server handles email for example.net, example.org, and other # domains as well.) # DOMAIN=example.com # Default program & file locations # # Make sure that *ALL* of these are correct, or you'll really # screw up your mail delivery! (You will probably need to # create a directory named 'backup' inside of your MAILDIR # directory.) # DEFAULT=/var/mail/${LOGNAME} MAILDIR=${HOME}/Mail LOGFILE=${MAILDIR}/log SBDIR=${HOME}/.sb BACKUP=${MAILDIR}/backup # System Configuration files directory # # If you are doing a sitewide installation, set the SBSYSCFGDIR # variable to point to the directory where your sitewide # SpamBouncer configuration files are located. (The GLOBALNOBOUNCE # and LOCALHOSTFILE files.) Otherwise, leave this variable set # to the user's HOME directory. # SBSYSCFGDIR=${HOME} # GlobalNobounce # # If you are installing SpamBouncer sitewide, you can create a # systemwide whitelist file, and set the GLOBALNOBOUNCE variable # to point to it. # GLOBALNOBOUNCE=${SBSYSCFGDIR}/.globalnobounce # LOCALHOST file # # This file contains a list of all hosts in your system that # send, accept and/or process incoming email. It should # include the IP of this host, and any other host that email # might traverse. # # By default, the SpamBouncer looks in the user's HOME # directory for a file named .localhostfile, but if you are # doing a sitewide installation, you should use the same # LOCALHOSTFILE for all users. # LOCALHOSTFILE=${SBSYSCFGDIR}/.localhostfile # Spambouncer Configuration Settings # # Add variables for any blocklists, whitelists, or SpamBouncer features # you want to enable or disable here. I don't recommend turning on a # lot of extra blocklists, however. # ADMINFOLDER=${DEFAULT} ALTFROM=${LOGNAME}@${HOST}.${DOMAIN} BLOCKFOLDER=${MAILDIR}/blocked BLOCKLEVEL=5 BLOCKREPLY=SILENT BULKFOLDER=${DEFAULT} BYPASSWD=medv3d PATTERNMATCHING=SILENT SBDELIVERY=FILE SCRIPTCHECKING=no SPAMFOLDER=${MAILDIR}/spam SPAMLEVEL=20 VIRUSFOLDER=/dev/null ZIPCHECKING=yes # WHITELISTS # # Enable the following whitelists to allow email from # servers listed on them. It will reduce false positives without # appreciably increasing spam. # # Note: Bonded Sender Plus (BSPCHECK=yes) and the Habeas # Whitelist (HABEASVERIFIED=yes) are enabled by default. To # disable them, set the variables equal to "no". If you want # to relax the Bonded Sender setting to allow all opt-in # email rather than only confirmed opt-in email, you can set # IBSCHECK=yes. # # The IADB is enabled at the level "COI", which allows email from # servers that use confirmed opt-in methods only. If you # want to relax the setting further, you can set # IADBCHECK=OI to allow all opt-in email. If you want to # disable it, you can set IADBCHECK=no. # BSPCHECK=yes HABEASVERIFIED=yes IADBCHECK=COI IBSCHECK=no # DON'T EDIT ANYTHING BETWEEN THIS LINE AND THE LINE LOWER # DOWN THAT SAYS YOU CAN EDIT AGAIN. :) # Create a backup cache of 1000 most recent messages to catch # mistakes. # :0 c ${BACKUP} :0 ic | ${CD} ${BACKUP} && ${RM} -f dummy `${LS} -t msg.* | ${SED} -e 1,1000d` # Regenerate "From" lines :0 fhw | ${FORMAIL} -I "From " -a "From " # Call SpamBouncer, but make sure you skip any REALLY big emails # (over 2 MB) first, before they crash it. :) :0 f * > 2048000 | ${FORMAIL} -A"X-Note: Oversize/Not Filtered" :0 E { INCLUDERC=${SBDIR}/sb.rc } # OKAY, YOU CAN EDIT AGAIN. :) # Do whatever you do to deliver the email below. If you want, # you can change the SBDELIVERY variable to SBDELIVERY=FILTER # and uncomment the INCLUDERC line below. Modify the line to # point to the directory where you store your auxiliary Procmail # scripts. (Should not be in your HOME directory.) # # Otherwise, write your own delivery scripts! # INCLUDERC=${HOME}/procmail/delivery.rc