Use Unix Mail Filters

Topics:

Mail filters permit you to sort incoming mail or deny mail access to your account. Below is an outline on how to setup a simple filter. Be aware it is easy to misconfigure a filter and lose all your mail, and should only be attempted by advanced users.

  1. SSH to ArtSci and login (click here use your browser).
  2. At the Unix prompt, type: pico .forward then press the "Enter" key
    someuser@ascc students/s/someuser> pico .forward
  3. Add the line (with quotes):
    "| /pkg/elm/bin/filter"
  4. Save the file using the "WriteOut" command. (pressing "Ctrl" and "0" at the same time)
  5. At the prompt, type: chmod a+r .forward then press the "Enter" key
  6. Type: mkdir .filter then press the "Enter" key
  7. Type: chmod a+rx .filter then press the "Enter" key
  8. Type: cd .filter then press the "Enter" key
  9. Type: pico filter-rules then press the "Enter" key
  10. Add the filter you wish. Example: to ignore all mail you receive from somebody @ there.com, type:
    if ( from = "somebody@there.com" ) then delete
    always leave
  11. Save the file using the "WriteOut" command. (pressing "Ctrl" and "0" at the same time).