Hi,
We have a lot of users on IMAP/POP3 boxes. We want to keep these mailboxes until we have migrated all users to Scalix. We use fetchmail to move emails from the IMAP mailboxes to Scalix.
The problem is related to big emails. For some reason big emails (size is in megabytes) are always timed out by fetchmail. It seems like the forwarding/moving of big emails is extremely slow?
I have increased the fetchmail timeouts to 1800 seconds, and this was not enough for an email that was aprox. 9 MB. The I increased it to 3600 seconds and it ended also in a timeout.
Here's the output from fetchmail:
fetchmail: reading message jdoe34567@pop.service.com:1 of 18 (2417 header octets) fetchmail: (9655035 body octets) fetchmail: timeout after 1800 seconds.
fetchmail: socket error while fetching from pop.service.com
fetchmail: Query status=2 (SOCKET)
fetchmail: reading message jdoe34567@pop.service.com:1 of 21 (2417 header octets) fetchmail: (9655035 body octets) fetchmail: timeout after 3600 seconds.
fetchmail: socket error while fetching from pop.service.com
fetchmail: Query status=2 (SOCKET)
Here's an example of the fetchmail rc file:
set daemon 500
set bouncemail
set logfile /var/log/fetchmail.log
set postmaster "jdoe@mydomain.com"
poll pop.service.com protocol imap timeout 60 username "jdoe34567" password "a374397"
is "john.doe@mydomain.com" smtphost "mail.mydomain.internal" fetchall limit 0 fetchsizelimit 0
I could increase the timeout to infinity and beyond, but then one user could block moving/forwarding of emails for other users (in case of huge emails). One idea I had was to have two separate fetchmail processes, one that does not timeout for hours and another one that has a normal timeout of say 1-5 minutes. But I havent't yet investigated how fetchmail or the IMAP mailboxes behave in a setup like this...
Any help appreciated!
Thanks.
- CLi