Hello everyone !
Actually I'm working with Postfix server on Debian and trying to implement distribution list with simple restrictions.
My assumptions:
1. I created alias:
managers@mydomain.com -> manager1@mydomain.com, manager2@mydomain.com, manager3@mydomain.com
2. I want to restrict
managers@mydomain.com to let writing messages to it only by:
boss@mydomain.com
manager2@mydomain.com
FILE
main.cf:
Code:
...
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
...
check_sender_access hash:/etc/postfix/access,
...
permit
FILE
/etc/postfix/access:
Code:
...
managers@mydomain.com managers_sender_list
...
FILE
managers_sender_list:
Code:
boss@mydomain.com
manager2@mydomain.com
As I wrote before, my intention is to let only addresses from
managers_sender_list to write to
managers@mydomain.com
The settings above works only conversely, that means accounts from
managers_sender_list don't have access to
address:
managers@mydomain.com
I could of course input most of mine accounts starting from
worker1@mydomain.com to
worker500@mydomain.com which is more time consuming, needs changes with every new account and still doesn't block senders from outside.
The question is: how to implement these assumptions properly ?