Originally Posted by
5tj
Mailserver on localhost is postfix, it is configured to accept these email addresses and deliver to local users.
Message size limit is set to 50 MB.
After running for a year without problems, one user received an email larger than the postfix message size limit in the Mailbox at the ISP.
fetchmail fetched the message via pop3 and delivered via smtp. Postfix complained about the message size (code 552) to fetchmail. Fetchmail logged the 552 code, sent a delivery failure notification to the sender, and did NOT delete the large message from the inbox at the ISP.
The events from last paragraph repeated every few minutes until the sender complained about getting hundreds of delivery failure notifications.
My question is, why did fetchmail not delete the large message from the inbox at the ISP? I generally appreciate that fetchmail makes sure that emails are correctly delivered before deleting them from the source, but in this case, as stated in the fetchmail man page, fetchmail should have deleted the message from the ISP inbox. The fetchmail man page states:
I've just come across the same problem. In my case, on a bandwidth-capped supply, fetchmail was repeatedly downloading and then failing to deliver a 10MB message, ramping up bandwidth pretty fast!
My solution was to set a limit in the fetchmailrc which was lower than my postfix limit - e.g.
Code:
limit 100000000 # 100MB per message
in the fetchmailrc and
Code:
postconf -e "message_size_limit = 101000000"
to set a 101MB limit for the local SMTP delivery using postfix.
Hope that helps someone else
Bookmarks