Subject: postfix as backup MX: relay_recipient problem
To: None <netbsd-users@netbsd.org>
From: None <r8@socal.rr.com>
List: netbsd-users
Date: 02/10/2006 08:25:58
I'm trying to configure postfix-2.2.5 on my NetBSD 2.0.2 (GENERIC) i386
system to backup a friends mail domain.  Per the documentation, I've
added the following to my main.cf
Substitute real domain for "backed_up_domain.net"
      # Backup config for backed_up_domain.net
      relay_domains        = backed_up_domain.net
      relay_recipient_maps = hash:/usr/pkg/etc/postfix/relay_recipients
      smtpd_recipient_restrictions = permit_mynetworks
reject_unauth_destination

And I put the following in /usr/pkg/etc/postfix/relay_recipients
      # /usr/pkg/etc/postfix/relay_recipients
      jeff@backed_up_domain.net    OK
      john@backed_up_domain.net    OK

But when I start up postfix, it refuses mail and I get the following
errors in /var/log/maillog

   Feb  9 16:25:41 icarus postfix/smtpd[24368]: fatal: open database
/usr/pkg/etc/postfix/relay_recipients.db: No such file or directory
   Feb  9 16:25:42 icarus postfix/master[6937]: warning: process
/usr/pkg/libexec/postfix/smtpd pid 24368 exit status 1
   Feb  9 16:25:42 icarus postfix/master[6937]: warning:
/usr/pkg/libexec/postfix/smtpd: bad command startup -- throttling

When I saw the "relay_recipients.db: No such file" error, I tried making
a softlink from relay_recipients to relay_recipients.db.  But now when I
start up postfix, it refuses to receive mail, and I get the following
errors in /var/log/maillog

   Feb  9 13:28:25 icarus postfix/postfix-script: starting the Postfix
mail system
   Feb  9 13:28:25 icarus postfix/master[10942]: daemon started --
version 2.2.5, configuration /usr/pkg/etc/postfix
   Feb  9 13:35:49 icarus postfix/smtpd[24918]: fatal: open database
/usr/pkg/etc/postfix/relay_recipients.db: Inappropriate file type or format
   Feb  9 13:35:50 icarus postfix/master[10942]: warning: process
/usr/pkg/libexec/postfix/smtpd pid 24918 exit status 1
   Feb  9 13:35:50 icarus postfix/master[10942]: warning:
/usr/pkg/libexec/postfix/smtpd: bad command startup -- throttling


I've checked man pages.  I checked the info at
http://www.postfix.org/STANDARD_CONFIGURATION_README.html#backup
and I checked a friends O'Reilly Postfix book, and for the life of me I
can't figure out what's wrong.  Please help?

Thanks,
   - Roger