Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Help with setting up spamc

by SteveTheTechie (Novice)
on Jul 10, 2014 at 00:15 UTC ( [id://1092986]=note: print w/replies, xml ) Need Help??


in reply to Re: Help with setting up spamc
in thread Help with setting up spamc

Ok, this looks very interesting. Have not fiddled with tee and forks for a while.

I did not think of communicating with spamd directly--thought I had to use the spamc cmd line interface.

Thanks!

Replies are listed 'Best First'.
Re^3: Help with setting up spamc
by andal (Hermit) on Jul 10, 2014 at 07:20 UTC

    As I said, I don't know much about SpamAssassin. But quick search brought up Mail::SpamAssassin::Client which implements protocol for talking to spamd.

    Note, the page for Mail::SpamAssassin says

    If you wish to use a command-line filter tool, try the spamassassin or the spamd/spamc tools provided
    So, I would believe, that these tools are good only when you have to use external commands, for example when you program not in perl, but in shell.

    In general, to increase throughput, you should make processing of each message independent as much as possible, so that one message does not have to wait for another. That usually means, that each message handler should run either in separate process, or in separate thread. Using separate spamd is of help only because it internally uses multiple processes/threads to handle messages. But if you feed your messages one by one, then the benefit is lost. And opposite, if you handle your messages in separate processes/threads, it does not make sense to move spamassassin into separate process, because you just add extra overhead of communicating with that process.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1092986]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-16 19:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found