[Postfixbuch-users] postgrey "can't create DB environment"

Sven Übelacker sven at uebelacker.net
Fr Aug 19 00:06:43 CEST 2005


Hallo!

Vielleicht habt Ihr eine Idee, die postgrey mailingliste scheint auch bei 
aehnlichen fragen ratlos oder: die loesung ist zu einfach und ich blicks 
nicht :) (bevor ich jetzt das Ding ganz umschreibe, damits tut... frag ich 
lieber Euch nochmal)

Sorry fuers Crossposting...

Danke,
Sven.



Hi,

I tried and tried but can't get it... Found no answer in old messages nor the 
net. I reinstalled db41 and BerkeleyDB for perl many times, toggled every 
possible permissions and paths, and examined the code. I hope here's some one 
knowing that problem. 

Thanks,
Sven.

I call:
/usr/local/bin/postgrey --inet=127.0.0.1:10026 -d
and get:
ERROR: can't create DB environment: No such file or directory

packages:
db41-4.1.25-75
db41-devel-4.1.25-75
perl-BerkeleyDB-0.25-4

postgrey user:
postgrey:x:5008:65534:Greylisting User:/var/spool/postfix/postgrey:/bin/false

Here are the (directory) rights:
/var/spool/postfix/postgrey/
drwxr-xr-x   2 postgrey root    4096 Aug 16 00:33 ./
-rw-------   1 postgrey nogroup    0 Aug 16 00:05 postgrey.lock

/usr/local/bin/postgrey
-rwxr-xr-x  1 root root 28816 Aug 16 00:26 /usr/local/bin/postgrey*

/etc/postfix/postgrey_whitelist_*
-rw-r--r--  1 postgrey nogroup 2707 Aug 11 
23:15 /etc/postfix/postgrey_whitelist_clients
-rw-r--r--  1 postgrey nogroup    0 Aug 11 
23:16 /etc/postfix/postgrey_whitelist_clients.local
-rw-r--r--  1 postgrey nogroup  188 Aug 11 
18:18 /etc/postfix/postgrey_whitelist_recipients

strace tail, seems to be something from "bomart"s ioctl and "Ralf 
Hildebrandt"s can't create DB environment... what's wrong with /dev/null?

open("/dev/null", O_RDONLY|O_LARGEFILE) = 4
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfffeb8c) = -1 ENOTTY (Inappropriate 
ioctl for device)
_llseek(4, 0, [0], SEEK_CUR)            = 0
fstat64(4, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
dup2(4, 0)                              = 0
close(4)                                = 0
fcntl64(0, F_SETFD, 0)                  = 0
open("/dev/null", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 4
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfffeb8c) = -1 ENOTTY (Inappropriate 
ioctl for device)
_llseek(4, 0, [0], SEEK_CUR)            = 0
fstat64(4, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
dup2(4, 1)                              = 1
close(4)                                = 0
fcntl64(1, F_SETFD, 0)                  = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfffeb8c) = -1 ENOTTY (Inappropriate 
ioctl for device)
_llseek(1, 0, [0], SEEK_CUR)            = 0
rt_sigprocmask(SIG_BLOCK, [INT], NULL, 8) = 0
_llseek(3, 20834, [20834], SEEK_SET)    = 0
_llseek(3, 0, [20834], SEEK_CUR)        = 0
fork(ERROR: can't create DB environment: No such file or directory
)                                  = 19836
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigprocmask(SIG_BLOCK, [INT], [INT RTMIN], 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [INT RTMIN], NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [INT], NULL, 8) = 0
close(3)                                = 0
exit_group(0)  



Mehr Informationen über die Mailingliste Postfixbuch-users