Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] Frequent crashes when dumping db

2006-11-27 by shuttlebox

On 11/27/06, Oliver Fromme <olli@...> wrote:
>  That won't work.  /usr/bin/ulimit cannot be use in that way,
>  and even if it could, the modified limit wouldn't take effect
>  because the command runs in a subshell.  It doesn't affect
>  the parent shell which then spawns milter-greylist.
>
>  You need to use "ulimit -n 4096" (without "/usr/bin"!) which
>  is a shell-builtin command.

Thanks for spotting that. I changed it and found a way to see a
running processes limits in Solaris:

/usr/proc/bin/pfiles 3716 | grep rlimit
  Current rlimit: 1024 file descriptors

I tested with 1024 this time and now it uses it (after the change
above) but it still crashes all the time. I seem to have another error
message though.

Nov 27 17:05:01 viola milter-greylist: [ID 525239 mail.error] cannot
write dumpfile "/var/milter-greylist/greylist.db-XXKqaGyg": No such
file or directory
Nov 27 17:05:01 viola milter-greylist: [ID 421540 mail.info] Final
database dump: no change to dump
Nov 27 17:05:01 viola milter-greylist: [ID 649572 mail.info] Exiting

That file (temporary db?) does in fact exist.

# ls -l /var/milter-greylist/greylist.db-XXKqaGyg
-rw-------   1 milter   milter         0 Nov 27 17:05
/var/milter-greylist/greylist.db-XXKqaGyg

I also have the permissions to create files in that directory.

# su - milter
Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
$ id
uid=5501(milter) gid=5501(milter)
$ pwd
/var/milter-greylist
$ ls -la
total 8
drwxr-x---   2 milter   milter       512 Nov 27 17:05 .
drwxr-xr-x  35 root     sys         1024 Sep 13 18:55 ..
-rw-------   1 milter   milter         0 Nov 27 16:50 greylist.db-XX7CaGTa
-rw-------   1 milter   milter         0 Nov 27 17:05 greylist.db-XXKqaGyg
-rw-------   1 milter   milter         0 Nov 27 16:35 greylist.db-XXuZaaM1
-rw-r--r--   1 root     other          5 Nov 27 16:55 milter-greylist.pid
srwxr-xr-x   1 milter   milter         0 Nov 27 16:55 milter-greylist.sock
$ touch testing
$ ls -l
total 4
-rw-r--r--   1 root     other          5 Nov 27 16:05 fdlimit
-rw-------   1 milter   milter         0 Nov 27 16:50 greylist.db-XX7CaGTa
-rw-------   1 milter   milter         0 Nov 27 17:05 greylist.db-XXKqaGyg
-rw-------   1 milter   milter         0 Nov 27 16:35 greylist.db-XXuZaaM1
-rw-r--r--   1 root     other          5 Nov 27 16:55 milter-greylist.pid
srwxr-xr-x   1 milter   milter         0 Nov 27 16:55 milter-greylist.sock
-rw-r--r--   1 milter   milter         0 Nov 27 17:09 testing


-- 
/peter

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.