This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Truncated Mails with fetchmail

ASG V 7.101
Fetching mails from an external pop3 account via fetchmail (V 6.3.2) truncates all messages at the first non-header line when using astaro's pop3 proxy. 

With fetchmail (no special options in the configuration) only the first line of text is fetched from the pop3 server (verified by tcpdump). It seems that the first cr or lf terminates the mail download.

This behaviour is independent of the setting of transparent mode for the pop3 host. Without a proxy fetchmail works correct. 

Using the config option --all (fetchall) forces fetchmail to use RETR instead of TOP and the mail is ok!

Any comments on this?


This thread was automatically locked due to age.
  • This issue is described in the online help under Email Security->Pop3->Advanced.

    "In addition, if the prefetch mode is disabled, the TOP method is not supported to download e-mails from the mail server for security reasons—messages that are received through TOP cannot be scanned. Therefore, the clients should be configured to use the RETR method to receive e-mails."

    The TOP command is only implementet for retrieving the header and a few lines of the body not for thw whole message. To get the complete message the RETR command is the right command. (RFC 1939 http://tools.ietf.org/html/rfc1939)

    So your client use the "wrong" command to fetch the message.

    Either you configure fetchmail to use the RETR command to fetch the messages or you use the Prefetch mode on the ASG.
  • Tanks for your quick answer and the clarification of RETR/TOP.

    I have already switched fetchmail to use RETR (with 'fetchall' in the configuration - it is probably not the correct thing to do but as all mails are deleted after fetching this does not matter).

    RFC 1939 does't make such a clear distinction between RETR and TOP  - I already wondered why there are two commands for the same thing.
  • Just a side note: I found the following statement in the fetchmail FAQ on www.fetchmail.info:

    "Fetchmail normally uses TOP for message retrieval in order to avoid marking messages seen, but 'fetchall' forces it to use RETR instead."