Guest User!

You are not Sophos Staff.

[7.260] Unable to retrieve email from POP3proxy [CONFIRMED]

Hi,

I've just updated my 7.201 virtual machine to 7.260 using the new up2date package.

I'm using fetchmail to retrieve email from a pop3 server and forward it to my mail server. After the update the pop3 proxy still downloads new mail but they cannot be retrieved by fetchmail any longer.

In the mail manager I see some mails waiting for client pickup. While fetchmail is running the same number of mails is displayed but no mail can be downloaded from the proxy:

41 messages for xyz at pop.web.de (22807978 octets).
fetchmail: couldn't fetch headers, message xyz@pop.web.de:1 (1047658 octets)
fetchmail: couldn't fetch headers, message xyz@pop.web.de:2 (1066199 octets)
fetchmail: couldn't fetch headers, message xyz@pop.web.de:3 (1065019 octets)
fetchmail: couldn't fetch headers, message xyz@pop.web.de:4 (454044 octets)
fetchmail: couldn't fetch headers, message xyz@pop.web.de:5 (195467 octets)
fetchmail: couldn't fetch headers, message xyz@pop.web.de:6 (727840 octets)
fetchmail: couldn't fetch headers, message xyz@pop.web.de:7 (141956 octets)
fetchmail: couldn't fetch headers, message xyz@pop.web.de:8 (898648 octets)
fetchmail: couldn't fetch headers, message xyz@pop.web.de:9 (147391 octets)


The pop3 proxy log looks fine and no errors are logged.

Regards,
Bastian
  • We've already noticed that fetchmail is a bit special in it's use of the "TOP" POP3 command. Maybe this is related. I'm no specialist on fetchmail (it's been like 12 years since I used it), but does it have a more verbose debug output? Alternatively, can you please "tcpdump -s0 -w out ..." such a session (on the fetchmail host)?

    Send that stuff to my colleague Christoph at cgarst@astaro.com. He'll return from holidays on Monday.

    Thanks!
  • Thanks for your reply...

    I'll check if there are any verbose options. I'm using fetchmail on a windows machine running cygwin [;)], but until today it worked well.

    I just tried another pop3 forwarder, EFS from Chimera, which I used some time ago. It doesn't work also as it hangs after downloading one or two mails:


    Edit: a third POP3 proxy called pullmail doesn't work either:
    C:\temp>C:\temp\PULLMAIL.EXE pop.web.de xyc *** /to:abc@def.de /t=60


    Edit 2: OK this was because of a hanging pop3 session. After restarting the proxy it is working with pullmail. But fetchmail and EFS still don't work.

    This leads me to the assumption that this is not fetchmail-related.

    Regards,
    Bastian
  • I'll use pullmail until this problem is solved...

    Here is the requested verbose output from fetchmail:
    fetchmail: 6.3.8 querying pop.web.de (protocol POP3) at Wed Jul 23 22:40:59 2008: poll started
    Trying to connect to 217.72.192.134/110...connected.
    fetchmail: POP3 CAPA
    fetchmail: POP3xyz@pop.web.de
    Trying to connect to 217.72.192.134/110...connected.
    fetchmail: POP3 USER xyz
    fetchmail: POP3 PASS *
    fetchmail: POP3 STAT
    fetchmail: POP3 LAST
    fetchmail: POP3 UIDL
    fetchmail: POP3 LIST 1
    fetchmail: POP3 TOP 1 99999999
    fetchmail: POP3xyz@pop.web.de:1 (14707 octets)
    fetchmail: POP3> LIST 2
    fetchmail: POP3 TOP 2 99999999
    fetchmail: POP3xyz@pop.web.de:2 (14721 octets)
    fetchmail: POP3> LIST 3
    fetchmail: POP3 TOP 3 99999999
    fetchmail: POP3xyz@pop.web.de:3 (14636 octets)
    fetchmail: POP3> QUIT
    fetchmail: POP3


    Regards and a nive evening, 
    Bastian
  • We have intentionally limited the TOP account, because it could otherwise be used to circumvent the content scanning (Note: A "TOP 0" should normally fetch all the headers - the number appended to the command specifies the number of BODY lines to fetch in addition).

    As you see, fetchmail has the habit of retrieving both headers AND the whole message with "TOP". This may be creative, but is a bit fishy. Christoph may elaborate more on this later ...
  • There are some problems if you retrieve all mails with the TOP-command. Because of this, we have limited the TOP-command. It will work if you specify the fetchall option (-a on commandline). For more information please read "RETR or TOP" in the fetchmail manual.
  • Your right, it works using the -a switch.