How can I apply a content filter to a specific email address in Postfix?
Setting the content_filter
parameter in main.cf
applies the content filter to all inbound messages.
I only want to apply my filter to a specific address, e.g. support@example.com.
I've defined my filter in master.cf
using the pipe command as follows:
myfilter unix - n n - - pipe
flags=Rq user=filter argv=/usr/bin/myfilter -f ${sender} -- ${recipient}
I'm using Postfix 3.1.4 and I'm not using virtual mailboxes.