Snazim se zprovoznit blokovani IP adres a domen v postfixu pomoci vlastniho DNSBL. V 
main.cf mam:
smtpd_recipient_restrictions =
     permit_mynetworks
     permit_sasl_authenticated
     reject_unauth_destination
     reject_unlisted_recipient
     check_recipient_access hash:/etc/postfix/recipient
     reject_unknown_reverse_client_hostname
     reject_rbl_client           dnsbl.mydomain.tld
     reject_rhsbl_helo           dnsbl.mydomain.tld
     reject_rhsbl_sender         dnsbl.mydomain.tld
     reject_rhsbl_reverse_client dnsbl.mydomain.tld
     check_policy_service inet:127.0.0.1:10040
     check_policy_service inet:127.0.0.1:60000
Vychazel jsem z 
https://www.linuxbabe.com/mail-server/block-email-spam-postfix :
- rhs stands for right hand side, i.e, the domain name.
- reject_rhsbl_helo makes Postfix reject email when the client HELO or EHLO hostname is blacklisted.
- reject_rhsbl_reverse_client: reject the email when the unverified reverse client hostname is blacklisted. Postfix will fetch the client hostname from PTR record. If the hostname is blacklisted, reject the email.
- reject_rhsbl_sender makes Postfix reject email when the MAIL FROM domain is blacklisted.
- reject_rbl_client: This is an IP-based blacklist. When the client IP address is backlisted, reject the email.
Mym cilem je zablokovat emaily z IP 10.20.30.40 a domeny example.net.
Takze chapu-li dobre, mel bych pouzit 
reject_rbl_client a 
reject_rhsbl_sender.
Do DNS jsem si pridal:
martin@X1 ~ $ dig +short 40.30.20.10.dnsbl.mydomain.tld A
127.0.0.2
martin@X1 ~ $ dig +short 40.30.20.10.dnsbl.mydomain.tld TXT
"Protoze posilas spam."
martin@X1 ~ $ dig +short example.net.dnsbl.mydomain.tld A
127.0.0.2
martin@X1 ~ $ dig +short example.net.dnsbl.mydomain.tld TXT
"Protoze posilas spam."
martin@X1 ~ $ 
martin@X1 ~ $ dig +short net.example.dnsbl.mydomain.tld A
127.0.0.2
martin@X1 ~ $ dig +short net.example.dnsbl.mydomain.tld TXT
"Protoze posilas spam."
martin@X1 ~ $ Blokovani podle IP funguje skvele, ale podle domeny ne. Na domene example.net mam google apps, ale v mail from je sparavne @example.net.
Co jsem hledal, IP se zapisuje obracene, ale domena normalne. Zkusil jsem i domenu zapasat obracene, ale nefunguje to.
Tusi nekdo, co delam spatne?