Yes I know, where did I say it was IMAP?
I was just telling you in our instance when we ran into a similar issue as you described, it was due to the delay between issuing the DATA and 250 commands. I am only providing this information as a possible solution to the issue, but then again maybe your issue is completely unrelated to that if you say it is IMAP related. I assume SMTP will become an issue if the time between the DATA and 250 commands is well over 60 seconds. In instances where it is a SMTP issue, you usually see the email stuck in the “Outbox”, which will cause eM Client to keep trying to send again and timing out again (basically a loop).
I agree SMTP servers do various processing between the acceptance and acknowledgement, which is why in our case the server side code was adjusted to speed up the process. Of course this doesn’t fix everything since the amount of time the data is being sent is variable.
I agree hard-coded limits such as this are bad, and there should be an option to change. Of course it was noticed email clients had different default time-out values, for example I think Thunderbird has a default value of 100 seconds, which can be changed in the advanced settings by adjusting the “mailnews.tcptimeout” setting. Of course most normal users will not edit this and will most likely use the default client time-out, so this would be a niche case for use.
Using the power of AI (assuming it doesn’t hallucinate) here is the result I got back about the SMTP spec recommendation you state:
According to the SMTP specification (RFC 5321), while there isn’t a strict, explicitly defined “DATA timeout” value, best practice suggests setting a timeout for the DATA command of at least 5 minutes when receiving email data from a sender, allowing ample time for large messages to be transferred without interruption; this is especially important for reliable email delivery.
So I agree 1 minute is not long enough if that is indeed what eM Client uses for any IMAP or SMTP time-out, and this should be more like 5 minutes. Additionally I agree this should be a setting where it can be changed from any default. I am not arguing your point at all when it comes to increasing this limit, and allowing it to be adjusted. The problem is your most likely still going to hit a limit at some point where using something other then SMTP is recommended to send very large attachments.
So lets hope someone from eM Client reads this and could comment further about any SMTP or IMAP time-out limits, what exactly they are, and if they can be adjusted to allow larger files to be sent using SMTP, or copied using IMAP.