On Mon, Jun 02, 2014 at 10:15:15PM +0200, Martijn Rijkeboer wrote:
> Hi,
>
> When I try to use a db file for my recipient table I get "invalid use of
> table "recipients" as RECIPIENT parameter". When I use a plain file it
> works. I've created the db file with "makemap -t set recipients". Is this
> on purpose or is it a bug?
>
> Using a plain file:
> table recipients file:/etc/mail/recipients
> accept from any for any recipient <recipients> relay via ...
>
> Using a db file:
> table recipients db:/etc/mail/recipients.db
> accept from any for any recipient <recipients> relay via ...
>
> OS: OpenBSD 5.5 AMD64.
>
> Kind regards,
>
Hi,
support for "recipient" using db tables has been added after 5.5:
http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/smtpd/table_db.c.diff?r1=1.5;r2=1.6;f=h
the diff will apply as is on smtpd from 5.5 so you can backport it
--
Gilles Chehade
https://www.poolp.org @poolpOrg