# Exim filter << DO NOT REMOVE THIS LINE # #C# Sample exim filter file. #C# This file is for users who read their email on the Maths, #C# Statslab, DPMMS or DAMTP system. It is not for Hermes users, who #C# can filter and redirect their email and set up vacation messages #C# via Hermes webmail. Parts of it should be usable on any system #C# which uses exim for mail delivery, although we cannot support #C# systems outside the CMS. #C# All commands in this file are commented out, with a #. #C# To activate a line remove the # from the start of it. #C# Lines starting with #C# are not valid commands and should be #C# left alone. #C# Any line starting with a "#" is a comment and ignored by the system. #C# To comment a line put a "#" before it, to uncomment it remove the "#" #C# FORWARDING EMAIL #C# If you would like to keep a copy of your email locally and forward #C# another off site, uncomment the unseen deliver line below and change #C# the email address to your off site email address. #unseen deliver you@your.email.address #C# Uncomment the line below if you would like to forward your email #C# to another site temporarily. #deliver you@your.email.address #C# To permanently forward your email off site, email help with your remote #C# email address and we will add it to the system alias file. #C# SPAM FILTERING #C# Increase the number of s's for less strict spam filtering #C# Decrease the number of s's for stricted filtering # if $h_X-Cam-SpamScore # contains ssssss then # save mail/spam # seen finish #endif #C# FORWARDING AFTER SPAM FILTERING #C# If you would prefer to filter the spam first and only forward #C# the email not considered to be spam, uncomment one of the #C# two lines below, changing the email address to yours. #C# The first line forwards your email and keeps a local copy. #C# The second only forwards the email. #unseen deliver you@your.email.address #deliver you@your.email.address #C# VACATION MESSAGES aka Out of office autoreply #C# Be sure to include one alias statement for each email address #C# which goes to your Maths account and which people are likely to #C# use. The only email addresses which will be recognised as #C# personal without an alias statement are of the form #C# abs99@(statslab|dpmms|damtp|maths).cam.ac.uk. #C# Change the from line to include your own name and email address. #C# If you omit it altogether then your vacation messages will come #C# from abs99@maths.cam.ac.uk. #C# Change the message for vacation subject if you like. #C# Also create a file called .vacation.msg and in it put #C# a message to reply to the emails with. #C# The once_repeat line is how frequently in days the vacation message is #C# sent to the same sender. This number can be changed eg 1d, for #C# once a day. #C# To enable your vacation message uncomment the section below. #C# To disable your vacation message comment it out again. #if personal alias A.B.Surname@statslab.cam.ac.uk # alias abs99@cam.ac.uk #then # vacation subject "Away from my mail" # from "A B Surname " # once_repeat 7d #endif #C# FILING EMAIL INTO SEPARATE FOLDERS AUTOMATICALLY #C# This will file all mail from user@email.address in the maths #C# folder (rather than your inbox). #C# Change the address and folder name to suit yourself. #C# You can also filter on other headers e.g. Subject, and you #C# can have more than one filter block like this. #if $header_From: matches user@email.address then # save mail/maths # seen finish #endif #C# GETTING RID OF UNWANTED EMAIL FROM A CERTAIN ADDRESS #C# Change user@email.address to the address you are blocking. #C# This will quietly throw away all email from that user. #C# Uncomment the 3 lines below to implement. Copy them to use with #C# more than one address. #if $header_From: matches user@email.address then # seen finish #endif