On 09/07/2016 17:25, Erwan David wrote:
Le 09/07/2016 à 16:18, Lefteris Tsintjelis a écrit :
Is there a way to redirect to dev null (without using local aliases)
by using master.cf and a shell script maybe?

http://www.postfix.org/FILTER_README.html#simple_filter

Would something as simple as this work?

!/bin/sh

cat >/dev/null

exit $?


By using a pipe(8) transport and piping to /bin/true should be enough, no ?

(not writing to /dev/null, only discarding input)

Yes! Great idea, much better and simpler in CPU cycles than dev null actually! Thanks!

Reply via email to