]> Pileus Git - ~andy/fetchmail/blobdiff - fetchmail.man
NTLM support integrated.
[~andy/fetchmail] / fetchmail.man
index 50e215c595a3d1d4bb87ab7cb0956299e272c494..6747ab400600c0ab509b247db434778576c7cdb3 100644 (file)
@@ -365,8 +365,14 @@ overrides any limits set in your run control file.
 This option does not work with ETRN.
 .TP
 .B -e, --expunge
-(keyword: expunge)
-When talking to an IMAP server, 
+(keyword: expunge) 
+Arrange for deletions to be made final after a given number of
+messages.  Under POP2 or POP3, fetchmail cannot make deletions final
+without sending QUIT and ending the session -- with this option on,
+fetchmail will break a long mail retrieval session into multiple
+subsessions, sending QUIT after each sub-session. This is a good
+defense against line drops on POP3 servers that do not do the
+equivalent of a QUIT on hangup.  Under IMAP,
 .I fetchmail
 normally issues an EXPUNGE command after each deletion in order to
 force the deletion to be done immediately.  This is safest when your
@@ -377,10 +383,9 @@ server pretty hard, so if your connection is reliable it is good to do
 expunges less frequently.  If you specify this option to an integer N,
 it tells
 .I fetchmail
-to only issue expunges on every Nth delete.  An argument
-of zero suppresses expunges entirely (so no expunges at all will be
-done until the end of run). 
-This option does not work with ETRN, POP2, or POP3.
+to only issue expunges on every Nth delete.  An argument of zero
+suppresses expunges entirely (so no expunges at all will be done until
+the end of run).  This option does not work with ETRN.
 .SS Authentication Options
 .TP
 .B \-u name, --username name
@@ -631,16 +636,25 @@ to already have a ticket-granting ticket. You may pass a username different
 from your principal name using the standard \fB--user\fR command or by
 the \fI.fetchmailrc\fR option \fBuser\fR.
 .PP
+If your IMAP daemon returns the PREAUTH response in its greeting line, 
+fetchmail will notice this and skip the normal authentication step.
+This could be useful, e.g. if you start imapd explicitly using ssh.
+.PP
 If you are using POP3, and the server issues a one-time-password
 challenge conforming to RFC1938, \fIfetchmail\fR will use your
 password as a pass phrase to generate the required response. This
 avoids sending secrets over the net unencrypted.
 .PP
-Compuserve's RPA authentication (similar to APOP) is supported.  If
-you are using POP3, and the RPA code has been compiled into your
-binary, and you query a server in the Compuserve csi.com domain,
-\fIfetchmail\fR will try to perform an RPA pass-phrase authentication
-instead of sending over the password en clair.
+Compuserve's RPA authentication (similar to APOP) is supported. If you
+compile in the support, \fIfetchmail\fR will try to perform an RPA pass-phrase
+authentication instead of sending over the password en clair if it
+detects "@compuserve.com" in the hostname.
+.PP
+Microsoft's NTLM authentication (used by Microsoft Exchange) is
+supported. If you compile in the support, \fIfetchmail\fR will try to
+perform an NTLM authentication (instead of sending over the
+password en clair) whenever the server returns AUTH=NTLM in its
+capability response.
 .PP
 If you are using IPsec, the -T (--netsec) option can be used to pass
 an IP security request to be used when outgoing IP connections are
@@ -859,11 +873,12 @@ move to 550 soon.
 The
 .I fetchmail
 code recognizes and discards the message on any of a list of responses
-that defaults to [571, 550, 501] but can be set with the `antispam'
+that defaults to [571, 550, 501, 554] but can be set with the `antispam'
 option.  This is one of the
 .I only
-two circumstance under which fetchmail ever discards mail (the others
-are the 552 and 553 errors described below).
+three circumstance under which fetchmail ever discards mail (the others
+are the 552 and 553 errors described below, and the suppression of
+multidropped messages with a message-ID already seen).
 .PP
 If
 .I fetchmail
@@ -1426,29 +1441,29 @@ Basic format is:
 Example:
 
 .nf
-  poll pop.provider.net protocol pop3 username jsmith password secret1
+  poll pop.provider.net protocol pop3 username "jsmith" password "secret1"
 .fi
 .PP
 Or, using some abbreviations:
 
 .nf
-  poll pop.provider.net proto pop3 user jsmith password secret1
+  poll pop.provider.net proto pop3 user "jsmith" password "secret1"
 .fi
 .PP
 Multiple servers may be listed:
 
 .nf
