  warn
    recipients = +esf_skip_recipients
    set acl_c_esf_skip = 1
    logwrite = $local_part@$domain skipped via esf_skip_recipients

  warn
       !authenticated = *
       condition = ${if !eq{$acl_c_esf_skip}{1}}
       hosts    = !+relay_hosts
       domains  = !+skip_rbl_domains
       dnslists = RBL_DNS_LIST
       set acl_m_easy69 = ${eval:$acl_m_easy69+EASY_DNS_BLACKLIST}
       add_header = BlacklistCheck: Blacklisted address, +EASY_DNS_BLACKLIST Spam score
       logwrite = BlacklistCheck: Blacklisted address - $sender_host_address

  ##########################
  # Check SPF record - deny, decrement spam score, or add to score
  # SPF tells us if server is a sending mailserver for that domain.

  warn
    set acl_m_slow1 = 0

  drop
    !authenticated = *
    condition = ${if !eq{$acl_c_esf_skip}{1}}
    condition = ${if >={EASY_SPF_FAIL}{EASY_HIGH_SCORE_DROP}}
    condition = ${if !eq{$acl_m_is_whitelisted}{1}}
    spf = fail
    message = SPF: $sender_host_address is not allowed to send mail from $sender_address_domain: $spf_smtp_comment
    logwrite = SPFCheck: $sender_host_address is not allowed to send mail from $sender_address_domain: $spf_smtp_comment

  warn
    !authenticated = *
    condition = ${if !eq{$acl_c_esf_skip}{1}}
    condition = ${if !eq{EASY_SPF_FAIL}{0}}
    spf = fail
    set acl_m_slow1 = 1
    set acl_m_easy69 = ${eval:$acl_m_easy69+EASY_SPF_FAIL}
    add_header = SPFCheck: Fail, EASY_SPF_FAIL Spam score
    logwrite = SPFCheck: Fail $sender_host_address

  warn
    !authenticated = *
    condition = ${if !eq{$acl_c_esf_skip}{1}}
    condition = ${if !eq{EASY_SPF_PASS}{0}}
    spf	= pass
    set acl_m_easy69 = ${eval:$acl_m_easy69+EASY_SPF_PASS}
    add_header = SPFCheck: Server passes SPF test, EASY_SPF_PASS Spam score

  warn
    !authenticated = *
    condition = ${if !eq{$acl_c_esf_skip}{1}}
    condition = ${if !eq{EASY_SPF_SOFT_FAIL}{0}}
    condition = ${if !eq{$acl_m_esf_spf_softfail}{1}}
    spf = softfail
    set acl_m_slow1 = 1
    set acl_m_esf_spf_softfail = 1
    set acl_m_easy69 = ${eval:$acl_m_easy69+EASY_SPF_SOFT_FAIL}
    add_header = SPFCheck: Soft Fail, EASY_SPF_SOFT_FAIL Spam score
    logwrite = SPFCheck: Soft Fail $sender_host_address

  ##########################
  # If sender IP is not that of one of sender's domain's mailservers, 
  #  delay a bit.
  # Throws off lots of mass mailers.  

  warn	condition = ${if eq{$acl_m_slow1}{1}}
		delay = 2s
