filter /bin/bash /home/vhosts/myfilterscript.sh
Maybe something to do with it being a bash script.
Even strange constructs like:
filter if [ "`bash /home/vhosts/myfilterscript.sh`" ]; then exit 1; else exit 0; fi
And yes the script is executable. When run direct from prompt it performs as expected (returning either exit 1 or exit 0).
Probably I'm overseeing something complete simple or obvious, but I've googled and searched and haven't found a solution.
So any help would be appreciated !
BTW.
This script checks against as set of names in a file against the From in the header, and rejects accordingly.
Effectively having some sort of blacklist functionality when using mpop to retrieve mail.
It would just kill, and not retrieve at all for email-senders defined in my file.
If this is completely stupid because it can be achieved in a simpler way... please tell me.
Kind regards,
Joost