On 29/03/12 10:51, Женя wrote: > I'm using postfix (2.7.0 on Ubuntu Linux 10.04.3) as mail relay and > antispam filter. It's set up and works perfectly except one small > bug. I use smtpd_client_restrictions to filter SMTP clents as > following: > > smtpd_client_restrictions = permit_mynetworks, > reject_unknown_client_hostname, check_client_access > regexp:/etc/postfix/client_access > > And /etc/postfix/client_access with number of regex rules like: > /google\.com/ OK /mail\.ru/ OK ...... > /schweiz029\.startdedicated\.com/ REJECT /rusguru/ > REJECT /mail\.agere\.pt/ REJECT /relay\.tmsoft\-ltd\.com/ > REJECT > > > This setup works like designed, filtering all clients successfully > except ONE (/rusguru/ expression):
> > As everyone can see postfix does not proper match regex expression. > I've tried first full domain regex like /rusguru\.ru/, shorted to > /rusguru/ only - no success. Hi, Your regexes aren't terminated, which means that /mail\.ru/ does also match 'mail.rusguru.ru'. If you OK that as per your example, then that is your issue: you let them in yourselves... -- Tom