Hi all, I'm trying to follow the FILTER_README howto for educational purpose. As suggested I added the following line to my master.cf
smtp inet n - n - - smtpd scan unix - - n - 2 smtp -o smtp_send_xforward_command=yes -o disable_mime_output_conversion=yes -o smtp_generic_maps= and the following directive to my main.cf content_filter = scan:localhost:10025 receive_override_options = no_address_mappings I entered the following command as proof of concept while :; do cat <(echo '220 filtro.catorcio.tld ESMTP Postfix') | nc -l 127.0.0.1 10025 < /dev/stdin; done but it seems postfix tries to resolve localhost with a dns lookup so it fails, definitily not what I want. Oct 20 13:03:10 webhat postfix/smtp[2299]: 65C1B20816C6: to=<somem...@gmail.com>, relay=none, delay=0.38, delays=0.25/0.11/0.02/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=localhost type=AAAA: Host not found) I read the syntax of next hop in smtp man page and I solved changing the directive in main.cf as content_filter = scan:127.0.0.1:10025 [vagrant@webhat postfix]$ echo "hello world" | mail -s "testina" somem...@gmail.com [vagrant@webhat ~]$ while :; do cat <(echo '220 filtro.catorcio.tld ESMTP Postfix') | nc -l 127.0.0.1 10025 < /dev/stdin; done EHLO webhat.catorcio.tld But i wander and wonder: Does FILTER_README suppose you have a dns record for localhost? Is there a way to use /etc/hosts to resolve localhost? -- Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html