Viktor

Thank you.  I'm glad I asked before I spent any more time trying to make this 
work. 

I'll look at modifying the actual script for now.  

Viktor Dukhovni <postfix-us...@dukhovni.org> wrote:
>On Sun, Sep 01, 2013 at 03:02:36PM -0400, Bruce Markey wrote:
>
>> I'm hoping someone on here can maybe point me in the right direction.
>> 
>> I'm trying to simply pipe all incoming email to a perl script that
>> then dumps back to postfix to deliver.  Pipes in by STDIN and  then
>> hands it back via STDOUT.
>> 
>> This is the script.
>> https://grepular.com/Automatically_Encrypting_all_Incoming_Email
>> 
>> I've read this http://www.postfix.org/FILTER_README.html about 50
>> times so far.
>> 
>> I tried the simple filter and that didn't work. Well it did but I
>> realized it expected the script to then deliver the message.
>
>This is a mistaken impression.  The script typically re-injects the
>mail into Postfix via the sendmail(1) command.  Make sure to not
>pass the "-t" option and to safely pass the envelope recipients
>on the sendmail(1) command-line.
>
>A better architecture is to embed your Perl code into a transparent
>SMTP proxy.
>
>-- 
>       Viktor.

Please use PGP, ENCRYPT everything.
For information about acquiring a secryption.com account, email me.

-----BEGIN PGP PRIVATE KEY BLOCK-----
Version: GnuPG v1.4.12 (GNU/Linux)

lQO+BFIh0NUBCADj6uSSMZzkcg4+aWZ/S5Y2rShskUqepVTQWoUGY2ueclgshlfe
Akd7GePZzWmyxIXNmmBwb1MZJ/6EGGkfI0ZIF7HHzt7hn7s3zC1V1ohAeQWGm4wT
vaGogS+URxTRmgeRLV+O6WehTG4GzFKwtrjYHG1iliuh7uqGPmxZpukbd+24SDjq
qdpGYW0a6K39owQy0+IShP/Iq4ExdR2psQlHxfbe/dqJ8zZbE/X7iYFe8n4TQhAC
fPJT1VLHqxRin/FHzv8lXuB4IOYuKLrAeohhXdXfP8iIEQV6TLxS1Av8LudhALoJ
FG+p2lIJzrMy32XJ21oD4RqPYxW2BGpQpIGPABEBAAH+AwMCjpKMwVQ24ZFgwDUq
o0hVeBS0WLUxvNo1YmHCtuUyrn1Vx09EgnTTA0/VaOea3EKZp72SNM9Ftl5L3fkJ
kMA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