Re: Dspam (was: Re: exiscan-acl-4.24-22 - SPF support)

Tor Slettnes <[email protected]>
Newsgroups gmane.mail.exim.user,gmane.mail.exim.exiscan.user
Message-ID <[email protected]>
On May 26, 2004, at 03:59, Avleen Vig wrote:
> On a similar thread, does anyone know if it is possible to use Dspam
> with the exim ACL bits?
> Dpsam can be configured to return a message to stdout once it has been
> scanned, so that your MTA is responsible for delivering it
> (traditionally Dspam would be resonsible for delivery).

 From that, I infer that you would invoke "dspam" as a separate process,
and based on the results printed on stdout, classify the message as ham
or spam.  That you can do using a "${run ...}" expansion, perhaps:

    deny
      require_files = /path/to/dspam
      condition     = ${if eq {${run {/path/to/dspam ...}{$value}} \
                              {spam-string}\
                           {true}{false}}


If, on the other hand, "dspam" encodes the spam classification in its
exit value (e.g. 0=ham, non-0=spam), you can simplify the statement to:

    deny
      require_files = /path/to/dspam
      condition     = ${run {/path/to/dspam ...}{false}{true}}

-tor


--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.