21.03.2021 17:56, Sam Varshavchik пишет:
Eugene Suprun writes:
« HTML content follows »
Hi Sam.
Installed courier-imap 5.1.1 at the production server (1500
mailboxes), users get alerts in their clients (e.g. Mozilla
Thunderbird) when jumping from a folder to another:
Filesystem notification initialization error -- contact your mail
administrator (check for configuration errors with the FAM/Gamin
library)
In /var/log/mail:
Mar 21 16:57:49 mail imapd-ssl[1994]: LOGIN,
<URL:mailto:user=u...@domain.org>user=u...@domain.org,
ip=[194.158.XXX.YYY], port=[61752], protocol=IMAP
Mar 21 16:57:49 mail imapd-ssl[1994]: Failed to create cache file:
maildirwatch (<URL:mailto:u...@domain.org>u...@domain.org)
Mar 21 16:57:49 mail imapd-ssl[1994]: Error: Too many open files
Mar 21 16:57:50 mail imapd-ssl[1994]: Failed to create cache file:
maildirwatch (<URL:mailto:u...@domain.org>u...@domain.org)
Mar 21 16:57:50 mail imapd-ssl[1994]: Error: Too many open files
openSuSE 15.2.
I believe 'FAM/Gamin' should be replaced by 'inotify' in the alerts.
inotifywait -m works fine at the server.
Reinstalled courier-imap 5.0.14
Some Googling around suggests that this might be on a per-userid limit
of inotify file descriptors:
https://stackoverflow.com/questions/11110245/inotify-fd-why-is-the-limit-per-user-id-and-not-per-process
I'm guessing that all your mailboxes are virtual and use the same
system userid.
That is true.
Try increasing /proc/sys/fs/inotify/max_user_instances
Increased its value from 128 to 4096, no problems in an hour. Thanks for
the tip. I am going to check it tomorrow, when there will be much more
mail users.
In any case, I think enabling inotify notification facility should be
configurable: inotify structures require non-negligible amount of memory
to maintain (and it can't be swapped out to disk)
As for alerting a user? It frustrates the user. May be also configurable
setting?
Rough metric: number of concurrent IMAP sessions multiplied by 4.
It's worth adding this to the installation notes.
_______________________________________________
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap
_______________________________________________
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap