When logging into webmail you are unable to read email. How can I fix the error: Out of memory (service imap { vsz_limit=512 MB }, you may need to increase it in the maillog?

When logging into webmail you are unable to read mail:

IMAP error reported by server

INTERNAL ERROR
Could not load message from server

You will see this in the /var/log/maillog:

Feb 10 06:41:40 www0 dovecot: service=imap, user=user@example.com, ip=[203.0.113.1]. Fatal: master: service(imap): child 10671 returned error 83 (Out of memory (service imap { vsz_limit=512 MB }, you may need to increase it) - set CORE_OUTOFMEM=1 environment to get core dump)

In this example the size of the file /var/qmail/mailnames/example.com/user/Maildir/dovecot.index.cache is more than the default "vsz_limit" value:

ls -lah /var/qmail/mailnames/example.com/user/Maildir/dovecot.index.cache
-rw------- 1 popuser popuser 750M Feb 27 11:21 /var/qmail/mailnames/example.com/user/Maildir/dovecot.index.cache

You can check if any of your mailbox dovecot.index.cache files are larger than the limit of 512MB using the command below. It will list them all sorted by the smallest to largest (in bytes):

find /var/qmail/mailnames/ -type f -name dovecot.index.cache  -exec ls -al {} \; | sort -k 5 -n  

To raise the limit create the file: /etc/dovecot/conf.d/zzz_custom.conf and raise it so its higher than the largest index from the command above. Example:

service imap {
vsz_limit = 1024MB
}

Restart dovecot:

systemctl restart dovecot

 

 

 

  • vsz_limit, roundcube, horde, webmail
  • 0 Benutzer fanden dies hilfreich
War diese Antwort hilfreich?

Verwandte Artikel

How can I fix any statistics generation problems?

Missing the Warden Crontab Entry There is a crontab entry that will update Warden statistics...

How can I fix the error: "milter-reject: END-OF-MESSAGE from..." in the log and found the AV in error (cannot read /etc/clam.d/scan.conf).

Cloudlinux / Imunify360 added their own version of ClamAV to their repo which accidentally...

How can I fix the error: Can't connect to TCP port 10024 on 127.0.0.0 [Address already in use] when trying to start Amavis?

When trying to start Amavis you see this in the mail log: Oct 02 03:20:15 condor3648 systemd[1]:...

How can I fix the error: Can't connect to TCP port 10024 on ::1 [Cannot assign requested address] when trying to start Amavis?

When trying to start Amavis you see this in the mail log: Oct 02 03:20:15 condor3648 systemd[1]:...

How can I fix the error: Error [Contentfilter_Settings_Contentfilter]. Message [[QUARANTINEDIR] must be a valid directory?

This error means that Amavis was not installed correctly. Try running the Warden from the command...