On 22 May 2017 at 16:23, Clifford Gonsalves <gonsalves.cliff...@gmail.com> wrote:
> Hello, > > I would like to block any sender having the word "welcome" in the email > address. > > I know this can be done with header_checks, I just need the syntax to add > this rule. > .. > I think this should work: main.cf: header_checks = pcre:/etc/postfix/check_headers check_headers: /^From:.*welcome.*@/ REJECT