Differences between revisions 11 and 23 (spanning 12 versions)
Revision 11 as of 2007-05-31 09:24:18
Size: 3484
Editor: RainerSigl
Comment:
Revision 23 as of 2009-07-15 14:34:35
Size: 3193
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:

 * storing or dropping tagged Spam messages depending on the score
Line 5: Line 7:
 * storing or dropping tagged Spam messages depending on the score
 
Line 9: Line 10:
Login in [https://mpemail.mpe.mpg.de/tpl MPE mailer user interface] and choose menue 'Edit Filter' Login to [[https://mail.mpe.mpg.de/tpl|MPE mail user interface https://mail.mpe.mpg.de/tpl]] and choose menu 'Edit Filter'
Line 11: Line 12:
Remark:
 * Mailfolders are generated automatically
 * After finish editing a filter a syntax check is performed. If any errors a error message will be displayed and the old filter is not overwritten. The editor keeps your edited product.

 * when clicking the 'save' button a syntax check is performed. If no errors where found, the new filter rules are installed
 * use the 'default' button to reload the MPE default filter setup
 * use the 'back' button to go back to the main menu
 
Line 17: Line 20:
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. 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 uncomment the following lines in order to enable/disable functionalities.
Line 20: Line 23:
#Exim filter[[BR]]
#[[BR]]
#Exim filter<<BR>>
#<<BR>>
#if $header_from: contains "myimportantfromaddress" then<<BR>>
#save /home/virtual_mail/$local_part/<<BR>>
#finish<<BR>>
#endif<<BR>>
Line 23: Line 30:
#if $h_x-spam-level: begins "********" then[[BR]]
#seen finish[[BR]]
#endif[[BR]]
#[[BR]]
#if $h_x-spam-level: begins "********" then<<BR>>
#seen finish<<BR>>
#endif<<BR>>
#<<BR>>
Line 28: Line 35:
if $h_x-spam-level: begins "****" then [[BR]]
save /home/virtual_mail/$local_part/.Spam/[[BR]]
endif[[BR]]
#[[BR]]
if $h_x-spam-level: begins "****" then <<BR>>
save /home/virtual_mail/$local_part/.Spam/<<BR>>
endif<<BR>>
#<<BR>>
Line 33: Line 40:
#if $h_from: contains "virusalert@rzg.mpg.de" then[[BR]]
#seen finish[[BR]]
#endif[[BR]]
#if $h_from: contains "virusalert@rzg.mpg.de" then<<BR>>
#seen finish<<BR>>
#endif<<BR>>
Line 37: Line 44:
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. Please note that the first line has to begin with a '#Exim filter' line. The filter is executed sequential from up to down.
Line 39: Line 46:
 1 the first commented block allows to drop Spams with a certain level  1 the first '''commented''' block allows to tunnel certain from-addresses direct to your inbox without scanning for spams
Line 41: Line 48:
 2 the second active block stores all spams from 4 * and more in special Folder 'Spam'  2 the second '''commented''' block allows to drop Spams with a certain level
Line 43: Line 50:
 3 the third commented block allows to drop Mails with a certain from-Address  3 the third '''active''' block stores all spams from 4 * and more in special Folder 'Spam'
Line 45: Line 52:
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" then[[BR]]
save /home/virtual_mail/$local_part/[[BR]]
finish[[BR]]
endif[[BR]]

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".
 4 the forth '''commented''' block allows to drop Mails with a certain from-Address
Line 57: Line 58:
further information for writing filters can be found in [http://www.exim.org/exim-html-current/doc/html/filter.html exim filter specs]
Line 59: Line 59:
== commands and variables ==
 * $header_from
 * $header_subject
 * $sender_address The sender address that was received in the envelope of the message
 * $reply_address The contents of the Reply-to: header, if the message has one; otherwise the contents of the From: header.
 * $return_path The return path – that is, the sender field that will be transmitted as part of the message’s envelope if the message is sent to another host.
Line 66: Line 60:
[[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.
== variables ==
 * '''$header_from''' the sender address
 * '''$header_subject''' the sender subject
 * '''$sender_address''' the sender address that was received in the envelope of the message
 * '''$reply_address''' the contents of the Reply-to: header, if the message has one; otherwise the contents of the From: header.
 * '''$return_path''' the return path – that is, the sender field that will be transmitted as part of the message’s envelope if the message is sent to another host.
== commands ==

 || save /home/virtual_mail/$local_part/ || '''store email in your inbox'''||
 || save /home/virtual_mail/$local_part/.xxx (note the dot preceding the foldername; folders are created automatically if not available) || '''store email in folder xxx''' ||
 || finish || '''drop email and stop mail processing''' ||

<<BR>>


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

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:

  • storing or dropping tagged Spam messages depending on the score
  • putting mails from certain senders or with special subjects in different folders as inbox

Calling the Filter Editor

Login to MPE mail user interface https://mail.mpe.mpg.de/tpl and choose menu 'Edit Filter'

  • when clicking the 'save' button a syntax check is performed. If no errors where found, the new filter rules are installed
  • use the 'default' button to reload the MPE default filter setup
  • use the 'back' button to go back to the main menu

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 uncomment the following lines in order to enable/disable functionalities.

#Exim filter
#
#if $header_from: contains "myimportantfromaddress" then
#save /home/virtual_mail/$local_part/
#finish
#endif

#if $h_x-spam-level: begins "********" then
#seen finish
#endif
#

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

#if $h_from: contains "virusalert@rzg.mpg.de" then
#seen finish
#endif

Please note that the first line has to begin with a '#Exim filter' line. The filter is executed sequential from up to down.

  • 1 the first commented block allows to tunnel certain from-addresses direct to your inbox without scanning for spams

    2 the second commented block allows to drop Spams with a certain level

    3 the third active block stores all spams from 4 * and more in special Folder 'Spam'

    4 the forth commented block allows to drop Mails with a certain from-Address

variables

  • $header_from the sender address

  • $header_subject the sender subject

  • $sender_address the sender address that was received in the envelope of the message

  • $reply_address the contents of the Reply-to: header, if the message has one; otherwise the contents of the From: header.

  • $return_path the return path – that is, the sender field that will be transmitted as part of the message’s envelope if the message is sent to another host.

commands

  • save /home/virtual_mail/$local_part/

    store email in your inbox

    save /home/virtual_mail/$local_part/.xxx (note the dot preceding the foldername; folders are created automatically if not available)

    store email in folder xxx

    finish

    drop email and stop mail processing


further information for writing filters can be found in the exim filter specs

IT: MailConfigFilters (last edited 2009-07-15 14:34:35 by localhost)