Цитата: batonser 
 Что-то мысли не складываются в стройные ряды... 
 Я бы взглянул на весь конфиг. так сказать для целостности картины.
      Полность картины такая:   
 Configure:    
Код:     primary_hostname = domain.ru 
 hide mysql_servers = localhost/exim/exim/exim   
 domainlist local_domains = ${lookup mysql{SELECT `domain` \ 
                             FROM `domain` WHERE \ 
                             `domain`='${domain}' AND \ 
                             `active`='1'}}   
 domainlist relay_to_domains = ${lookup mysql{SELECT `domain` \ 
                             FROM `domain` WHERE \ 
                             `domain`='${domain}' AND \ 
                             `active`='1'}}   
 hostlist   relay_from_hosts = localhost : 10.10.0.0/16   
 acl_smtp_rcpt = acl_check_rcpt 
 acl_smtp_mime = acl_check_mime 
 acl_smtp_mail = acl_check_from   
 .... 
 .... 
 ....     
 begin acl   
 acl_check_rcpt: 
 ------------------------------ 
 warn 
        set acl_m6  = ${lookup mysql{SELECT inactive FROM mailbox \ 
                         WHERE `username`='${quote_mysql:$local_part@$domain}'}} 
        domains = +local_domains 
 ------------------------------------------  
 deny    message = "You are not allowed to send mail out office" 
         hosts = +relay_from_hosts 
         domains = !+local_domains 
         condition = ${if eq {$acl_m5}{1}} 
 --------------------------------------------------------- 
 deny    message = "In my mailserver not stored this user" 
         hosts = !+relay_from_hosts 
         domains = +local_domains 
         condition = ${if eq {$acl_m6}{1}} 
 --------------------------------------------------- 
 deny    message = "incorrect symbol in address" 
         domains = +local_domains 
         local_parts = ^[.] : ^.*[@%!/|]   
 deny    message = "incorrect symbol in address" 
         domains = !+local_domains 
         local_parts = ^[./|] : ^.*[@%!] : ^.*/\\.\\./   
 .....   
 deny    message = "You in blacklist - $dnslist_domain \n $dnslist_text" 
         dnslists = opm.blitzed.org : cbl.abuseat.org : bl.cmsa.biz : dynablock 
         log_message = DNSBL   
 #accept  hosts = +relay_from_hosts 
 accept   
 acl_check_mime:   
 deny    message   = Blacklisted file extension detected ($mime_filename) 
         condition = ${if match {${lc:$mime_filename}}{\N(\.exe|\.pif|\.bat|\.scr|\.lnk|   
 deny    message   = This type of archive is blocked! 
         condition = ${if match {${lc:$mime_filename}}{\N(\.part01.rar|\.part01.zip)$\N} 
         hosts     = !+relay_from_hosts 
         accept   
 deny    message   = This message contains malformed MIME $demime_reason. 
         condition = ${if > {$demime_errorlevel}{2} {1}{0}}   
 deny    message = Attachment has unsupported file format .$found_extension. try text, P 
         demime  = bat:btm:cmd:com:cpl:dat:dll:exe:lnk:msi:pif:prf:reg:scr:vb:vbs:url   
 acl_check_from:   
 acl_check_from:   
 warn 
         set acl_m5  = ${lookup mysql{SELECT inactive FROM mailbox \ 
                           WHERE `username`='${quote_mysql:$sender_address}'}} 
         hosts = +relay_from_hosts   
 accept       
 begin routers   
 # ROUTER ADDED BY KAS 3.0 INSTALLER 
 kas30router: 
   driver = accept 
   local_parts = passwd;$local_part : lsearch 
   condition = "${if !eq {$received_protocol}{local-esmtp}{yes}}" 
   transport = kas30transport   
 .......