On Fri, Jan 04, 2019 at 09:57:53PM -0200, Rafael Azevedo wrote: > I've provided all information you asked.
Well, but you've provided detailed configuration information. See http://www.postfix.org/DEBUG_README.html#mail > This is a lab server. > It has about 8 IPs and multiple postfix configurations (from older tests). Well, I don't recall any mention of multiple Postfix configurations until now. For "sendmail" to work in a non-default Postfix instance the associated configuration directory must be listed in the default instance's main.cf file's "alternate_config_directories" parameter. > Although this server has multiple IPs, I'm not running multiple > instances at this time. Well, you're running a non-default instance, whose configuration is not /etc/postfix. It does not matter whether other instances are running or not, you're in a multi-instance configuration. > In time, would this make any sense: > > spamfilter unix - n n - - pipe > user=vmail argv=/home/postfix/app/tools/contentFilter.php ${nexthop} > ${size} ${sender} ${recipient} > /usr/sbin/sendmail -oi -f ${sender} ${recipient} Not really, because the sendmail command goes inside the script, and I'd stay well clear of PHP for processing email and executing sub-processes, ... And ${recipient} should always be the last command line variable, since it expands to multiple recipient arguments. > No success at all. You're stumbling around in the dark trying random things that can't work. Find a native English speaker who can help you understand FILTER_README, and get it working in a single-instance Postfix environment first. Consider buying the Postfix Book by Patrick and Ralf, and read the chapter(s) on content filters. -- Viktor.