Jonathan Gazeley:
> >> Jul 25 17:12:43 helios postfix/smtpd[14436]: fatal: open database
> >> /etc/postfix/virtual.db: No such file or directory
> >>
> >> I do have a virtual.db, though. I deleted all my *.db and recreated them
> >> with postmap to ensure they were OK. The ownership and perms seem OK:
> >>
> >> [root@helios postfix]# ls -la virtual.db
> >> -rw-r--r--. 1 root mail 12288 Jul 25 17:05 virtual.db

Another possibility is that Berkeley DB returns an ENOENT error for
reasons other than that the file does not exist.

For example, I recall that an early version of ReiserFS returning
ENOENT errors on an open file handle because they could not find
something. In that case, the OS kernel returned an ENOENT even
though the file could be opened.

However, if "postmap -s /etc/postfix/virtual" can "read" the file
as root, but smtpd cannot open the file as root before it drops
privileges, then I suspect a "security" configuration error, like,
perhaps SeLinux is not turned off after all.

Look in your system/security logs.

        Wietse

Reply via email to