condredirect examples

1) redirect only emails from .cz
|condredirect sh -c '822field from | grep -iq @*.cz'

2) redirect all to
except: to =~, or from =~

maybe not best solution?, but working - if you know better way, please post your solution

notice: you have to configure email address
(in /var/qmail/aliases create file .qmail-devnull whitch contents only comment sign: #)
|condredirect /bin/sh -c 'if 822field to | egrep -iqv ""; then exit 1; fi'
|condredirect /bin/sh -c 'if 822field from | egrep -iqv ""; then exit 1; fi'

Last update:
2009-04-10 14:02
Average rating:0 (0 Votes)

You can comment this FAQ

Chuck Norris has counted to infinity. Twice.