Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member sehh's Avatar
    Join Date
    Feb 2006
    Location
    Europe
    Posts
    461

    Default don't deliver emails if SA is down

    How can i force Exim to NOT deliver an email if it doesn't get scanned by Spamassassin?

    Right now, it seems that if SA is down or has some other problem, Exim still delivers the email. This means that 1 out of 10 spam goes through.

    Anyone knows how to do that?

    PS:
    this is the default in postfix, it never delivers emails if SA hasn't scanned them.
    Last edited by sehh; 12-27-2008 at 04:43 AM.

  2. #2
    Member sehh's Avatar
    Join Date
    Feb 2006
    Location
    Europe
    Posts
    461

    Default

    The problem:
    Because the "spam = ${acl_m1}" line is within a "warn" statement, if SA scanning fails for any reason (spamd dies, connection failure, overloaded SA that reached max connections, etc) then instead of rejecting the email, its accepted.

    Here is a possible solution:
    Edit /etc/exim.conf, search for the string "detected message as spam" and the above "warn" statement change it to "deny".

    So it should look like:

    Code:
      deny
        condition = ${if eq {${acl_m0}}{1}{1}{0}}
        spam =  ${acl_m1}
        log_message = "SpamAssassin as ${acl_m1} detected message as spam ($spam_score)"
        ...
    if SA fails for any reason, the email should be rejected with a temporary failure, thus request the remote server to re-send the email again at a later time, so you won't loose any real emails.

Similar Threads & Tags
Similar threads

  1. Replies: 6
    Last Post: 02-14-2011, 11:02 AM
  2. do not deliver emails
    By mehdisn in forum New User Questions
    Replies: 1
    Last Post: 01-22-2010, 09:31 PM
  3. Deliver emails only for local address?
    By sh4ka in forum E-mail Discussions
    Replies: 1
    Last Post: 03-03-2009, 01:00 PM
  4. Deliver emails only for local address ?
    By devilsoulblack in forum E-mail Discussions
    Replies: 0
    Last Post: 03-03-2009, 12:53 PM
  5. Exim don't deliver
    By Skm74 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-15-2002, 04:07 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube