Hi
Thenx for replay but im doing something wrong

smtpd_restriction_classes=lpolicyd, greylist
lpolicyd=check_policy_service { unix:private/policyd-lemat3, timeout=4s, default_action=DUNNO } greylist=check_policy_service { inet:127.0.0.1:12345, timeout=4s, default_action=DUNNO }


smtpd_recipient_restrictions =
        check_recipient_access hash:/etc/postfix/bad_recipients,
        check_recipient_access inline:{
                {@domain.ltd = greylist},
            }

e-mail was delivered sucess but i cannot find any "greylist" in log like postfix ignoring

W dniu 13.11.2024 o 13:36, Viktor Dukhovni via Postfix-users pisze:
On Wed, Nov 13, 2024 at 12:46:10PM +0100, natan via Postfix-users wrote:

main.cf:
...
smtpd_recipient_restrictions =
         ....
         check_recipient_access hash:/etc/postfix/special_domains,
         ....
Add:

     smtpd_restriction_classes = greylist
     greylist = check_policy_service ...
     smtpd_recipient_restrictions =
         ...
         check_recipient_access inline:{
                 {@domain.ltd = greylist},
                 {@otherdomain.ltd = greylist},
             }

Use a file-based (indexed) table if you prefer, or a database, ...
the "inline:" table is simplest for how-to examples.


--

_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to