Perl: the Markov chain saw | |
PerlMonks |
Help with setting up spamcby SteveTheTechie (Novice) |
on Jul 09, 2014 at 04:26 UTC ( [id://1092838]=perlquestion: print w/replies, xml ) | Need Help?? |
SteveTheTechie has asked for the wisdom of the Perl Monks concerning the following question: I may be overthinking this, but here goes. I am the current developer for a free template based website system used by over 9000 Toastmasters public speaking clubs worldwide. We handle over 300,000 emails in a given week for clubs using our system. All of our server code is in Perl including our email handler. Our email handler supports a wide variety of forwarding email addresses and distribution lists. Up till recently, our main email security approach was to verify club membership. We still want to do that, but we have added the use of SpamAssassin as an additional step targeted at the provided email addresses that are intended for public use. I set up SpamAssassin using Mail::SpamAssassin in the email handler, and it basically started dragging the server performance significantly (should have expected that). I am trying to get the spamc/spamd combo going for us. We have spamd set up. I am just stumbling over setting up the use of spamc in the email handler code. Current SpamAssassin call from email handler (@ line 479 of email handler--*lots* happening before this):
I need to send $message_received to spamc and capture its output in a variable (preferably) so I can get the spam score. I know I can just back quote a system command to capture stdout to a variable, but how can I do both the stdout and the stdin handling here? This should be simple, but I am just missing it...
Back to
Seekers of Perl Wisdom
|
|