OK, got it. Add the following line in main.cf file to add new recipient restriction which will use pcre table.
smtpd_recipient_restrictions = check_recipient_access pcre:/etc/postfix/pcre_recipients, permit_mynetworks, reject_unauth_destination Then create a file /etc/postfix/pcre_recipients with already available regular expression. /\S+\.\S+\.\S+\.\s...@gmail.com/ REJECT You can use the DISCARD instead of REJECT. I have changed the original regular expression to match the format of pcre table. http://www.postfix.org/pcre_table.5.html As this is pcre table you don't need to run postmap against it. You can test which addresses will be rejected using postmap postmap -q email_address pcre:/etc/postfix/pcre_recipients On Sat, Nov 23, 2013 at 11:50 PM, Alexander Farber < alexander.far...@gmail.com> wrote: > postconf |grep smtpd_recipient_restrictions > smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination > > >