joeyates / imap-backup

Backup and Migrate IMAP Email Accounts
MIT License
1.37k stars 75 forks source link

Maximum number of IMAP connections exceeded #123

Closed blakegonzales closed 2 years ago

blakegonzales commented 2 years ago

I've successfully been using imap-backup for a couple years now. Thank you!

Today I ran across this issue in the log after traversing about 75% of my imap folders on the server.

S: RUBY0001 NO [UNAVAILABLE] Maximum number of connections from user+IP exceeded (mail_max_userip_connections=30)

Is there a way to limit the number of connections imap-backup creates as it runs?

Thanks, Blake

joeyates commented 2 years ago

Hi @blakegonzales thanks for opening the issue.

I've created a fix that should reduce the number of connections to the server.

If you can try it out, please do the following:

gem uninstall imap-backup # To uninstall the current version
git clone https://github.com/joeyates/imap-backup.git
cd imap-backup/
git checkout --track -b feature/avoid-unnecessary-reconnections origin/feature/avoid-unnecessary-reconnections
gem build imap-backup.gemspec
sudo gem install imap-backup-*.gem
blakegonzales commented 2 years ago

That worked! I appreciate your support here :)

joeyates commented 2 years ago

This fix is in the 6.0.1 release.