User Tools

Site Tools


procmail

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
procmail [2018/09/25 10:44] jansenprocmail [2023/07/28 13:24] (current) jansen
Line 1: Line 1:
 +It is possible, and allowed, to forward (most of) your mail to an external mail server. However, the university has put in plkace a mail forwarding policy about mail marked as confidential, see here for the [[strw:mailforward|STRW]] & [[lion:forwarding|LION]] implementation of that policy.
 +
 ====== Mail filtering and forwarding using procmail ====== ====== Mail filtering and forwarding using procmail ======
  
Line 6: Line 8:
 To get started, create a file called ''.procmailrc'' in your home directory, or install our [[procmailrc template]] using ''SfinxInstall .procmailrc''. The template comes with the most common settings, documented in comments. Also included are some other useful settings that you may want, which are commented out and can be enabled by removing the ''#'' at the beginning of these lines. To get started, create a file called ''.procmailrc'' in your home directory, or install our [[procmailrc template]] using ''SfinxInstall .procmailrc''. The template comes with the most common settings, documented in comments. Also included are some other useful settings that you may want, which are commented out and can be enabled by removing the ''#'' at the beginning of these lines.
  
-The ''.procmailrc'' is a text file, so it can be edited in all the usual [[editors]]. +The ''.procmailrc'' is a text file, so it can be edited in all the usual [[linux:software_categories#editors]]. 
  
 A simple mail forwarding rule (provided in a comment in the template file) will look like this: A simple mail forwarding rule (provided in a comment in the template file) will look like this:
  
   :0   :0
-    ! your_address@example.com+    ! your_ulcn_address@umail.leidenuniv.nl
  
 If you decide to **forward** your mail to another mail account, please make sure the lines are in place that filter out known spam. Spam forwarded to elsewhere sometimes cause our mailserver to be blacklisted as suspected source of spam, and in such cases, we will be forced to remove your forwarding rules. If you decide to **forward** your mail to another mail account, please make sure the lines are in place that filter out known spam. Spam forwarded to elsewhere sometimes cause our mailserver to be blacklisted as suspected source of spam, and in such cases, we will be forced to remove your forwarding rules.
 +
 +====== Automated setup ======
 +To make life easier, a basic mail forwarding setup can be made through our "Self service" pages:   
 +  * [[https://intranet.strw.leidenuniv.nl/services/|STRW Account Self Service]]
 +  * [[https://www.lorentz.leidenuniv.nl/www/people/user/services|Institute Lorentz Account Self Service]]
  
  
Line 19: Line 26:
  
   * man pages for procmail, procmailrc and procmailex (examples)   * man pages for procmail, procmailrc and procmailex (examples)
-  * Our [[procmailrc template]] (note: version in the wiki may be outdated compared by the actuial version installed by ''SfinxInstall .procmailrc'' !)+  * Our [[procmailrc template]] (note: version in the wiki may be outdated compared by the actual version installed by ''SfinxInstall .procmailrc'' !) 
 +  * Implementation of the university mail forwarding policy [[strw:mailforward|STRW]] & [[lion:forwarding|LION]]
procmail.1537872273.txt.gz · Last modified: 2018/09/25 10:44 by jansen