On Fri, 2011-04-22 at 20:04 +0530, Shankar wrote:
> Introduction:
> I have a ticket system in PHP. People report tickets over email. A mail
> parser connects to the mailbox using IMAP, downloads the email and parses it
> to create a ticket which can be viewed/updated over the web interface.
>
Who controls the IMAP mailbox and the MTA that puts incoming messages
into it?

If its you or you are in a position to run your own MTA, your best bet
is to let it pass incoming mail to Spamassassin and put the scored mail
in the mailbox. This way your application can check for spam by looking
at the X-Spam-Status header and you also have the opportunity of using
the MTA's SMTP-time checks to apply blacklists etc and reject spam
without needing to process it further.

Configure the MTA to use spamc/spamd rather than calling the
spamassassin script because its faster: where spamassassin goes through
startup/shutdown for every message it scans, spamd only does so once,
when the system is booted.

Martin



Reply via email to