Re: Redirecting to devnull from master.cf

2016-07-09 Thread Lefteris Tsintjelis
On 09/07/2016 17:50, Viktor Dukhovni wrote: On Sat, Jul 09, 2016 at 05:46:51PM +0300, Lefteris Tsintjelis wrote: >(not writing to /dev/null, only discarding input) Yes! Great idea, much better and simpler in CPU cycles than dev null actually! Thanks! If you really want to save CPU cycles, us

Re: Redirecting to devnull from master.cf

2016-07-09 Thread Viktor Dukhovni
On Sat, Jul 09, 2016 at 05:46:51PM +0300, Lefteris Tsintjelis wrote: > >(not writing to /dev/null, only discarding input) > > Yes! Great idea, much better and simpler in CPU cycles than dev null > actually! Thanks! If you really want to save CPU cycles, use the discard(8) transport, it is consid

Re: Redirecting to devnull from master.cf

2016-07-09 Thread Lefteris Tsintjelis
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 th

Re: Redirecting to devnull from master.cf

2016-07-09 Thread Erwan David
Le 09/07/2016 à 16:25, Erwan David a écrit : > 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 somet

Re: Redirecting to devnull from master.cf

2016-07-09 Thread Erwan David
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 >/d

Redirecting to devnull from master.cf

2016-07-09 Thread Lefteris Tsintjelis
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 $?