You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2004/04/19 01:07:13 UTC

cvs commit: james-server/www fetchmail_configuration_2_2.html

noel        2004/04/18 16:07:13

  Added:       www      fetchmail_configuration_2_2.html
  Log:
  add documentation for Fetchmail
  
  Revision  Changes    Path
  1.1                  james-server/www/fetchmail_configuration_2_2.html
  
  Index: fetchmail_configuration_2_2.html
  ===================================================================
  <html>
  <head>
  <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <title>Apache James - James 2.2 - fetchmail Configurartion - Java Mail and News server, SMTP POP3 NNTP</title>
  <meta content="mail,email,news,SMTP,POP3,NNTP,IMAP,MAILET,JAVA,WINDOWS,LINUX,server,Windows,2k,NT,98,ME,XP,Linux." name="keywords">
  <meta content="Free (Open Source) Java mail server (mailserver) from Apache. Providing SMTP POP3 IMAP and News NNTP runs on Microsoft Windows 2k,NT,98,ME,XP, and most flavours of Linux." name="description">
  <meta content="ALL" name="ROBOTS">
  <LINK TITLE="Style" HREF="stylesheet.css" TYPE="text/css" REL="stylesheet">
  </head>
  <body vlink="#525D76" alink="#525D76" link="#525D76" text="#000000" bgcolor="#ffffff">
  <table cellspacing="4" width="100%" border="0">
  <!--PAGE HEADER-->
  <tr>
  <td colspan="2">
  <!--ASF LOGO--><a href="http://www.apache.org/"><img border="0" alt="The ASF" align="left" src="http://www.apache.org/images/asf_logo_wide.gif"></a>
  <!--PROJECT LOGO--><a href="http://james.apache.org"><img border="0" alt="James - Java Apache Mail Enterprise Server" align="right" src="http://james.apache.org/images/james-logo.jpg"></a></td>
  </tr>
  <!--HEADER SEPARATOR-->
  <tr>
  <td colspan="2">
  <hr size="1" noshade="">
  </td>
  </tr>
  <tr>
  <!--LEFT SIDE NAVIGATION-->
  <td nowrap="true" valign="top" width="20%">
  <p>
  <strong>James</strong>
  </p>
  <ul>
  <li>
  <a href="./index.html">Overview</a>
  </li>
  <li>
  <a href="./FAQ.html">James FAQ</a>
  </li>
  <li>
  <a href="http://jakarta.apache.org/site/mail.html">Mailing Lists</a>
  </li>
  <li>
  <a href="http://wiki.apache.org/james">Wiki</a>
  </li>
  </ul>
  <p>
  <strong>Downloads</strong>
  </p>
  <ul>
  <li>
  <a href="http://james.apache.org/download.cgi">Current Release(s)</a>
  </li>
  </ul>
  <p>
  <strong>Documentation</strong>
  </p>
  <ul>
  <li>
  <a href="./documentation_2_1.html">James 2.1 Documentation</a>
  </li>
  <li>
  <a href="./design_objectives.html">Design objectives</a>
  </li>
  <li>
  <a href="./javadocs/index.html">James Javadocs</a>
  </li>
  <li>
  <a href="./mailet/index.html">Mailet Javadocs</a>
  </li>
  <li>
  <a href="./rfclist.html">Useful RFCs</a>
  </li>
  <li>
  <a href="./document_archive.html">Older Document Archive</a>
  </li>
  </ul>
  <p>
  <strong>Project</strong>
  </p>
  <ul>
  <li>
  <a href="http://issues.apache.org/jira/">Bug Database </a>
  </li>
  <li>
  <a href="http://jakarta.apache.org/site/cvsindex.html">CVS Repositories</a>
  </li>
  <li>
  <a href="./weare.html">Who We Are</a>
  </li>
  <li>
  <a href="./contribute.html">How Can I Contribute?</a>
  </li>
  <li>
  <a href="./code-standards.html">Coding Standards</a>
  </li>
  <li>
  <a href="./license.html">License</a>
  </li>
  <li>
  <a href="./changelog.html">Changelog</a>
  </li>
  <li>
  <a href="./todo.html">TODO</a>
  </li>
  </ul>
  <p>
  <strong>Translated</strong>
  </p>
  <ul>
  <li>
  <a href="http://james.terra-intl.com/">Japanese (web)</a>
  </li>
  </ul>
  <p>
  <strong>Related Projects</strong>
  </p>
  <ul>
  <li>
  <a href="http://jakarta.apache.org/index.html">Jakarta</a>
  </li>
  <li>
  <a href="http://ant.apache.org/index.html">Ant</a>
  </li>
  <li>
  <a href="http://avalon.apache.org/index.html">Avalon</a>
  </li>
  </ul>
  <p>
  <strong>Useful Information</strong>
  </p>
  <ul>
  <li>
  <a href="http://jakarta.apache.org/site/getinvolved.html">Get Involved</a>
  </li>
  <li>
  <a href="http://jakarta.apache.org/site/library.html">Reference Library</a>
  </li>
  <li>
  <a href="http://apache.org/foundation/faq.html">Apache</a>
  </li>
  </ul>
  </td>
  <!--RIGHT SIDE MAIN BODY--><td align="left" valign="top" width="80%">
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="fetchmail"><strong>fetchmail</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>fetchmail acts as a gateway between an external message store such as an IMAP
  or POP3 server and James. Mail is fetched from the external message store and
  injected into the James input spool.</p>
  
  
  <p>fetchmail  is useful when delivery via standard SMTP is not an option, as a
  means of consolidating mail delivered to several external accounts into a single
  James account, or to apply the mail processing capabilities of James to mail 
  stored in an external message store.</p>
  
  
  <p>fetchmail has several configuration options that control the fetching and 
  filtering of mail injected into the James input spool. Once there, James' 
  flexible mail processing engine can be used to further process the mail, just as
  if it had been delivered via standard SMTP.</p>
  
  
  <p>
  
  <a href="#How%20fetchmail%20Works">How fetchmail Works</a>
  <br>
  
  <a href="#fetchmail%20Configuration%20Parameters">fetchmail Configuration Parameters</a>
  <br>
  
  <a href="#fetchmail%20Examples">fetchmail Examples</a>
  <br>
  
  <a href="#fetchmail%20Caveats">fetchmail Caveats</a>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="How%20fetchmail%20Works"><strong>How fetchmail Works</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>Mail is delivered by periodically running fetch tasks that read messages from
  an external message store and injects them into the James input spool. Fetch 
  tasks run concurrently.</p>
  
  
  <p>A set of filters applies to each fetch task. Each filter provides the ability
  to reject a message that matches the filter criteria. Rejected messages are not
  injected into the James input spool; they are either marked as seen or deleted.
  When a filter is configured to accept a message that matches its criteria, 
  messages are marked with a MailAttribute. This MailAttribute can be detected 
  within the James matcher/mailet chain, allowing further processing as 
  required.</p>
  
  
  <p>Each fetch task is associated with a single host server. Accounts are defined
  to the fetch task for each mailbox on the server from which mail is to be
  fetched. Accounts run consecutively.</p>
  
  
  <p>Optionally, the fetch task can be configured with an &lt;alllocal&gt; Account that
  generates an Account entry for each user defined in the James user repository.
  This removes the requirement to manually add or remove Account entries to the 
  fetchmail configuration each time a James user is added or removed. Currently 
  this is only useful if the server supports virtual mailboxes that allow the same
  password to apply to all users within a domain.</p>
  
  
  <p>Accounts can be configured to deliver all mail for an Account to a specified
  recipient or to deduce the intended recipient from the mail headers.</p>
  
  
  <p>Accounts are normally configured to deliver all mail for an Account to a 
  specified recipient, ignoring the recipient in the mail headers. This works well
  in the majority of cases where a mailbox is guaranteed to contain mail for a sole
  mailbox recipient.</p>
  
  
  <p>Accounts are configured to deduce the intended recipient from the mail headers
  when a mailbox contains mail for several users, typically all users in a domain.
  Used alone, this is not foolproof as there are circumstances when a single unique
  recipient cannot be deduced from the mail headers alone. Used in conjunction with
  an appropriately configured &lt;alllocal&gt; account, it is always possible to deduce 
  the intended recipient when the recipient is a James user.</p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="fetchmail%20Configuration%20Parameters"><strong>fetchmail Configuration Parameters</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The fetchmail configuration parameters are part of the James configuration, 
  whose base file is <code>config.xml</code>. For clarity and flexibility, the 
  fetchmail configuration parameters are stored in the file 
  <code>james-fetchmail.xml</code>, which is referenced within 
  <code>config.xml</code>.</p>
  
  
  <p>The configuration parameters are described below.</p>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="fetchmail"><strong>fetchmail</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The configuration block delimited by the <strong>fetchmail</strong> tag 
  controls fetchmail.</p>
  
  
  <p>The tag has these attributes:
  <dl>
  
  <dt>
  <strong>enabled</strong>
  </dt>
  
  <dd>A boolean. If "true", the fetch tasks will be run periodically. If "false", 
  no fetch tasks will be run. The default is "false".</dd>
  
  </dl>
  
  </p>
  
  
  <p>The tag has these child tags (minimum cardinality, maximum cardinality):
  <ul>
  
  <li>
  <strong><a href="#fetch">fetch</a></strong> (0, *)</li>
  
  </ul>
  
  </p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;fetchmail enabled="true"&gt;
  ...
  &lt;/fetchmail&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="fetch"><strong>fetch</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>fetch</strong> tag defines a fetch task to be run 
  periodically. Fetch tasks run concurrently.</p>
  
  
  <p>The tag has these attributes:
  <dl>
  
  <dt>
  <strong>name</strong>
  </dt>
  
  <dd>A string uniquely identifying the fetch task.</dd>
  
  </dl>
  
  </p>
  
  
  <p>The tag has these child tags (minimum cardinality, maximum cardinality):
  <ul>
  
  <li>
  <strong><a href="#accounts">accounts</a></strong> (1, 1)</li>
  
  <li>
  <strong><a href="#blacklist">blacklist</a></strong> (1, 1)</li>
  
  <li>
  <strong><a href="#defaultdomain">defaultdomain</a></strong> (0, 1)</li>
  
  <li>
  <strong><a href="#fetchall">fetchall</a></strong> (1, 1)</li>
  
  <li>
  <strong><a href="#fetched">fetched</a></strong> (1, 1)</li>
  
  <li>
  <strong><a href="#host">host</a></strong> (1, 1)</li>
  
  <li>
  <strong><a href="#interval">interval</a></strong> (1, 1)</li>
  
  <li>
  <strong><a href="#javaMailFolderName">javaMailFolderName</a></strong> (1, 1)</li>
  
  <li>
  <strong><a href="#javaMailProperties">javaMailProperties</a></strong> (0, 1)</li>
  
  <li>
  <strong><a href="#javaMailProviderName">javaMailProviderName</a></strong> (1, 1)</li>
  
  <li>
  <strong><a href="#maxmessagesize">maxmessagesize</a></strong> (0, 1)</li>
  
  <li>
  <strong><a href="#recipientnotfound">recipientnotfound</a></strong> (1, 1)</li>
  
  <li>
  <strong><a href="#recursesubfolders">recursesubfolders</a></strong> (1, 1)</li>
  
  <li>
  <strong><a href="#remoteReceivedHeader">remoteReceivedHeader</a></strong> (0, 1)</li>
  
  <li>
  <strong><a href="#remoterecipient">remoterecipient</a></strong> (1, 1)</li>
  
  <li>
  <strong><a href="#undeliverable">undeliverable</a></strong> (1, 1)</li>
  
  <li>
  <strong><a href="#userundefined">userundefined</a></strong> (1, 1)</li>
  
  </ul>
  
  </p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;fetch name="mydomain.com"&gt;
  ...
  &lt;/fetch&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="accounts"><strong>accounts</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>accounts</strong> tag declares the accounts from which mail will 
  be fetched by the fetch task. Accounts run concurrently.</p>
  
  
  <p>The tag has these child tags (minimum cardinality, maximum cardinality):
  <ul>
  
  <li>
  <strong><a href="#account">account</a></strong> (0, *)</li>
  
  <li>
  <strong><a href="#alllocal">alllocal</a></strong> (0, 1)</li>
  
  </ul>
  
  </p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;accounts&gt;
  ...
  &lt;/accounts&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="blacklist"><strong>blacklist</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>blacklist</strong> tag declares a list of recipient addresses 
  for whom mail will be rejected and what happens to the rejected mail.</p>
  
  
  <p>The tag value is a tab, comma or space delimited list of recipient 
  addresses, eg: <code>wibble@mydomain.com, flobble@mydomain.com</code>.</p>
  
  
  <p>The tag has these attributes:
  <dl>
  
  <dt>
  <strong>reject</strong>
  </dt>
  
  <dd>A boolean. If "true", mail for recipients in the blacklist will
  not be injected into the James input spool. If "false", mail for
  recipients in the blacklist will be injected into the James input spool with the
  Mail Attribute <code>org.apache.james.fetchmail.isBlacklistedRecipient</code>
  added to the mail.</dd>
  
  <dt>
  <strong>leaveonserver</strong>
  </dt>
  
  <dd>A boolean. If "true", mail for recipients in the blacklist will be
  left on the server. If "false", mail for recipients in the blacklist 
  will be marked for deletion.</dd>
  
  <dt>
  <strong>markseen</strong>
  </dt>
  
  <dd>A boolean. If "true", mail for recipients in the blacklist will be
  marked as seen on the server. If "false", mail for recipients in the blacklist 
  will not be marked as seen.</dd>
  
  </dl>
  
  </p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;blacklist 
      reject="true" 
      leaveonserver="true"
      markseen="true"&gt;
  wibble@mydomain.com, flobble@mydomain.com
  &lt;/blacklist&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="defaultdomain"><strong>defaultdomain</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>defaultdomain</strong> tag declares the domain name to be 
  appended to the <code>From:</code> header of a mail that has a valid user part
  but is missing the domain part.</p>
  
  
  <p>If not specified, the default behaviour is to append the canonical host name
  of the James server.</p>
  
  
  <p>The tag value is the name of the server to append. The name must be a server
  declared in the <strong>servernames</strong> tag of the <strong>James</strong>
  block in the configuration or the name <code>localhost</code>.</p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;defaultdomain&gt;
      mydomain.com
  &lt;/defaultdomain&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="fetchall"><strong>fetchall</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>fetchall</strong> tag declares if all mail should be fetched from
  the server, or just unseen mail.</p>
  
  
  <p>The tag value is a boolean. If true, all mail is fetched. If false, only 
  unseen mail is fetched.</p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;fetchall&gt;false&lt;/fetchall&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="fetched"><strong>fetched</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>fetched</strong> tag declares what will happen to mail on the
  external server that is successfully injected into the James input spool.</p>
  
  
  <p>The tag has these attributes:
  <dl>
  
  <dt>
  <strong>leaveonserver</strong>
  </dt>
  
  <dd>A boolean. If "true", mail injected into the James input spool 
  will be left on the server. If "false", mail injected into the James
  input spool will be marked for deletion.</dd>
  
  <dt>
  <strong>markseen</strong>
  </dt>
  
  <dd>A boolean. If "true", mail injected into the James input spool 
  will be marked as seen on the server. If "false", mail injected into
  the James input spool will not be marked as seen.</dd>
  
  </dl>
  
  </p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;fetched leaveonserver="true" markseen="true"/&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="host"><strong>host</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>host</strong> tag declares the IP address of the external
  server from which mail is fetched.</p>
  
  
  <p>The tag value is the DNS name or IP address literal of the external
  server.</p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;host&gt;pop3.server.com&lt;/host&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="interval"><strong>interval</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>interval</strong> tag declares the period between invocations of
  the fetch tasks. If a fetch task is still active from a previous invocation
  when the period expires, the new invocation is skipped over.</p>
  
  
  <p>The tag value is an integer representing the number of milliseconds to elapse
  between invocations of the fetch tasks.</p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;interval&gt;60000&lt;/interval&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="javaMailFolderName"><strong>javaMailFolderName</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>javaMailFolderName</strong> tag declares the name of the root 
  folder on the external server from which mail is fetched.</p>
  
  
  <p>The tag value is the cAsE-sEnSiTiVe name of the root folder on the external
  server from which mail is fetched. For POP3 servers this is always 
  <code>INBOX</code>.</p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;javaMailFolderName&gt;INBOX&lt;/javaMailFolderName&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="javaMailProperties"><strong>javaMailProperties</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>javaMailProperties</strong> tag declares the properties to be
  applied to the JavaMail Session used by the fetch task. These override the
  properties answered by <code>System.getProperties()</code>. Many JavaMail
  properties are specific to the JavaMail Provider selected by the 
  <a href="#javaMailProviderName">javaMailProviderName</a> tag.</p>
  
  
  <p>
  <strong>Relying on the default values selected by the Provider can be
  inappropriate.</strong> For instance, the default connection and I/O timeout 
  values of infinite for the default IMAP and POP3 Providers is rarely what is
  required. Consult the documentation of the Provider for details and options.</p>
  
  
  <p>Documentation for the default Provider for IMAP is located
  <a href="http://java.sun.com/products/javamail/javadocs/com/sun/mail/imap/package-summary.html">
  here</a>.</p>
  
  
  <p>Documentation for the default Provider for POP3 is located
  <a href="http://java.sun.com/products/javamail/javadocs/com/sun/mail/pop3/package-summary.html">
  here</a>.</p>
  
  
  <p>Details of how to change a Provider are located
  <a href="http://java.sun.com/products/javamail/javadocs/javax/mail/Session.html">
  here</a>.</p>
  
  
  <p>The tag has these child tags (minimum cardinality, maximum cardinality):
  <ul>
  
  <li>
  <strong><a href="#property">property</a></strong> (0, *)</li>
  
  </ul>
  
  </p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;javaMailProperties&gt;
  ...
  &lt;/javaMailProperties&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="javaMailProviderName"><strong>javaMailProviderName</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>javaMailProviderName</strong> tag selects the JavaMail protocol
  Provider used to interact with the external server.</p>
  
  
  <p>The tag value is the name of a JavaMail supported protocol, such as 
  <code>pop3</code> or <code>imap</code>. The name is used to select the default
  Provider for the protocol.</p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;javaMailProviderName&gt;pop3&lt;/javaMailProviderName&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="maxmessagesize"><strong>maxmessagesize</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>maxmessagesize</strong> tag declares the maximum permitted message
  size for messages injected into the James input spool and what happens to fetched
  messages that exceed this size.</p>
  
  <p>The tag has these attributes:
  <dl>
  
  <dt>
  <strong>limit</strong>
  </dt>
  
  <dd>An integer. The maximum message size expressed in Kilobytes. If 0, there is
  no limit.</dd>
  
  <dt>
  <strong>reject</strong>
  </dt>
  
  <dd>A boolean. If "true", mail whose message size exceeds the maximum
  permitted size will not be injected into the James input spool. If 
  "false", mail whose message size exceeds the maximum permitted size will
  have its contents removed, an explanatory error message and the Mail Attribute
  <code>org.apache.james.fetchmail.isMaxMessageSizeExceeded</code> added prior to 
  injection into the James input spool, (see below for the location of an example).</dd>
  
  <dt>
  <strong>leaveonserver</strong>
  </dt>
  
  <dd>A boolean. If "true", mail whose message size exceeds the maximum
  permitted size will be left on the server. If "false", mail whose message
  size exceeds the maximum permitted size will be marked for deletion.</dd>
  
  <dt>
  <strong>markseen</strong>
  </dt>
  
  <dd>A boolean. If "true", mail whose message size exceeds the maximum
  permitted size will be marked as seen on the server. If "false",
  mail whose message size exceeds the maximum permitted size will not be marked as
  seen.</dd>
  
  </dl>
  
  </p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;maxmessagesize 
      limit="4096"
      reject="false"
      leaveonserver="false"
      markseen="false"/&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  
  <p>An example configuration using James mailet processing to bounce fetched
  messages that exceed the maximum permitted size can be found in the file
  <code>$PHOENIX_HOME/apps/james/conf/samples/fetchmail/maxMessageSize.xml</code>.
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="recipientnotfound"><strong>recipientnotfound</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>recipientnotfound</strong> tag declares what happens to mail for
  which a sole intended recipient cannot be found when attempting to determine
  the recipient from the mail headers.</p>
  
  
  <p>In configurations with more than one account per fetch task, processing of
  matched mail can be deferred to the next run of the fetch task. This gives 
  other accounts that may be able to determine a sole intended recipient an
  opportunity to do so before recipientnotfound processing is invoked.</p>
  
  
  <p>The tag has these attributes:
  <dl>
  
  <dt>
  <strong>defer</strong>
  </dt>
  
  <dd>A boolean. If "true", mail for which a sole intended recipient 
  cannot be determined is left unprocessed until the next run of the fetch task.
  If "false", mail for which a sole intended recipient cannot be
  determined is processed immediately.</dd>
  
  <dt>
  <strong>reject</strong>
  </dt>
  
  <dd>A boolean. If "true", mail for which a sole intended recipient 
  cannot be determined will not be injected into the James input spool. If 
  "false", mail for which a sole intended recipient cannot be 
  determined will be injected into the James input spool using the recipient
  attribute of the current account and with the Mail Attribute 
  <code>org.apache.james.fetchmail.isRecipientNotFound</code> added to the
  mail.</dd>
  
  <dt>
  <strong>leaveonserver</strong>
  </dt>
  
  <dd>A boolean. If "true", mail for which a sole intended recipient 
  cannot be determined will be left on the server. If "false", mail for
  which a sole intended recipient cannot be determined will be marked for 
  deletion.</dd>
  
  <dt>
  <strong>markseen</strong>
  </dt>
  
  <dd>A boolean. If "true", mail for which a sole intended recipient 
  cannot be determined will be marked as seen on the server. If "false",
  mail for which a sole intended recipient cannot be determined will not be marked
  as seen.</dd>
  
  </dl>
  
  </p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;recipientnotfound 
      defer="true"
      reject="true"
      leaveonserver="true"
      markseen="true"/&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="recursesubfolders"><strong>recursesubfolders</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>recursesubfolders</strong> tag declares if mail should be fetched 
  from sub-folders of the root folder, or just the root folder.</p>
  
  
  <p>The tag value is a boolean. If true, mail is fetched from the root folder and
  its subfolders. If false, mail is fetched from just the root folder.</p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;recursesubfolders&gt;false&lt;/recursesubfolders&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="remoteReceivedHeader"><strong>remoteReceivedHeader</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>remoteReceivedHeader</strong> tag declares the zero based
  index of the RFC2822 compliant RECEIVED header used to determine the address and
  host name of the remote MTA that sent a fetched message and what happens to 
  messages when the specified header is invalid.</p>
  
  
  <p>Typically, the first (index = 0) RECEIVED header is for the local MTA that 
  delivered the message to the message store and the second (index = 1) RECEIVED
  header is for the remote MTA that delivered the message to the local MTA. When
  this configuration applies, the <strong>remoteReceivedHeaderIndex</strong> should
  be set to <strong>1</strong>.
  </p>
  
  
  <p>To verify the correct setting, examine the RECEIVED headers for messages
  delivered to the configured message store and locate the first one containing a
  remote domain in the'from' field. Remembering that zero based indexing is used,
  if this the second header, use an index of 1, if this is the third header, use an
  index of 2, and so forth.</p>
  
  
  <p>Matchers such as InSpammerBlacklist use the remote address and/or remote host
  name to identify illegitimate remote MTAs. If you do not use such matchers, the
  <strong>remoteReceivedHeaderIndex</strong> tag may be omitted or the default
  index value of -1 can be specified. This causes the remote address to be set to
  <code>127.0.0.1</code> and the remote host name to be set to
  <code>localhost</code>. Matchers almost always considered these values to be
  legitimate.</p>
  
  
  <p>The tag has these attributes:
  <dl>
  
  <dt>
  <strong>index</strong>
  </dt>
  
  <dd>An integer whose meaning is described above.
  </dd>
  
  <dt>
  <strong>reject</strong>
  </dt>
  
  <dd>A boolean. If "true", mail whose specified recieved header is invalid
  will not be injected into the James input spool. If "false", mail whose 
  specified recieved header is invalid will be injected into the James input spool with 
  the Mail Attribute <code>org.apache.james.fetchmail.isInvalidReceivedHeader</code>
  added to the mail, the remote address set to <code>127.0.0.1</code> and the remote 
  host name set to <code>localhost</code>.
  </dd>
  
  <dt>
  <strong>leaveonserver</strong>
  </dt>
  
  <dd>A boolean. If "true", mail whose specified recieved header is invalid
  will be left on the server. If "false", mail whose specified recieved header
  is invalid will be marked for deletion.</dd>
  
  <dt>
  <strong>markseen</strong>
  </dt>
  
  <dd>A boolean. If "true", mail whose specified recieved header is invalid
  will be marked as seen on the server. If "false", mail whose specified
  recieved header is invalid will not be marked as seen.</dd>
  
  </dl>
  
  </p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;remoteReceivedHeader
      index="1" 
      reject="true"
      leaveonserver="true"
      markseen="true"/&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  
  <p>An example configuration using James mailet processing to notify the postmaster
  of fetched messages that contain an invalid Received header can be found in the file
  <code>$PHOENIX_HOME/apps/james/conf/samples/fetchmail/remoteReceivedHeader.xml</code>.
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="remoterecipient"><strong>remoterecipient</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>remoterecipient</strong> tag declares what happens to mail for
  which the domain part of the recipient is remote. A domain is remote if it is 
  not a server declared in the <strong>servernames</strong> tag of the
  <strong>James</strong> block in the configuration.</p>
  
  
  <p>The tag has these attributes:
  <dl>
  
  <dt>
  <strong>reject</strong>
  </dt>
  
  <dd>A boolean. If "true", mail for remote recipients will not be 
  injected into the James input spool. If "false", mail for remote
  recipients will be injected into the James input spool with the Mail Attribute 
  <code>org.apache.james.fetchmail.isRemoteRecipient</code> added to the mail.
  </dd>
  
  <dt>
  <strong>leaveonserver</strong>
  </dt>
  
  <dd>A boolean. If "true", mail for remote recipients will be left on
  the server. If "false", mail for remote recipients will be marked for 
  deletion.</dd>
  
  <dt>
  <strong>markseen</strong>
  </dt>
  
  <dd>A boolean. If "true", mail for remote recipients will be marked as
  seen on the server. If "false", mail for remote recipients will not be
  marked as seen.</dd>
  
  </dl>
  
  </p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;remoterecipient 
      reject="true"
      leaveonserver="true"
      markseen="true"/&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="undeliverable"><strong>undeliverable</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>undeliverable</strong> tag declares what happens to mail that
  cannot be delivered.</p>
  
  
  <p>The tag has these attributes:
  <dl>
  
  <dt>
  <strong>leaveonserver</strong>
  </dt>
  
  <dd>A boolean. If "true", mail that cannot be delivered will be left
  on the server. If "false", mail that cannot be delivered will be
  marked for deletion.</dd>
  
  <dt>
  <strong>markseen</strong>
  </dt>
  
  <dd>A boolean. If "true", mail for that cannot be delivered will be
  marked as seen on the server. If "false", mail that cannot be
  delivered will not be marked as seen.</dd>
  
  </dl>
  
  </p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;undeliverable
      leaveonserver="true"
      markseen="true"/&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="userundefined"><strong>userundefined</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>userundefined</strong> tag declares what happens to mail for
  which the recipient is not defined as a James user.</p>
  
  
  <p>The tag has these attributes:
  <dl>
  
  <dt>
  <strong>reject</strong>
  </dt>
  
  <dd>A boolean. If "true", mail for recipients who are not defined as
  James users will not be injected into the James input spool. If 
  "false", mail for recipients who are not defined as James users will
  be injected into the James input spool with the Mail Attribute 
  <code>org.apache.james.fetchmail.isUserUndefined</code> added to the mail.
  </dd>
  
  <dt>
  <strong>leaveonserver</strong>
  </dt>
  
  <dd>A boolean. If "true", mail for recipients who are not defined as
  James users will be left on the server. If "false", mail for 
  recipients who are not defined as James users will be marked for deletion.</dd>
  
  <dt>
  <strong>markseen</strong>
  </dt>
  
  <dd>A boolean. If "true", mail for recipients who are not defined as
  James users will be marked as seen on the server. If "false", mail
  for recipients who are not defined as James users will not be marked as seen.
  </dd>
  
  </dl>
  
  </p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;userundefined
      reject="true"
      leaveonserver="true"
      markseen="true"/&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="account"><strong>account</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>account</strong> tag declares an account on the external server
  from which mail should be fetched.</p>
  
  
  <p>The tag has these attributes:
  <dl>
  
  <dt>
  <strong>user</strong>
  </dt>
  
  <dd>The string to be passed as the user when connecting to the external server.
  </dd>
  
  <dt>
  <strong>password</strong>
  </dt>
  
  <dd>The string to be passed as the password when connecting to the external 
  server.</dd>
  
  <dt>
  <strong>recipient</strong>
  </dt>
  
  <dd>The recipient to whom messages will be delivered when the intended recipient
  cannot be determined or when the intended recipient is to be ignored.</dd>
  
  <dt>
  <strong>ignorercpt-header</strong>
  </dt>
  
  <dd>A boolean. If "true", mail is always delivered to the recipient
  declared in the <strong>recipient</strong> attribute above. If 
  "false", the intended recipient is determined from the mail headers or
  the process declared by the <strong>recipientnotfound</strong> tag.
  </dd>
  
  </dl>
  
  </p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;account
      user="myaccount"
      password="mypassword"
      recipient="user@localhost"
      ignorercpt-header="true"/&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="alllocal"><strong>alllocal</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>alllocal</strong> tag declares the parameters to be applied to
  dynamic accounts. The set of dynamic accounts is refreshed each time the fetch
  task runs by combining the <strong>alllocal</strong> tag attributes with each of
  the currently defined James users to create an account for every James user.</p>
  
  
  <p>The tag has these attributes:
  <dl>
  
  <dt>
  <strong>userprefix</strong>
  </dt>
  
  <dd>The string to be added before the James user when constructing the string
  passed as the user when connecting to the external server.
  </dd>
  
  <dt>
  <strong>usersuffix</strong>
  </dt>
  
  <dd>The string to be added after the James user when constructing the string
  passed as the user when connecting to the external server.
  </dd>
  
  <dt>
  <strong>password</strong>
  </dt>
  
  <dd>The string to be passed as the password when connecting to the external 
  server.</dd>
  
  <dt>
  <strong>recipientprefix</strong>
  </dt>
  
  <dd>The string to be added before the James user when constructing the recipient
  to whom messages will be delivered when the intended recipient cannot be 
  determined or when the intended recipient is to be ignored.</dd>
  
  <dt>
  <strong>recipientsuffix</strong>
  </dt>
  
  <dd>The string to be added after the James user when constructing the recipient
  to whom messages will be delivered when the intended recipient cannot be 
  determined or when the intended recipient is to be ignored.</dd>
  
  <dt>
  <strong>ignorercpt-header</strong>
  </dt>
  
  <dd>A boolean. If "true", mail is always delivered to the recipient
  constructed from the <strong>recipientprefix</strong> and 
  <strong>recipientsuffix</strong> attributes above and the James user. If 
  "false", the intended recipient is determined from the mail headers or
  the process declared by the <strong>recipientnotfound</strong> tag.
  </dd>
  
  </dl>
  
  </p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;alllocal
      userprefix=""
      usersuffix="@external.domain.com"
      password="mypassword"
      recipientprefix=""
      recipientsuffix="@mydomain.com"
      ignorercpt-header="true"/&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="property"><strong>property</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The <strong>property</strong> tag declares a name/value pair.</p>
  
  
  <p>The tag has these attributes:
  <dl>
  
  <dt>
  <strong>name</strong>
  </dt>
  
  <dd>The name of the property.
  </dd>
  
  <dt>
  <strong>value</strong>
  </dt>
  
  <dd>The value of the property.</dd>
  
  </dl>
  
  </p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;property
      name="mail.pop3.connectiontimeout"
      value="180000"/&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  </blockquote>
  </td>
  </tr>
  </table>
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="fetchmail%20Examples"><strong>fetchmail Examples</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>Full sources to the examples discussed below can be found in the directory
  <code>$PHOENIX_HOME/apps/james/conf/samples/fetchmail</code>.</p>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="One%20Account,%20One%20User"><strong>One Account, One User</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>When all mail for an account is to be delivered to a single user, 
  configure each account to ignore the recipient in the mail headers and deliver
  to the specified recipient. The <strong>accounts</strong> block looks like 
  this:</p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;accounts&gt;
      &lt;account
          user="user1@external.domain.com"
          password="password1"
          recipient="user1@localhost"
          ignorercpt-header="true"/&gt;
  
      &lt;account
          user="user2@external.domain.com"
          password="password2"
          recipient="user2@localhost"
          ignorercpt-header="true"/&gt;
  
      &lt;account
          user="user3@external.domain.com"
          password="password3"
          recipient="user3@localhost"
          ignorercpt-header="true"/&gt;
  &lt;/accounts&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="One%20Account,%20Many%20Users"><strong>One Account, Many Users</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>When an account contains mail to be delivered to many users, configure each
  account to determine the recipient from the mail headers and deliver to that 
  user. The <strong>accounts</strong> block looks like this:</p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;accounts&gt;
      &lt;account
          user="global@external.domain.com"
          password="password"
          recipient="fetchmail@localhost"
          ignorercpt-header="false"/&gt;
  &lt;/accounts&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  
  <p>The <strong>recipientnotfound</strong> tag is used to declare what happens 
  when the recipient cannot be determined from the mail headers. In the example 
  below, mail is injected into the spool using the recipient declared in the
  <strong>account</strong> tag:</p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;recipientnotfound
      defer="false"
      reject="false"
      leaveonserver="false"
      markseen="false"/&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="One%20Account,%20One%20User%20-%20Dynamic"><strong>One Account, One User - Dynamic</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>When an external server supports virtual mailboxes, fetchmail's dynamic 
  account facility can be used. This greatly simplifies user configuration as 
  the fetchmail accounts for users are automatically synchronized with those
  defined in the James user repository. This guarantees that mail for all local 
  users will be fetched and delivered.</p>
  
  
  <p>Currently, there is a limitation that all virtual accounts and the global
  account must share the same password.</p>
  
  
  <p>The <strong>alllocal</strong> tag declares the parameters for the dynamic 
  accounts. The <strong>accounts</strong> block below will deliver mail for 
  <code>user1@external.domain.com</code> to <code>user1@localhost</code>, 
  <code>user2@external.domain.com</code> to <code>user2@localhost</code>,
  <code>userZ@external.domain.com</code> to <code>userZ@localhost</code> etc.:</p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;accounts&gt;
      &lt;alllocal
          userprefix=""
          usersuffix="@external.domain.com"
          password="mypassword"
          recipientprefix=""
          recipientsuffix="@localhost"
          ignorercpt-header="true"/&gt;
  &lt;/accounts&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="One%20Account,%20Many%20Users%20-%20Dynamic"><strong>One Account, Many Users - Dynamic</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>The 
  <a href="#One%20Account,%20One%20User%20-%20Dynamic">One Account, One User - Dynamic</a>
  example guarantees delivery of mail for all local users, but leaves other mail
  on the external server unprocessed. The 
  <a href="#One%20Account,%20Many%20Users">One Account, Many Users</a> example
  processes all mail on the external server, but cannot guarantee delivery to the
  intended recipient. By combining the two, it is possible to guarantee the 
  delivery of mail for all local users and process all mail.</p>
  
  
  <p>In the snippet below, the <strong>alllocal</strong> tag declares dynamic
  accounts for all local users and the <strong>account</strong> tag configures an
  account to fetch all mail.</p>
  
  
  <p>The <strong>recipientnotfound</strong> tag rejects mail for which a recipient
  cannot be determined. By the time this processing is activated, the dynamic 
  accounts will have processed mail for all local users, so the mail can 
  only be mail for non-local users or newly arrived mail for local users. It is 
  not possible to know which, but we want to leave mail for local users to be
  dealt with by the dynamic accounts. The next time the dynamic accounts run any
  newly arrived mail for local users will be processed. The remainder will be for
  non-local users and can now be safely dealt with.</p>
  
  
  <p>The <code>&lt;recipientnotfound defer="true"</code> attribute 
  enables deferal of the processing of messages for which the recipient cannot be
  determined to the next iteration of the fetch task, and is used here. The 
  relevant tags are:</p>
  
  
  <p>
  
  <div align="left">
  <table border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#ffffff">
  <pre>
  &lt;accounts&gt;
      &lt;alllocal
          userprefix=""
          usersuffix="@external.domain.com"
          password="mypassword"
          recipientprefix=""
          recipientsuffix="@localhost"
          ignorercpt-header="true"/&gt;
  
      &lt;account
          user="global@external.domain.com"
          password="password"
          recipient="fetchmail@localhost"
          ignorercpt-header="false"/&gt;
  &lt;/accounts&gt;
  
  &lt;recipientnotfound
      defer="true"
      reject="true"
      leaveonserver="true"
      markseen="true"/&gt;
  </pre>
  </td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  <tr>
  <td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="/images/void.gif"></td>
  </tr>
  </table>
  </div>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  
  
  </blockquote>
  </td>
  </tr>
  </table>
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
  <td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="fetchmail%20Caveats"><strong>fetchmail Caveats</strong></a></font></td>
  </tr>
  <tr>
  <td>
  <blockquote>
  
  <p>These are some things to be aware of when using fetchmail:
  <ul>
  
  <li>As noted in the
  <a href="#One%20Account,%20One%20User%20-%20Dynamic">One Account, One User - Dynamic</a>
  example, all virtual accounts and the global account must share the same 
  password. A future version might associate each James user to a set of account
  credentials.
  </li>
  
  
  <li>When using dynamic accounts, an account is generated and an attempt made to
  fetch mail for all James users defined to James even if there is no such mailbox
  on the server. This is inefficient but not fatal. The solution is the same as 
  described above.
  </li>
  
  
  <li>When using dynamic accounts, as described in the
  <a href="#One%20Account,%20Many%20Users%20-%20Dynamic">One Account, Many Users - Dynamic</a>
  example, the user name used to fetch the mail for all accounts must not be
  defined as a James user. If it is, a dynamic account will be generated for it
  and fetch all the mail before the account declared to process mail for all users
  has an opportunity to run!
  </li>
  
  
  <li>The now deprecated fetchPOP interacted with the <code>FetchedFrom</code> 
  matcher to detect mail injected by fetchPOP. This will not work with fetchmail. 
  Compared to fetchPOP, there are far fewer occasions when mail injected by 
  fetchmail requires special processing. When it does, use the HasMailAttribute 
  matcher to match the attribute named 
  <code>org.apache.james.fetchmail.taskName</code> to detect all mail injected by
  fetchmail. To detect mail injected by a specific fetch task, use one of the 
  HasMailAttributeWithValue matchers to match on the attribute name and the
  attribute value. The attribute value is the name of the fetch task that 
  injected the mail.
  </li>
  
  
  <li>The POP3 protocol does not enforce support of any of the Flags associated 
  with messages other than DELETED. This means that 
  <code>markseen="true"</code> will most likely have no effect and 
  therefore, the <strong>fetchall</strong> tag will be inoperative. In this 
  situation, the only way to avoid repeatedly fetching the same mail is to delete
  it from the server using <code>leaveonserver="false"/&gt;</code>.
  </li>
  
  </ul>
  
  </p>
  
  </blockquote>
  </td>
  </tr>
  </table>
  </td>
  </tr>
  <!--FOOTER SEPARATOR-->
  <tr>
  <td colspan="2">
  <hr size="1" noshade="">
  </td>
  </tr>
  <!--PAGE FOOTER-->
  <tr>
  <td colspan="2">
  <div align="center">
  <font size="-1" color="#525D76"><em>
          Copyright &copy; 1999-2004, Apache Software Foundation
          </em></font>
  </div>
  </td>
  </tr>
  </table>
  </body>
  </html>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org