Penguin
Note: You are viewing an old revision of this page. View the current version.

If your .forward file starts with "# Exim filter", then the Exim mail program can do some processing of your incoming email.

Here is a simple example
  1. Exim filter - do not edit this line!
  2. only works for exim... others will treat it as a plain .forward file...
  3. if this filter generates an error, then deliver to original address
  4. as per usual

if error_message then finish endif

  1. I have mail forwarded to me from an account at another machine.
  2. it currently only gets spam, so automatically save to somewhere else
  3. this match is a regular expression, hence need to double escape the .

if $header_received: contains remotehost\\.co\\.nz

and $header_from: does not contain remotehost\\.co\\.nz

then

save $home/Mail/remotehostspam 0600 seen finish

endif

  1. default action - get exim to deliver as if this forward file wasn't here
  2. change this to whatever address this server is accepting your mail for

deliver thisemailaddress@verisign.com finish