On Fri, Sep 13, 2024 at 10:50 AM Wietse Venema via Postfix-users <
postfix-users@postfix.org> wrote:

> Dan Lists via Postfix-users:
> > I have a small email relay server that is used to allow IOT devices to
> send
> > email.  Some of those devices do not do authentication.   I'd like to
> > restrict the sender domain based on the IP.
> >
> > I'm looking for something like smtpd_sender_login_maps, but for client
> IPs.
>
> There is no IP-based analogon for smtpd_sender_login_mapss,
> due to lack of demand.
>
> If you don't have a huge number of such IP addresses, perhaps a
> plugin with https://www.postfwd.org/ can do this.
>
> main.cf:
>     smtpd_sender_restrictions = check_policy_service inet:127.0.0.1:12345
>
> Make sure that this will not affect the services for submission
> (port 587) and submissions (port 465) in master.cf. They should
> look like:
>
> master.cf:
>     submission inet n       -       n       -       -       smtpd
>         ...
>         -o smtpd_sender_restrictions=
>         ...
>     submissions inet n       -       n       -       -       smtpd
>         ...
>         -o smtpd_sender_restrictions=
>         ...
>
> Alternatively, milter-regex may be able to do this.
>
>         Wietse
>

Thanks for the information.

I was hoping to avoid using a policy daemon.    I'll have a look at postfwd
and milter-regex.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to