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
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to