Hello,

If I understood correctly, I need to have a "list" containing the "jailed" 
user1@domain_AB. Let's call it restricted_senders as in the pf docs.

---8<---
#
user1@domain_AB    local_only
---8<---

I have added it in my main.cf (I add smtpd_client_restrictions for 
completeness, perhaps there is the issue in the combined setup?):
---8<---

But testing it, it doesn't work. Any helping hand here?

Check these conditions:

1. the smtpd_client_restrictions and smtpd_recipient_restrictions are often overridden in master.cf 
for "submission" and "smtps (submissions)" services

Yes, for submission it is indeed in master.cf. Adding any restrictions like 
previously mentioned breaks smtpd there due to not expected command line 
parameter.
2. If the sender is in your $mynetworks, the
"check_sender_access btree:$meta_directory/restricted_senders"
is skipped because the first rule "permit_mynetworks" returns.

Correct, but not in this case. mynetworks are only my set of mail servers.

I found the solution by using in main.cf the

smtpd_relay_restrictions = permit_mynetworks,
                           check_sender_access    
btree:$meta_directory/restricted_senders,
                           permit_sasl_authenticated,
                           reject_unauth_destination
directive. Works now.

Thanks for pointers and thoughts!

Florian

_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to