I'm trying to restrict recieving mail for some users. Target is to permit mail
only from mynetworks.
smtpd_recipient_restrictions = ...
check_recipient_access
hash:/etc/postfix/restricted_recipients
...
smtpd_restriction_classes = internal_recipient
internal_recipient = permit_mynetworks, reject
/etc/postfix/restricted_recipients:
vova@<domain> internal_recipient
v...@mail.<domain> internal_recipient
v...@localhost internal_recipient
[email protected] internal_recipient
In /etc/postfix/restricted_recipients I put those users in combination with all
local domains. It works for all entries excluding <user>@localhost.
Is there any way to match <user>@localhost in access databases? Or any other
way to accomplish task?
I'm newbie in postfix, now migrating from sendmail, so any help will be
appreciated.
Thanks.
--
Vladimir Vassiliev <[email protected]>