From ca7a9baab8eb90ba984b44fece330b7c14f407ad Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 8 Oct 2006 23:26:57 +0000 Subject: Revise FAQ. svn path=/branches/BRANCH_6-3/; revision=4918 --- fetchmail-FAQ.html | 117 +++++++++++++++++------------------------------------ 1 file changed, 37 insertions(+), 80 deletions(-) (limited to 'fetchmail-FAQ.html') diff --git a/fetchmail-FAQ.html b/fetchmail-FAQ.html index 3b86c436..17168554 100644 --- a/fetchmail-FAQ.html +++ b/fetchmail-FAQ.html @@ -264,8 +264,8 @@ order?
working?
O9. Why does fetchmail keep retrieving the same messages over and over?
-O10. Why is the received date on all my messages the -same?
+O10. Why is the received date on all my messages the + same?
O11. I keep getting messages that say "Repoll immediately" in my logs.
O12. Fetchmail no longer expunges mail on a 451 SMTP response.
@@ -3193,16 +3193,16 @@ the logfile doesn't exist.

This is a feature, not a bug. It's in line with normal practice for system daemons and allows you to suppress logging by removing -the log, without hacking potentially fragile startup scripts. To -get around it, just touch(1) the logfile before you run fetchmail -(this will have no effect on the contents of the logfile if it -already exists).

+the log file, without hacking potentially fragile startup scripts. +To get around it, just touch(1) the logfile before you run fetchmail +(this will have no effect on the contents of the logfile if it already +exists).

-

O2. Every time I get a POP or IMAP message +

O2. Every time I get a POP or IMAP message, the header is dumped to all my terminal sessions.

Fetchmail uses the local sendmail to perform final delivery, -which Netscape and other clients doesn't do; the announcement of +which Mozilla and other clients don't do; the announcement of new messages is done by a daemon that sendmail pokes. There should be a "biff" command to control this. Type

@@ -3218,7 +3218,7 @@ chmod -x $(tty)

which is essentially what biff -n will do. If this doesn't work, comment out any reference to "comsat" in your -/etc/inetd.conf file and restart inetd.

+/etc/inetd.conf file and reload (or restart) inetd.

In Slackware Linux distributions, the last line in /etc/profile is

@@ -3239,28 +3239,21 @@ to solve the problem system-wide. every poll cycle?

No, but versions 5.2.2 and later will notice when you modify -your rc file and restart, reading it.

+your rc file and restart, reading it. Note that this causes troubles if +you need to provide a password via the console, unless you're running in +--nodetach mode.

O4. Why do deleted messages show up again when I take a line hit while downloading?

-

Because you're using a POP3 other than Qualcomm qpopper, or an -IMAP with a long expunge interval.

-

According to the POP3 RFCs, deletes aren't actually performed until you issue the end-of-session QUIT command. Fetchmail cannot -fix this, because doing it right takes cooperation from the server. -There are two possible remedies:

- -

One is to switch to qpopper (the free POP3 server from Qualcomm, -the Eudora people). The qpopper software violates the POP3 RFCs by -doing an expunge (removing deleted messages) on a line hangup, as -well as on processing a QUIT command.

+fix this, but there is a workaround: use the --expunge option with a +reasonably low figure that works for you. Try 10 for a start.

-

The other (which we recommend) is to switch to IMAP. IMAP has an explicit expunge -command and fetchmail normally uses it to delete messages -immediately after they are downloaded.

+

IMAP is less susceptible to this problem, because the "deleted" +message marks are persistent, but they aren't in POP3. Note that the +--expunge default for IMAP is different than the default for POP3.

If you get very unlucky, you might take a line hit in the window between the delete and the expunge. If you've set a longer expunge @@ -3295,14 +3288,16 @@ hangs near the start of each poll cycle. also each time it gets a HELO in listener mode.

Your resolver configuration may be causing one of these lookups -to fail and time out. Check /etc/resolv.conf and -/etc/hosts file. Make sure your hostname and -fully-qualified domain name are both in /etc/hosts, -and that hosts is looked at before DNS is queried. You probably -also want your remote mail server(s) to be in the hosts file.

