Hi, As I migrate to sieve, I would like to carry over the logic I had in procmail rules, which let me take all mail where I'd never sent email to that address into a final spam catchall, which I called "neversent." I see that sieve can't run external programs, and I wonder if that means I'm SOL, or is there an alternate approach that does roughly the same thing? (I understand the general security logic for that decision. I have root access on the server in question if that helps.) Thank you for any help you can provide! Adam The procmail code was: # a bunch of complex shell script to extract From: into a variable of that # name. :0: * ^TO_$ME * !? fgrep -q --ignore-case -e "$FROM" $HOME/.lbdb/m_inmail.list neversent along with a procmail-outbound setup of: :0hc | lbdb-fetchaddr -a :0 ! "$@"
Op 2/8/2017 om 1:27 AM schreef Adam Shostack:> Hi, > > As I migrate to sieve, I would like to carry over the logic I had in > procmail rules, which let me take all mail where I'd never sent email > to that address into a final spam catchall, which I called > "neversent." > > I see that sieve can't run external programs, and I wonder if that > means I'm SOL, or is there an alternate approach that does roughly the > same thing? > > (I understand the general security logic for that decision. I have > root access on the server in question if that helps.) > > Thank you for any help you can provide!http://wiki2.dovecot.org/Pigeonhole/Sieve/Plugins/Extprograms Regards, Stephan.
On Wed, Feb 08, 2017 at 01:41:01AM +0100, Stephan Bosch wrote: | Op 2/8/2017 om 1:27 AM schreef Adam Shostack: | > Hi, | > | > As I migrate to sieve, I would like to carry over the logic I had in | > procmail rules, which let me take all mail where I'd never sent email | > to that address into a final spam catchall, which I called | > "neversent." | > | > I see that sieve can't run external programs, and I wonder if that | > means I'm SOL, or is there an alternate approach that does roughly the | > same thing? | > | > (I understand the general security logic for that decision. I have | > root access on the server in question if that helps.) | > | > Thank you for any help you can provide! | | http://wiki2.dovecot.org/Pigeonhole/Sieve/Plugins/Extprograms | | Regards, | | Stephan. Danke! Adam