Still I have mail problems.
After 1 week again the mail was not delivered.
The queue was loaded with several pages of mail.
People trying to send mail got errors.
The mail log continually reports DBERROR on the cyrus database.
I hope someone can help!!
Jul 13 06:19:59 office master[25489]: service lmtp pid 20669 in READY state: terminated abnormally
Jul 13 06:19:59 office lmtp[20670]: DBERROR db4: Logging region out of memory; you may need to increase its size
Jul 13 06:19:59 office lmtp[20670]: DBERROR: opening /var/lib/imap/deliver.db: Cannot allocate memory
Jul 13 06:19:59 office lmtp[20670]: DBERROR: opening /var/lib/imap/deliver.db: cyrusdb error
Jul 13 06:19:59 office lmtp[20670]: FATAL: lmtpd: unable to init duplicate delivery database
Jul 13 06:19:59 office master[25489]: service lmtp pid 20670 in READY state: terminated abnormally
Jul 13 06:19:59 office lmtp[20671]: DBERROR db4: Logging region out of memory; you may need to increase its size
I did do extra testing and 'solving' after the above posting (but this does not help):
I fixed the database with help of this webpage:
i8n1.blogspot.nl/2010/03/cyrus-imap-logg...n-out-of-memory.html
But also this did not help.
After posting the report of 2 july, I noticed that the cyrusdb has 2 locations:
/var/lib/imap/db
and
/var/lib/imap
Since the described fix was for the first location, I repeated the database fix for the second location.
Created DB_CONFIG listed here:
| Code: |
[root@office ~]# cat /var/lib/imap/DB_CONFIG
set_cachesize 0 150000000 1
set_lg_regionmax 1048576
set_lg_bsize 2097152
set_flags DB_LOG_AUTOREMOVE
set_tmp_dir /dev/shm
set_lk_detect DB_LOCK_DEFAULT
|
Then stopped mail server, fixed database and started mail server:
| Code: |
/etc/init.d/cyrus-imapd stop
db_recover -h /var/lib/imap
/etc/init.d/cyrus-imapd start
/etc/init.d/cyrus-imapd restart
|
The extra 'restart' was needed because the start showed a failure on importing the database. The restart was OK.
To check the database actually has the settings I did this command:
| Code: |
[root@office ~]# db_stat -l -h /var/lib/imap
0x40988 Log magic number
10 Log version number
2MB Log record cache size
0660 Log file mode
10Mb Current log file size
0 Log bytes written
0 Log bytes written since last checkpoint
0 Total log file writes
0 Total log file write due to overflow
0 Total log file flushes
1 Current log file number
28 Current log file offset
1 On-disk log file number
28 On-disk log file offset
0 Maximum commits in a log flush
0 Minimum commits in a log flush
3MB Log region size
0 The number of region locks that required waiting (0%)
|
This listing is of today, after the stop / start of the mail server.
Mail is delivered OK at this time, although this may stop at any time
The db_stat -m is not possible:
| Code: |
[root@office ~]# db_stat -m -h /var/lib/imap
db_stat: DB_ENV->open: /var/lib/imap: No such file or directory
|
I'm not sure what that means. The db should be there, and should be OK???
Please help!!
