Migrating to sieve
Adam Shostack
adam at shostack.org
Wed Feb 8 00:27:46 UTC 2017
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
! "$@"
More information about the dovecot
mailing list