[exim] add header message on accept

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: B. Cook
Dátum:  
Címzett: exim-users
Tárgy: [exim] add header message on accept
Morning All,

I have some hosts that I am by passing SA for and I wanted to put a
header message in saying that I've done so. So if there is a
complaint or issue.. I know how we got here.

How would I do that?

this is the rule that I am trying to make work:

# accept mail from the these hosts
accept
hosts = 167.7.248.140 : 17.0.0.0/8 : 209.11.164.0/24 :
66.35.250.0/24 : 198.145.37.0/24
#message = X-BSD-Message: [acl_data] This message has bypassed the
filtering system


it seems if I put a warn/hosts/message before the accept that will do
it.. but isn't that redundant? Is there something more efficient I
can do?

Below is the acl data that I am using.



###
### START ACL DATA ###
###
acl_check_data:

# Reject virus messages.
deny
  malware        = *
  message        = sorry, this message contains a virus ($malware_name)
  log_message    = malware ($malware_name)


#warn
# message       = X-BSD-Virus-Scaned = YES $tod_full (EST)


warn
   message       = X-Originating-IP: $sender_host_address


# no sa for these recipients
warn
  condition     = ${lookup {${lc:$recipients}} cdb{EXIM_DIR/cdb/ 
nosa.cdb}{yes}{no}}
   message       = X-BSD-NOSA: Yes $tod_full


accept
  condition     = ${lookup {${lc:$recipients}} cdb{EXIM_DIR/cdb/ 
nosa.cdb}{yes}{no}}



# don't scan these sender domains..
accept
condition= ${lookup {${lc:$sender_address_domain}} cdb{EXIM_DIR/cdb/
nosasender.cdb}{yes}{no}}


# accept mail from the these hosts
accept
hosts = 167.7.248.140 : 17.0.0.0/8 : 209.11.164.0/24 :
66.35.250.0/24 : 198.145.37.0/24
#message = X-BSD-Message: [acl_data] This message has bypassed the
filtering system


# if they are whitelisted in pf just skip sa please.
accept
condition = ${if eq{$interface_address}{127.0.0.1}}


# Yahoo keeps sending crap
# disabled March 1 2008 7:11 pm
#accept
# !hosts                = 65.52.0.0/14
# dnslists      = list.dnswl.org
# logwrite      = DNSWL No SA-Check for $sender_host_address



# SURBL
deny
  set acl_m1     = ${perl{surblspamcheck}}
  condition      = ${if eq{$acl_m1}{false}{no}{yes}}
  log_message    = SURBL URL DATA
  message        = $acl_m1


accept
  condition      = ${if >={$message_size}{100k}{1}{0}}


deny
  message        = This message has been rejected because \
         it has $spam_score SPAM points.\n \
         $tod_log Call 845-454-4790 for further assistance.
  spam           = spamd
  condition      = ${if >{$spam_score_int}{150}{1}{0}}
  log_message    = T=<$recipients> [SA Reject] $spam_score


warn
  message        = X-New-Subject: [SPAM] $h_subject:
  spam           = spamd
  log_message    = T=<$recipients> [SPAM] $spam_score


warn
  message        = X-BSD-Spam-Score: $spam_score ($spam_bar)


warn
  message        = X-BSD-Spam-Report: $spam_report
  spam           = spamd


accept

#