Adam Weremczuk via Postfix-users skrev den 2025-02-19 15:26:

Now, how do I restrict this relay to only be used by one specific LAN address or one specific LAN subnet? All other SMTP traffic should continue using the defaults already in place.

make another smtp in master.cf

mail.example.org unix - - n - - smtp
    -o inet_protocols=all
    -o syslog_name=postfix/$service_name
    -o smtp_bind_address=ipv4 address here
    -o smtp_bind_address6=ipv6 address here
    -o smtp_helo_name=mx.example.org
    -o smtp_fallback_relay=

is how i do it :)

add more if you need more

next step is to add specifik transport maps in main.cf

sender_dependent_default_transport_maps =
    hash:/etc/postfix/sender_dependent_default_transport_maps

# map file

m...@mail.example.org mail.example.org:
postmas...@mail.example.org mail.example.org:
ab...@mail.example.org mail.example.org:

add more if you need more :)

_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org
  • [pfx] test relay Adam Weremczuk via Postfix-users
    • [pfx] Re: test relay Benny Pedersen via Postfix-users

Reply via email to