On 1/2/2023 1:38 PM, Laurent Frigault wrote:
Is there any way to have some smtpd_access_maps with
parent_domain_matches_subdomains and some other without it ?

I have :
smtpd_recipient_restrictions =
        permit_mynetworks
     reject_non_fqdn_sender
     reject_unknown_sender_domain
     reject_unauth_destination
     check_sender_access hash:$config_directory/sender_access
     check_recipient_access hash:$config_directory/rcpt_recipient_access
....

I would like to have parent_domain_matches_subdomains in
rcpt_recipient_access and not in sender_access

The p_d_m_s setting is global per instance, but one thing you can do is unset it (remove smtpd_access_maps) and use the workaround to include subdomains of the parent as needed:

example.com             target
.example.com            target

Yes, it means using 2 entries for each domain where you want inclusion of subdomains, but it's not hard to automate adding all these to your existing map.
--
   http://rob0.nodns4.us/

Reply via email to