On Wed, Aug 24, 2022 at 09:32:10PM +0300, Ivars Strazdins wrote:
> Sorry if I replied to the list twice, but Noel’s advice nailed it.
> "check_recipient_access=hash:/etc/postfix/protected_destinations" must
> be added to master.cf smtps and submission, then sending is not
> allowed.
More precisely:
master.cf:
submission inet ... smtpd
...
-o smtpd_recipient_restrictions=$submission_recipient_restrictions
...
submissions inet ... smtpd
...
-o smtpd_recipient_restrictions=$submission_recipient_restrictions
...
main.cf:
indexed = ${default_database_type}:${config_directory}/
submission_recipient_restrictions =
check_recipient_access ${indexed}protected_recipients
smtpd_restriction_classes = protected_list
protected_list = ...
check_sender_access ${indexed}list_senders,
reject
protected_recipients:
[email protected] protected_list
list_senders:
...
--
Viktor.