Hello,

I have configured my postfix to use virtual mailboxes (using berkeley dbs
for each setting), however postfix is not able to find the database files.
Here's the relevant configuration and setup:

/etc/postfix/main.cf:
canonical_maps = hash:/etc/postfix/canonical
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_mailbox_domains = hash:/etc/postfix/virtual-mailbox-domains
virtual_mailbox_maps = hash:/etc/postfix/virtual-mailbox-users

After doing that, I've created all 4 files (/etc/postfix/canonical,
/etc/postfix/virtual, /etc/postfix/virtual-mailbox-domains,
/etc/postfix/virtual-mailbox-users) with the necessary information in them,
and then:

postmap /etc/postfix/canonical
postmap /etc/postfix/virtual
postmap /etc/postfix/virtual-mailbox-domains
postmap /etc/postfix/virtual-mailbox-users

After that, I confirmed that all the .db files were created inside
/etc/postfix.
When I start postfix and try to send a test message from this email address
to the one I wanted to test, I get the following in /var/log/mail.log:

Mar 22 22:15:45 sidhion postfix/postscreen[1799]: CONNECT from
[209.85.213.51]:36861 to [**]:25
Mar 22 22:15:45 sidhion postfix/postscreen[1799]: PASS OLD
[209.85.213.51]:36861
Mar 22 22:15:45 sidhion postfix/smtpd[1800]: error: open database
/etc/postfix/virtual-mailbox-users.db: No such file or directory
Mar 22 22:15:45 sidhion postfix/smtpd[1800]: connect from
mail-vk0-f51.google.com[209.85.213.51]
Mar 22 22:15:45 sidhion postfix/smtpd[1800]: Trusted TLS connection
established from mail-vk0-f51.google.com[209.85.213.51]: TLSv1.2 with
cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Mar 22 22:15:46 sidhion postfix/trivial-rewrite[1802]: error: open database
/etc/postfix/virtual-mailbox-domains.db: No such file or directory
Mar 22 22:15:46 sidhion postfix/trivial-rewrite[1802]: warning:
hash:/etc/postfix/virtual-mailbox-domains is unavailable. open database
/etc/postfix/virtual-mailbox-domains.db: No such file or directory
Mar 22 22:15:46 sidhion postfix/trivial-rewrite[1802]: warning:
hash:/etc/postfix/virtual-mailbox-domains: table lookup problem
Mar 22 22:15:46 sidhion postfix/trivial-rewrite[1802]: warning:
virtual_mailbox_domains lookup failure
Mar 22 22:15:46 sidhion postfix/trivial-rewrite[1802]: warning:
hash:/etc/postfix/virtual-mailbox-domains is unavailable. open database
/etc/postfix/virtual-mailbox-domains.db: No such file or directory
Mar 22 22:15:46 sidhion postfix/trivial-rewrite[1802]: warning:
hash:/etc/postfix/virtual-mailbox-domains: table lookup problem
Mar 22 22:15:46 sidhion postfix/smtpd[1800]: NOQUEUE: reject: RCPT from
mail-vk0-f51.google.com[209.85.213.51]: 451 4.3.0 <bernardovst...@gmail.com>:
Temporary lookup failure; from=<bernardovst...@gmail.com> to=<email address
in test> proto=ESMTP helo=<mail-vk0-f51.google.com>

I am running everything on an Ubuntu 14.04. Postfix's package version is
2.11.0-1ubuntu1, and was installed by installing the mail-stack-delivery
package.

The /usr/lib/postfix/master process is being run as root, and the pickup,
qmgr and tlsmgr processes are being run with user "postfix". Everything
inside /etc/postfix is owned by root.

Do you have any idea of what might be causing the issue here? I have tried
deleting the current .db files and recreating them with postmap, but no
luck. Error messages are not helping much (because the files do exist).

Thank you,
Bernardo

Reply via email to