#1143801 fetchmail: io error on downloading large message

Package:
fetchmail
Source:
fetchmail
Description:
SSL enabled POP3, APOP, IMAP mail gatherer/forwarder
Submitter:
Francesco Potortì
Date:
2026-08-06 10:37:02 UTC
Severity:
normal
#1143801#5
Date:
2026-08-06 10:35:22 UTC
From:
To:
I get an incoming email with a big attachment.  When downloading it fetchmail errors out because sendmail refuses messages that are too big.  The problem is that fetchmail stops downloading, so all the emails stay on the server and I stop receiving email without any notification of the problem

This is from a -vv log with real names and addresses masked:

 fetchmail: about to deliver with: /sbin/sendmail -i -f '*@*' -- '*'
 fetchmail: error writing message text
 fetchmail: POP3> QUIT

Sendmail  is from exim4, on which log I get:

 rejected from <*@*> U=*: message too big: read=52428801 max=52428800
 rejected from <> U=Debian-exim: message too big: read=52428801 max=52428800
 Error while reading message with no usable sender address (R=1wruzF-00000001TxU-0vMW): message too big (limit set to 52428800)
 Child mail process returned status 1

So everything works as expected, apart from the fact that fetchmail should behave as it behaves when the 'limit' option is set, that is:

1) notify me of the problem
2) skip the affected message and go to the next messages

I supose that it may be not easy to detect what the problem is, but this is serious enought that I think fetchmail should at least try and do 1), better yet doing 2).

I set the severity as 'important' because of missing 1): the problem goes unnoticed until I start wondering why I am not receiveng email from that server.