[Exim] exim exiscan-acl and spamassassin prob

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Nicholas Terrell
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [Exim] exim exiscan-acl and spamassassin prob
Hi,

I having problems getting exim to scan emails using exiscan and spamassassin.
mail gets through to me fine, it just doesn't seen to be getting scanned

my exim4.conf, main conf and acl conf is as follows:

######################################################################
#                    MAIN CONFIGURATION SETTINGS                     #
######################################################################


# Domains & Names
primary_hostname = squeeze1st.com

# Domains
domainlist local_domains = \
  ${lookup mysql {SELECT domain FROM domains \
    WHERE type="local" and domain="${domain}" }}
domainlist relay_to_domains = \
  ${lookup mysql {SELECT domain FROM domains \
    WHERE type="relay" }}


# Relaying
hostlist relay_from_hosts = 127.0.0.1
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_content

# Never do _local_ delivery to these users.
never_users = root

# Name lookups
host_lookup = *
rfc1413_hosts = *
rfc1413_query_timeout = 30s

#virus and spamscanning
spamd_address = 127.0.0.1 783
av_scanner = clamd:127.0.0.1 3310

ignore_bounce_errors_after = 2d
timeout_frozen_after = 7d


######################################################################
#                       ACL CONFIGURATION                            #
#         Specifies access control lists for incoming SMTP mail      #
######################################################################


begin acl

acl_check_rcpt:


  # Accept if the source is local SMTP (i.e. not over TCP/IP). We do this by
  # testing for an empty sending host field.
  accept  hosts = :
  deny    local_parts   = ^.*[@%!/|]
  accept  local_parts   = postmaster
          domains       = +local_domains
  require verify        = sender
  accept  domains       = +local_domains
          endpass
          message       = unknown user
          verify        = recipient
  accept  domains       = +relay_to_domains
          endpass
          message       = unrouteable address
          verify        = recipient
  accept  hosts         = +relay_from_hosts
  accept  authenticated = *


  deny    message       = relay not permitted


acl_check_content:

  deny  message = This message contains a MIME error ($demime_reason)
        demime = *
        condition = ${if >{$demime_errorlevel}{2}{1}{0}}


  deny  message = This message contains an unwanted file extension ($found_extension)
        demime = scr:vbs:bat:lnk:pif


  deny  message = This message contains malware ($malware_name)
        demime = *
        malware = *


warn message = X-Antivirus-Scanned: Clean

  deny  message = This message matches a blacklisted regular expression ($regex_match_string)
        regex = [Vv] *[Ii] *[Aa] *[Gg] *[Rr] *[Aa]


  warn  message = X-Spam-Score: $spam_score ($spam_bar)
        spam = nobody:true
  warn  message = X-Spam-Report: $spam_report
        spam = nobody:true


  warn  message = X-Spam-Flag: YES
        spam = nobody


  deny  message = This message scored $spam_score points. Congratulations!
        spam = nobody:true
        condition = ${if >{$spam_score_int}{100}{1}{0}}


# finally accept all the rest
accept


----------------------------------------------------------

`exim -bV` show the following

Exim version 4.30 #2 built 19-Dec-2003 11:40:47
Copyright (c) University of Cambridge 2003
Berkeley DB: Sleepycat Software: Berkeley DB 4.1.25: (October 24, 2003)
Support for: iconv() IPv6 PAM Perl TCPwrappers OpenSSL
Lookups: lsearch wildlsearch nwildlsearch cdb dbm dmbnz dnsdb dsearch ldap ldapdn ldapm mysql nis nis0 nisplus passwd
Authenticators: cram_md5 plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Contains exiscan-acl patch revision 14 (c) Tom Kistner [http://duncanthrax.net/exiscan/]
Configuration file is /etc/exim/exim4.conf

-----------------------------------------------------------

To test i run the following..

exim spid3r@??? < /usr/share/doc/spamassassin-2.63/sample-spam.txt

The email gets through but it does not seem to get touched by spamassassin

spamassassin -t < /usr/share/doc/spamassassin-2.63/sample-spam.txt > testout.txt
seems to pick it up as spam, so im thinking that it has something to do with exiscan-acl..

Hope someone can help.

Thanks

Nicholas Terrell