+to fail and time out. Check your /etc/resolv.conf, +/etc/host.conf, /etc/nsswitch.conf (if you +have the latter two) and you /etc/hosts files. Make sure +your hostname and fully-qualified domain name are both in +/etc/hosts, and that hosts is looked at before DNS is +queried. You probably also want your remote mail server(s) to be in the +hosts file.

-

You can suppress the startup-time lookup if need to by -reconfiguring with FEATURE(nodns).

+

You can suppress the startup-time lookup if need to by reconfiguring +with FEATURE(nodns).

Configuring your bind library to cache DNS lookups locally may help, and is a good idea for speeding up other services as well. @@ -3345,19 +3340,8 @@ same messages over and over?

First, check to see that you haven't enabled the keep and fetchall option. If you have, -turn keep off.

- -

There are various forms of lossage involving the POP3 UIDL -feature that can lead to all your old messages being seen again -after a line drop. I have given up trying to fix these, as the UIDL -code breaks worse every time I touch it. The problem is -fundamental; maintaining and garbage-collecting the right kind of -client-side state is just hard. Whoever put UIDLs in RFC1725 and -removed LAST should be hung up by his thumbs and whipped with -scorpions. The right answers are either (a) live with the -occasional breakage, (b) switch to IMAP4, or (c) fix the code -yourself and send me a patch. Unless you choose (c), I don't want -to hear about it.

+turn one of them off - which one, depends on why they have been set in +the first place, and to a lesser degree on the upstream server.

This can also happen when some other mail client is logged in to your mail server, if it uses a simple exclusive-locking scheme (and @@ -3367,45 +3351,17 @@ is write-locked by the other instance yours can neither mark messages seen or delete them. The solution is to either (a) wait for the other client to finish, or (b) terminate it.

-

James Stevens <James.Stevens at kyzo.com> writes:

- -

We had a Linux box dialing the Net and collecting mail from -an NT POP3 server. Fetchmail was correctly collecting and deleting -each e-mail one by one. However,the dial-up connection was very -unreliable and would often just drop out in the middle of a -session.

- -

Interestingly, unless the TCP POP3 connection was terminated -normally (I guess with a POP3 "QUIT" command) NT would then roll -back all the deletes !!!

- -

This meant if the first e-mail was very large it might just -end up continuously collecting it, basically jamming the queue. Or, -if the queue became very full itmight never get a long enough phone -connection to retrieve the entire mailbox, and NT would roll back -any deletes, so it would end up collecting (and delivering) the -first few e-mails again and again. As the POP3 mailbox became -fuller and fuller the chances of getting a connection long enough -to collect theentire mailbox became smaller and smaller.

- -

Our solution was to make fetchmail only collect a few (say 5 -or 10) e-mails at atime, thus trying to ensure that the POP3 -connection is terminated correctly.

- -

Unfortunately, this is exactly the way POP3 servers are supposed -to behave on a line drop, according to the RFCs. I recommend -switching to IMAP and using a short expunge interval.

- -

O10. Why is the received date on all my -messages the same?

+

O10. Why is the received date on all my + messages the same?i

-

This is a design choice in your MTA, not fetchmail. It's taking -the received date from the last Received header.

+

The answer that used to be here made no sense.

O11. I keep getting messages that say "Repoll immediately" in my logs.

-

This is your server barfing on the CAPA probe that fetchmail sends.

+

This is your server barfing on the CAPA probe that fetchmail sends. +Because some servers like to drop the connection after that probe, +fetchmail will re-poll immediately with this probe defeated.

If you run fetchmail in daemon mode (say "set daemon 600"), you will get the message only once per run.

@@ -3429,7 +3385,8 @@ not keen on checking the sender addresses. This problem typically occurs if your mail server is not checking the sender addresses, but your local server is.

-

Or you could declare antispam 451.

+

Or you could declare antispam 451, which is not +recommended though, as it may cause mail loss.

Or, you could check your nameserver configuration and query logs for dns errors.

@@ -3439,7 +3396,7 @@ dns errors.

O13. I want timestamp information in my fetchmail logs.

Write a preconnect command in your configuration file that -does something like "date >> $HOME/Procmail/fetchmail.log".

+does something like "date >> $HOME/fetchmail.log".

O14. Fetchmail no longer deletes oversized mails with --flush.

-- cgit v1.2.3