-  poll pop.provider.net proto pop3 user jsmith pass secret1
-  poll other.provider.net proto pop2 user John.Smith pass My^Hat
+  poll pop.provider.net proto pop3 user "jsmith" pass "secret1"
+  poll other.provider.net proto pop2 user "John.Smith" pass "My^Hat"
 .fi
 
 Here's a version of those two with more whitespace and some noise words: 
 
 .nf
   poll pop.provider.net proto pop3
-      user jsmith, with password secret1, is jsmith here;
+      user "jsmith", with password secret1, is "jsmith" here;
   poll other.provider.net proto pop2:
-      user John.Smith, with password My^Hat, is John.Smith here;
+      user "John.Smith", with password "My^Hat", is "John.Smith" here;
 .fi
 
 This version is much easier to read and doesn't cost significantly
@@ -1460,7 +1475,7 @@ string in double quotes.  Thus:
 
 .nf
   poll mail.provider.net with proto pop3:
-        user jsmith there has password "u can't krak this"
+        user "jsmith" there has password "u can't krak this"
                     is jws here and wants mda "/bin/mail"
 .fi
 
@@ -1471,11 +1486,11 @@ by individual server descriptions.  So, you could write:
 
 .nf
   defaults proto pop3
-        user jsmith
+        user "jsmith"
   poll pop.provider.net
-        pass secret1
+        pass "secret1"
   poll mail.provider.net
-        user jjsmith there has password secret2
+        user "jjsmith" there has password "secret2"
 .fi
 
 It's possible to specify more than one user per server (this is only
@@ -1485,8 +1500,8 @@ in a multi-user entry must include it.  Here's an example:
 
 .nf
   poll pop.provider.net proto pop3 port 3111
-        user jsmith with pass secret1 is smith here
-        user jones with pass secret2 is jjones here
+        user "jsmith" with pass "secret1" is "smith" here
+        user jones with pass "secret2" is "jjones" here
 .fi
 
 This associates the local username `smith' with the pop.provider.net
@@ -1535,6 +1550,12 @@ poll mailhost.net via localhost port 1234 with proto pop3:
 Use the multiple-local-recipients feature with caution -- it can bite.
 Also note that all multidrop features are ineffective in ETRN mode.
 
+Also, note that in multidrop mode duplicate mails are suppressed.
+A piece of mail is considered duplicate if it has the same message-ID 
+as the message immediately preceding.  Such runs of messages may
+be generated when copies of a message addressed to multiple 
+users are delivered to a multidrop box.
+
 .SS Header vs. Envelope addresses 
 The fundamental problem is that by having your mailserver toss several
 peoples' mail in a single maildrop box, you may have thrown away
@@ -1712,6 +1733,8 @@ Fatal DNS error.  Fetchmail encountered an error while performing
 a DNS lookup at startup and could not proceed.
 .IP 12
 BSMTP batch file could not be opened.
+.IP 13
+Poll terminated by a fetch limit (see the --fetchlimit option).
 .IP 23
 Internal error.  You should see a message on standard error with
 details.
@@ -1755,11 +1778,12 @@ lock file to help prevent concurrent runs (root mode, Linux systems).
 lock file to help prevent concurrent runs (root mode, systems without /var/run).
 
 .SH ENVIRONMENT
-For correct initialization,
-.I fetchmail
-requires either that \fBgetpwuid\fR(3) be able to retrieve a password
-entry from your user ID, or that either the LOGNAME or USER and the
-HOME environment variables are correctly set.
+If either the LOGNAME or USER and the variable is correctly set
+(e.g. the corresponding UID matches the session user ID) then that
+name is used as the default local name.  Otherwise \fBgetpwuid\fR(3)
+mudst be able to retrieve a password entry for the session ID (this
+elaborate logic is designed to handle the case of multiple names per
+userid gracefully).
 
 .SH SIGNALS
 If a
@@ -1831,7 +1855,7 @@ POP2:
 RFC 937
 .TP 5
 POP3:
-RFC 1081, RFC 1225, RFC 1460, RFC 1725, RFC 1939
+RFC 1081, RFC 1225, RFC 1460, RFC 1725, RFC 1939, RFC 2449
 .TP 5
 APOP:
 RFC 1460, RFC 1725, RFC 1939
@@ -1843,7 +1867,7 @@ IMAP2/IMAP2BIS:
 RFC 1176, RFC 1732
 .TP 5
 IMAP4:
-RFC 1730, RFC 1731, RFC 1732, RFC 2060, RFC 2061
+RFC 1730, RFC 1731, RFC 1732, RFC 2060, RFC 2061, RFC 2195
 .TP 5
 ETRN:
 RFC 1985