Ok, got it.
But this way to place all DNSBL services to a separate file needs me to
set a recipient domain that i protect with rbl_reject chekings (i.e.
example.com).
Is there a simpler way without setting a recipient domain ?
We list DNSBL services under smtpd_recipient_restrictions section
without destination domain (i.e. example.com). So i just need to list
them in the same manner but in a separate file. Could it be done somehow
? (not via access tables format probably)
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