You are viewing an old revision of this page.
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
- Exim filter - do not edit this line!
- only works for exim... others will treat it as a plain .forward file...
- if this filter generates an error, then deliver to original address
- as per usual
if error_message then finish endif
- I have mail forwarded to me from an account at another machine.
- it currently only gets spam, so automatically save to somewhere else
- 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
- default action - get exim to deliver as if this forward file wasn't here
- change this to whatever address this server is accepting your mail for
deliver thisemailaddress@verisign.com
finish