Вам нужно создать новый restriction class, делается это примерно так:
- /etc/postfix/sender_access:
foo@example.com restrictive
bar@example.com restrictive
- /etc/postfix/recipient_access:
director@example.com OK
support@example.com OK
example.org OK
- /etc/postfix/main.cf:
restrictive =
check_recipient_access hash:/etc/postfix/recipient_access
reject
smtpd_restriction_classes = restrictive
smtpd_recipient_restrictions =
…
check_sender_access hash:/etc/postfix/sender_access
…
После этого с адресов foo@example.com и bar@example.com можно будет писать только director@example.com, support@example.com и на любой адрес в домене example.org. Подробности в
RESTRICTION_CLASS_README. При каждом изменении recipient_access и sender_access не забываем выполнять
postmap /path/to/file
.