Andrew Beverley via Postfix-users:
> Hello all,
> 
> I wondered if it is possible to enforce outbound (smtp) TLS based on the 
> return-path of the email being sent?
> 
> I know that it is possible to enforce outbound TLS using 
> smtp_tls_policy_maps, but as far as I can tell rules can only be 
> stipulated based on the next-hop destination, not on other parameters 
> such as the return-path of the email being sent.

Use sender-dependent transport:

main.cf:
    sender_dependent_default_transport_maps = inline:{
        { [email protected] = smtp-encrypt: } }

with a master.cf entry that enforces TLS:

master.cf:
    smtp-encrypt .. .. .. .. .. .. .. smtp 
        -o { smtp_tls_security_level = encrypt }

See
https://www.postfix.org/postconf.5.html#sender_dependent_default_transport_maps
for precedence rules.

        Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to