techlist06 put forth on 11/30/2009 1:59 PM: > I tried to setup an access map and reject a specific user. But the mails to > that user are not rejected. I tried adding the access map in a few > different places in the configuration, so far none worked. It shows up in > the smtpd_recipient_restrictions line below. Can anyone see what I did > wrong?:
Yes, you have: check_client_access hash:/etc/postfix/access which is wrong for matching email addresses: check_client_access type:table Search the specified access database for the client hostname, parent domains, client IP address, or networks obtained by stripping least significant octets. See the access(5) manual page for details. You need check_recipient_access type:table check_recipient_access type:table Search the specified access(5) database for the resolved RCPT TO address, domain, parent domains, or localpart@, and execute the corresponding action. Example: smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/access /etc/postfix/access mailli...@mydomain.com 550 REJECT Also, postmap /etc/postfix/access every time you make changes to it. If you did not reload postfix after creating the access file and adding it to main.cf, you also need to restart postfix. > My access map file has: > mailli...@mydomain.com 550 REJECT > > The corresponding access.db file is built and fresh > > But mails to mailli...@mydomain.com get through without issue. BTW, if you are trying to block all access to this email address, why not just remove it from your list(s) of valid recipients? Did I miss something earlier in the thread? -- Stan