Re: [exim] header_syntax

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Brian
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] header_syntax
Brian wrote:

I do have this in my configure as my acl_smtp_data:

acl_check_data:

# Deny unless the addresses in the header is syntactically correct.
#
deny
  message     = Your message does not conform to RFC2822 standard
  log_message = RFC2822
  !verify     = header_syntax


#require verify = header_syntax
#verify = header_sender

# Reject virus infested messages.
deny message    = This message contains malware ($malware_name)
  malware        = *


warn message    = X-Anti-Virused: Yes [$tod_epoch]


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


deny message = This message contains an attachment of a type which we do 
not accept. (.$found_extension)
  demime         = 
bas:bat:cmd:com:cpl:exe:hlp:hta:inf:js:jse:lnk:pif:reg:scr:shs:shm:url:wcs:wsf:wsh:vbe:vbs


deny message    = Hiding of file extensions is not allowed!
  log_message    = Dangerous extension (CLSID hidden)
  regex          = 
^(?i)Content-Disposition::(.*?)filename=\\s*"+((\{[a-hA-H0-9-]{25,}\})|((.*?)\\s{10,}(.*?)))"+\$


deny message    = Empty MIME Boundry
  condition      = $mime_is_multipart
  condition      = ${if eq{$mime_boundary}{}{yes}{no}


warn message    = X-MIME-Status: Safe


# Add Message-ID and Date Headers if from Relay hosts and headers missing.
warn message    = Message-ID: <E$message_id@$primary_hostname>
  condition      = ${if !def:h_Message-ID: {1}}


warn message    = Date: $tod_full
  condition      = ${if !def:h_Date: {1}}


warn message    = X-Received-Time: $tod_bsdinbox


warn message    = X-MailFrom: $sender_address


warn message    = :spf_received:$spf_received


accept hosts    = +relay_from_hosts : +no_sa


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


drop message    = ** Attention **\n \
                 This message has been rejected!\n \
                 [$sender_address from $sender_host_address -> 
$local_part@$domain at $tod_bsdinbox]
  spam           = spamd
  condition      = ${if >{$spam_score_int}{400}{1}{0}}
  log_message    = [SA Reject] $spam_score


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


warn message    = X-Spam-Info: Spam detection software, provided 
Adriance Memorial Library
warn message    = X-Spam-Info: Has scanned this message. If this is 
believed to be spam
warn message    = X-Spam-Info: A tag has been added to the subject for 
you own filtering purposes.
warn message    = X-Spam-Info: Please call us at: (845) 485.3445 x3325 
if you have any questions.


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


warn message    = X-Spam-Report: $spam_report


accept hosts    = +relay_from_hosts


accept