Difference between revisions of "Forwarding Incoming Mail"

From CsWiki
Jump to: navigation, search
m (Protected "Forwarding Incoming Mail" [edit=sysop:move=sysop])
 
Line 6: Line 6:
 
locally, do:
 
locally, do:
  
   '''echo ''user@domain.com'' >> ~/.forward'''
+
   '''echo ''user@domain.com'' > ~/.forward'''
  
 
where '''''user@domain.com''''' is the remote address.
 
where '''''user@domain.com''''' is the remote address.
Line 12: Line 12:
 
Example:
 
Example:
  
   '''echo george@actcom.co.il >> ~/.forward'''
+
   '''echo george@actcom.co.il > ~/.forward'''
  
 
== Forwarding to a Different Address with a Local Copy ==
 
== Forwarding to a Different Address with a Local Copy ==
Line 18: Line 18:
 
a copy of the e-mail locally at '''CSE''' then do:
 
a copy of the e-mail locally at '''CSE''' then do:
  
   '''echo real-''login'', ''user@domain.com'' >> ~/.forward'''
+
   '''echo real-''login'', ''user@domain.com'' > ~/.forward'''
  
 
where '''''login''''' is the ''user's'' '''CSE''' login and
 
where '''''login''''' is the ''user's'' '''CSE''' login and
Line 26: Line 26:
 
Example:
 
Example:
  
   '''echo real-coheng, george@actcom.co.il >> ~/.forward'''
+
   '''echo real-coheng, george@actcom.co.il > ~/.forward'''
  
 
== Complex Forwarding ==
 
== Complex Forwarding ==

Latest revision as of 09:09, 31 January 2007

Often a user wishes to forward his/her e-mail to a different location either leaving a copy locally at CSE or not.

Forwarding to a Different Address

To forward one's e-mail to a different address and not keep a copy locally, do:

  echo user@domain.com > ~/.forward

where user@domain.com is the remote address.

Example:

  echo george@actcom.co.il > ~/.forward

Forwarding to a Different Address with a Local Copy

If one wishes to forward one's e-mail to a different address, but still keep a copy of the e-mail locally at CSE then do:

  echo real-login, user@domain.com > ~/.forward

where login is the user's CSE login and user@domain.com is the remote address.


Example:

  echo real-coheng, george@actcom.co.il > ~/.forward

Complex Forwarding

For sending vacation messages, see the section on Mail Vacation Messages.

It is also possible to do complex parsing of the incoming mail message and, based on criteria, to either save it to a particular folder, forward it to another recipient or pipe the message to a programme -- all of this requires a different format of the ~/.forward file that is described in the document http://www.exim.org/exim-html-4.66/doc/html/filter.html#CHAPeximfilter