RE: [Exim] What happens when SA is delayed

Góra strony
Delete this message
Reply to this message
Autor: Frank DeChellis
Data:  
Dla: Bruce Richardson, exim-users
Temat: RE: [Exim] What happens when SA is delayed
This is the section of the configuration dealing with SpamAssassin

Thanks


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


begin acl

acl_smtp_data:

#### START CLAM STUFF


   warn condition = ${if !def:h_Message-ID: {1}}
        hosts = +relay_from_hosts
        message = Message-ID: <E$message_id@$primary_hostname>


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


  deny  message = This message contains a virus: ($malware_name) please scan
your system.
      demime = *
      malware = *


warn message = X-Scanned-By: ClamAV

##### END CLAM STUFF

    # At this point let anything from a local host though (no spamcheck)


    accept  hosts               = +relay_from_hosts


    # put headers in all messages (no matter if spam or not)


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


    # add second subject line with *SPAM* marker when message
    # is over threshold
    warn  message = Subject: *SPAM* $h_Subject
          spam = nobody
    warn  message = X-Spam-Report: $spam_report
          spam = nobody


##don;t scan emails greater than 100k
warn    message        = X-Spam-Score: $spam_score ($spam_bar)
          condition      = ${if <{$message_size}{50k}{1}{0}}
          spam           = nobody:true
###end of file size check


     # reject spam at scores > 6


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


    accept  message       = data looks good




> -----Original Message-----
> From: exim-users-admin@??? [mailto:exim-users-admin@exim.org]On
> Behalf Of Bruce Richardson
> Sent: Saturday, March 20, 2004 8:31 AM
> To: exim-users@???
> Subject: Re: [Exim] What happens when SA is delayed
>
>
> --
> On Sat, Mar 20, 2004 at 07:56:24AM -0500, Frank DeChellis wrote:
> > Since this started happening 3 weeks ago we have been experiencing email
> > going to clients 5-10 and in some cases 100's of times. I turned SA off
> > last night and it hasn't happened.
>
> It would be helpful to see the snippet of your config file that contains
> the router for SpamAssassin. Also to see how you make sure that mail
> resubmitted from SpamAssassin isn't resent through SpamAssassin.
>
> Speculating blindly, it might be that you check for a header that
> SpamAssassin adds, only sending mail to SpamAssassin if that header is
> not present. If spamd is too busy and the mail is resubmitted to Exim
> without being processed, then that header will not be present and
> the message will be resubmitted to SpamAssassin. Depending on how the
> rest of your routers are set up, this could cause duplicates.
>
> >
> > Using my high level detective skills, I would have to think this was,
> > somehow, causing my duplicate messages.
> >
> > Is it possible that Exim might try to have the email scanned, get a time
> > out, send the message anyway but try to scan it again later?
> >
> > This problem has been a thorn in my side for a few weeks.
>
> What parameters to you pass to spamc? Spamc defaults to simply
> resubmitting a message unscanned if it fails to connect to spamd, but it
> is possible to have it return an exit-code that should cause the mta to
> requeue the message. I can imagine configurations where doing the
> latter would cause duplicates.
>
> --
> Bruce
>
> Nostalgia isn't what it used to be.
> --
> Content-Description: Digital signature
>
> [ signature.asc of type application/pgp-signature deleted ]
> --
>
> --
>
> ## List details at
> http://www.exim.org/mailman/listinfo/exim-users Exim details at

http://www.exim.org/ ##