On 12/17/2009 2:12 AM, Vladimir Vassiliev wrote:

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
v...@localhost.localdomain      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.


Your access table needs to match what postfix sees. Check the logs for what postfix sees, probably u...@localhost.$mydomain

If you need more help,
http://www.postfix.org/DEBUG_README.html#mail

  -- Noel Jones

Reply via email to