Hi all, I'm trying to use milter_header_checks to file messages into users Junk folder but I'm having issues formatting the FILTER response in my header check file.
I've added the following to my main.cf: 10025 inet n - n - - smtpd -o smtpd_tls_security_level=may -o smtpd_relay_restrictions=permit_mynetworks,reject -o inet_interfaces=loopback-only -o receive_override_options=no_header_body_checks -o local_recipient_maps=hash:/etc/postfix/virtual,ldap:/etc/postfix/virtual_junk.cf -o virtual_alias_maps=hash:/etc/postfix/virtual,ldap:/etc/postfix/virtual_junk.cf -o inet_interfaces=loopback-only My /etc/postfix/milter_header_checks file: /^X-Spam-Status:\s+Yes$/ FILTER localhost:10025 I'm using EFA project as an external mail filter. Whenever spam is encountered EFA adds 'X-Spam-Status: Yes' to the message header before forwarding the message to my mail server for delivery. The idea was to route messages with the 'X-Spam-Status: Yes' header to another instance of Postfix listening on localhost:10025 which overrides the local_recipient_maps and virtual_alias_maps with the users Junk folder. I've read the header_checks man page and I'm still a bit confused as to what the FILTER response in my /etc/postfix/milter_header_checks file is supposed to look like. During testing my messages keep getting stuck in the queue with a 'status=deferred (mail transport unavailable)' error. Thanks, Chris