[exim] Rejecting everything

Top Page
Delete this message
Reply to this message
Author: schmerold@gmail.com
Date:  
To: exim-users
New-Topics: Re: [exim] Re jecting everything
Subject: [exim] Rejecting everything
I have something fouled up, every message is being reject couple lines
from reject.log indicate there is something wrong with my ACL section - 
it seems SA is correctly configured:
  X-Spam-Score: -4.0
  X-Spam-Report: Spam detection software, running on the system 
"web2.fastnet1.com", has
        identified this incoming email as possible spam.  The original 
message


Any ideas? I've posted my exim.conf below:
# /etc/exim/exim.conf
host_lookup = 0.0.0.0/0
spamd_address = 127.0.0.1 783
qualify_domain = schmerold.com
qualify_recipient = schmerold.com
message_size_limit = 10M
smtp_accept_max = 100
smtp_banner = schmerold.com secure smtp server

domainlist relay_to_domains = /etc/exim/relay_domains
hostlist relay_from_hosts = 127.0.0.1
domainlist local_domains =
acl_smtp_rcpt = acl_check_rcpt
never_users = root

acl_smtp_data = acl_check_data
av_scanner = clamd:/var/run/clamd.exim/clamd.sock


############# ACCEPT SETTINGS#######################
# set rules for accepting messages here#
begin acl
acl_check_rcpt:
accept hosts = :
deny local_parts = ^.*[@%!/|] : ^\\.

  accept local_parts = postmaster
         domains = +local_domains


  accept domains = +relay_to_domains
         endpass
         message = relay not permitted at this server
         verify = recipient
  accept hosts = +relay_from_hosts


deny message = relay not permitted at this server

  deny message = Access denied - $sender_host_address listed by 
$dnslist_domain\n$dnslist_text
       dnslists = sbl-xbl.spamhaus.org : dnsbl.sorbs.net : 
bl.spamcop.net : \
       multi.surbl.org : spam.dnsbl.sorbs.net : bl.spamcannibal.org : \
       dnsbl-2.uceprotect.net


acl_check_data:
    deny message   = This message contains malformed MIME ($demime_reason).
         demime    = *
         condition = ${if >{$demime_errorlevel}{2}}


    deny message = Mail contains blacklisted attachment ($mime_filename)
        condition = ${if match \
                            {${lc:$mime_filename}} \
                            {\N\.\s*(bat|com|exe|pif|prf|scr|vbs)\s*$\N}}


    warn message = X-Spam-Score: $spam_score
            spam = exim:true


    warn message = X-Spam-Report: $spam_report
            spam = exim:true


    warn message = Subject: **** SPAM **** $h_Subject
            spam = exim


    deny   message = This message scored $spam_score spam points.
         spam = exim:true
         condition = ${if >{$spam_score_int}{120}{1}{0}}


    deny message = This message contains a virus or other harmful 
content ($malware_name)
            malware = *


accept

############# ROUTER SETTINGS#######################
# set rules for selecting a transport#
begin routers
redirect:
driver = redirect
data = ${lookup{$local_part@$domain}lsearch{/etc/exim/user_alias}}

internal:
driver = manualroute
domains = +relay_to_domains
transport = remote_smtp
route_data = ${lookup{$domain}partial-lsearch{/etc/exim/transport}}

external:
driver = dnslookup
domains = ! +relay_to_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more

############# TRANSPORT SETTINGS####################
# set rules for delivery transports#
begin transports

remote_smtp:
driver = smtp