Configure User specific Filters for MPE's Mail Services

Each user has the opportunity to preprocess his incoming mail stream by a filter. Usual applications are:

Calling the Filter Editor

Login in [https://mpemail.mpe.mpg.de/tpl MPE mailer user interface] and choose menue 'Edit Filter'

Remark:

the standard filter as a example

The standard filter contents is copied automatically to a new user's environment. Take this contents as a template to construct your personal filter. Feel free to comment or discomment the given lines in order to enable/disable functionalities.

#Exim filterBR #BR

#if $h_x-spam-level: begins "********" thenBR #seen finishBR #endifBR #BR

if $h_x-spam-level: begins "****" then BR save /home/virtual_mail/$local_part/.Spam/BR endifBR #BR

#if $h_from: contains "virusalert@rzg.mpg.de" thenBR #seen finishBR #endifBR

Please notice that each filter has to start with a '#Exim filter' line. Another mode can be '#Sieve Filter'. But information about this exceeds the scale of this page.

If you would like to preselect a certain from-address before the spam-filter drops the email write at the beginning, before the spam-checks in your filter:BR if $header_from: contains "myimportantfromaddress" thenBR save /home/virtual_mail/$local_part/BR finishBR endifBR

these statements mean that mails from "myimportantfromaddress" are stored in the standard inbox and any further filter processing is stopped with the 'finish' like a break in "C".

further information for writing filters can be found in [http://www.exim.org/exim-html-current/doc/html/filter.html exim filter specs]

commands and variables

BR The sequence save /home/virtual_mail/$local_part/.xxx is a important statement in the filter which tells exim to store the acutal email in the named folder, in this case the folder xxx and not in the default inbox. For the foldername you can use any name. The folder is created automatically in case it is not available. Notify the dot before the foldername. The rest of the pass is binding and expresses the real path on the mail server. $local_part always contains your username.