On Wed, 5 Feb 2025 at 09:32, Gilgongo <gilgo...@phreak.co.uk> wrote:

> I just wanted to make sure I've read the docs
> <https://www.postfix.org/postconf.5.html#check_sasl_access> correctly.
> I'd like to restrict a couple of sasl users by IP4/6 (I can't test this on
> my sandbox setup), so if I have this in my master.cf:
>
-- snip --
> And have the following in my access file:
>
> user1 192.x.x.x     PERMIT
> user1 2001:x:x:x::x PERMIT
> user1 REJECT
>
>
I see the above would produce duplicate entries. But looking at
https://www.postfix.org/access.5.html#example would the following be valid?

user-1 192.x.x.1 OK
    user-1 2001:x:x:x::AB OK
    user-1 2001:x:x:x::   REJECT
    user-1 192.x.x REJECT

That is, using a multi-line rule?
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to