# @(#)sortmailrc.pop 1.2 02/03/11 falk # $Id: sortmailrc.pop,v 1.2 2003/12/22 06:03:14 efalk Exp $ # # This sortmailrc file is used for reading your mail from a POP # server. This is a "multi-drop pop" configuration, meaning that # multiple people are sharing a POP box. Incoming mail must be # classified and distributed to the correct people. # # Note that each person sharing this system may have their own sortmailrc # file for further processing. # Mail which cannot be classified is left on the POP server. It may # be manually retrieved later, or perhaps retrieved by a different # system using a different sortmailrc.pop file. # # Only the first 100 lines of any message is downloaded until we know we # want to download it. # Note: implementing a "multi-drop pop" is guesswork at best. POP and IMAP # mailboxes do not store information identifying the address to which the # message was to be delivered. This information was stored in the # "smtp envelope", which is stripped off when the message is placed into # the mailbox. The best we can do at this point is to make an educated # guess by examining the "To:" and "Cc:" lines. Some mail transports # will add a "Rcpt-To:" line which is perfect. # default behavior for unclasifiable mail is to keep the message on the # server set default=k set maxlines=100 # all mail from Mailer-Daemon goes to postmaster. (Case ignored.) # all mail addressed to Wally is left on the server; Wally will get it later. # all mail to Dilbert or Alice is fetched. # all mail to "peons" is sent to Dilbert *and* Alice *and* left # on the server for Wally to get. # all probable spam goes to /home/dilbert/Mail/spam # all unclassified mail stays on the server. /Mailer-Daemon/if:m postmaster /wally/it:k /dilbert/it:m dilbert /alice/it:m alice /peons/t:m dilbert:m alice:k # Spam filters are in a seperate file. set spamfolder=/home/dilbert/Mail/spam includerc sortmailrc.spam # Note: there are issues the above filter lines do not address: what # if one message is addressed to multiple people. Also, what about # mail that can't be resolved? By using a logical expression, # we can resolve these problems. # # This expression checks a message to see if it is addressed to # any of Dilbert, Alice and Wally. In each case, the message is # dispatched as appropriate. If there are no matches, sortmail # tries some other patterns. Mail that can't be classified is # sent to postmaster for manual examination. # # Mail that can't be resolved is usually addressed to a mailing list. The # postmaster will need to figure out who's on what mailing list and # add more lines to the filter. # The following line is a logical shell game; watch my hands closely. # The '|' operator always evaluates both parts of the expression. Thus, # the same message will be tested for all three patterns and may be # delivered to any or all of the destinations. If any of the patterns # matched, the messages is considered delivered. (/dilbert/it:m dilbert | /alice/it:m alice | /wally/it:k) # and now the mailing lists: /peons/t:m dilbert:m alice:k /nerds@lists.com/t:m dilbert /brittletechwriters@lists.com/t:m alice /X-List-Name: techtoys/h:m dilbert
Generated by dwww version 1.11.3 on Wed Jun 19 18:17:55 CEST 2013.