I want the postfix agent to bybass the amavis scanner for all mails from and to a specific domain.
So, i added the following line to /etc/postfix/main.cf
header_checks = pcre:/etc/postfix/whitelist.pcre
and in the /etc/postfix/whitelist.pcre
file i have a single line
info@xxxxxxxxx.yyy FILTER SMTP:[127.0.0.1]:10025
where SMTP:[127.0.0.1]:10025
is (AT LEAST I THINK IT IS!) the transport everything returns to after amavis, so emails are delivered.
The problem is (obviously) with the pcre file, because on the error log i get the following error:
postfix/cleanup[10870]: warning: pcre map /etc/postfix/whitelist.pcre, line 1: ignoring unrecognized request