After some testings it works as expected !
Thank you, Wietse !

On 28.04.2016 16:48, Wietse Venema wrote:
????? ?????:
Hello, Wietse.
Is there any documentation or configuration snippets regarding rbl and
database ?
Documentation: man 5 access.

Just use mysql:/etc/postfix/file instead of hash:/etc/postfix/file.
Postfix makes the same queries whether you use hash/btree/lmdb or
mysql/pgsql/ldap.

/etc/postfix/main.cf:
     smtpd_recipient_restrictions =
        permit_mynetworks
        reject_unauth_destination
        check_recipient_access hash:/etc/postfix/per_recipient_rules
        ...

/etc/postfix/per_recipient_rules:
     # most example.com recipients are RBL protected, some are not.
     example.com        reject_rbl_client zen.spamhaus.org, reject_rbl_client 
rbl.rbldns.ru, ...
     some...@example.com dunno
     ...

        Wietse

On 28.04.2016 13:28, Wietse Venema wrote:
????? ?????:
Hi, list !
I need to place rbl rules with domains in a separate file and connect it
to postfix via access map directive.

Let's say something like this:

smtpd_recipient_restrictions =
     permit_mynetworks
     reject_unauth_destination
     check_recipient_access hash:/etc/postfix/rbl_rules
/etc/postfix/rbl_rules :
reject_rbl_client zen.spamhaus.org
reject_rbl_client rbl.rbldns.ru
reject_rbl_client b.barracudacentral.org
reject_rbl_client dnsbl.sorbs.net
reject_rbl_client bl.spamcop.net
I need it to be highly flexible. To let people in my network configure
DNSBL server list whenever they want.

How can i do that ?
Use an SQL database.

        Wietse


Reply via email to