Dear all, I like to restrict some internal mailboxes so that only a list of domains can send mails to this mailbox.
Users should be able to get outside mails normally. I’ve found this on postfix.org: /etc/postfix/main.cf: smtpd_recipient_restrictions = ... check_recipient_access hash:/etc/postfix/protected_destinations ...the usual stuff... smtpd_restriction_classes = insiders_only insiders_only = check_sender_access hash:/etc/postfix/insiders, reject /etc/postfix/protected_destinations: all@my.domain insiders_only all@my.hostname insiders_only /etc/postfix/insiders: my.domain OK matches my.domain and subdomains another.domain OK matches another.domain and subdomains Which is working, but after creating the hash tables like in this example, other users won’t get new mails from outside. All other mails are rejected in the logs with “server configuration error” For the users and domains I use these settings with cyrus-imapd: virtual_transport = lmtp:unix:/local/socket/lmtp virtual_alias_maps = hash:/etc/postfix/virtual_recipients virtual_mailbox_domains = /etc/postfix/virtual_mailbox_domains virtual_mailbox_domains contain our domains in a table like “company01.de OK” If I set these settings # smtpd_restriction_classes = insiders_only # insiders_only = check_sender_access hash:/etc/postfix/insiders, reject # check_recipient_access hash:/etc/postfix/protected_destinations Cat protected_destinations u...@company.org insiders_only Cat insiders Domain.com OK It’s possible to restrict only 2 mailboxes and do not prevent that the normal mailflow will be cut off? Best Regards David