12.06.2015 Views

The Annoyance Filter.pdf - Fourmilab

The Annoyance Filter.pdf - Fourmilab

The Annoyance Filter.pdf - Fourmilab

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

§7 ANNOYANCE-FILTER OPERATING A POP3 PROXY SERVER 13<br />

7. Operating a POP3 proxy server.<br />

On systems where it’s inconvenient or impossible to interpose annoyance−filter to filter incoming mail,<br />

you may be able to use annoyance−filter as a proxy server for the “Post Office Protocol” used to deliver<br />

mail from your mail host.<br />

<strong>The</strong> program you use to read E-mail, for example, Netscape, Mozilla, or Microsoft Outlook, normally retrieves<br />

messages from a mail server using Post Office Protocol as defined by Internet RFC 1939. annoyance−filter<br />

has the ability to act as a proxy for this protocol, running on your local machine, and filtering messages<br />

received from your mail server to classify them as legitimate mail or junk. Let’s assume you currently receive<br />

incoming mail from a POP server at site mail.myisp.net. Once you’ve created a fast dictionary from<br />

your collection of legitimate and junk mail, you can establish a proxy server directed at that site with the<br />

command:<br />

annoyance−filter --fread fdict.bin --pop3server mail.myisp.net<br />

Now you need only configure your mail program to request incoming mail from your local machine (usually<br />

called “localhost”) on the default proxy port of 9110. (You can change the proxy port with the −−pop3port<br />

option if required.)<br />

Messages retrieved through the proxy server will be annotated with annoyance−filter’s<br />

X−<strong>Annoyance</strong>−<strong>Filter</strong>−Classification header item, which may be tested in your mail client’s filtering<br />

rules to appropriately dispose of the message.<br />

POP3 proxy server support is primarily intended for an individual user running on a platform which<br />

doesn’t permit programmatic filtering of incoming mail. <strong>The</strong> proxy server is, however, completely general<br />

and can support any number of individual mailboxes on a mail server, but with only a single dictionary<br />

common to all mailboxes. Since accurate mail classification depends upon individual per-user dictionaries,<br />

this is a capability best undeployed.<br />

If you’re installing a POP3 proxy server on a Windows machine, you may wish to create a “.pif” file to<br />

launch the program from the directory in which it resides with the correct options. A skeleton pop3proxy.pif<br />

file is included in the Windows distribution archives which you can edit to specify parameters appropriate<br />

for your configuration. (To edit the file, right click on it in Explorer and select the “Properties” item from<br />

the pop-up menu.)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!