On Thu, Mar 21, 2024 at 11:06:12AM -0500, Noel Jones via Postfix-users wrote:

> > Surely the generalisation is:
> > 
> >        smtpd_discard_ehlo_keyword_address_maps =
> >            cidr:{
> >              {if 0.0.0.0/0}
> >              # Private IPv4 addresses
> >              {!10.0.0.0/8  silent-discard,dsn}
> 
> Seems to me 172. and 192. would match the above line.
> Does cidr support DUNNO?

Oops, indeed you're right, but this is solvable:

    if 0.0.0.0/1
    !10.0.0.0/8 silent-discard,dsn
    endif
    if 128.0.0.0/2
    !172.16.0.0/12 silent-discard,dsn
    endif
    if 192.0.0.0/2
    !192.168.0.0/16 silent-discard,dsn
    endif

DUNNO is not a table-layer "no result" primitive, it is an access(5) RHS
keyword, so does not apply with ehlo keyword discard rules.

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

Reply via email to