    
/*
 * -------------------------------------------------------------
 *
 *       
 *   
 *
 * -------------------------------------------------------------
 */

         ,  
:

[  1]
1 = 
.....
N = 

.....

[  X]
1 = 
.....
Y = 

      :

---
_ = _ (__  "")

 
---

     :
-  (STRING),   , ,   ..;
-  (COUNT),     0  2^31 - 1;
-  (BOOL),     :
     yes, on, true -  ,
     no, off, false -   ,   ,
       ,    .

 ,      . 


    [DaemonCommunication]  ,  
   .

Address = STRING ()

    : -d -u -n -p 
     ,    
   .    
:

   :_

     :
   inet -  TCP ,  _  
         :
           @_
         _     IP ,    
         .
         :
           Address = inet:3000@localhost
   local -   UNIX ,  _
              .
         :
           Address = local:/var/run/drwebd.skt
   pid - ,        pid-
         .
         :
           Address = pid:/var/run/drwebd.pid

Cache = BOOL (on)

    : -v 
        TCP 
   .    (yes, on, true)    
  ,   IP     ( 
)       IP;   ,
 IP      (  
 ).

Timeout = COUNT (0)

    : -t 
    ( )      .
         ,   
,   ProcessingErrors (.).  0  
 .

    
     [SendmailCommunication]    
  Sendmail.

Address = STRING ()

    : -m -i -s 
  ,        Sendmail.
   ,   ,   pid 
  .

  :
   1)  sendmail, drweb-smf &      
    Unix :
   *  drweb32.ini
     SocketMode = Unix
     SocketFile = /path/to/daemon.socket
   *  sendmail.mc :
     MAIL_FILTER(`drweb-filter', `S=local:/path/to/drweb-smf.socket, F=T, T=C:5m;S:15m;R:15m;E:1h')
   *  drweb_smf.conf :
     [DaemonCommunication]
     Address = local:/path/to/daemon.socket
     [SendmailCommunication]
     Address = local:/path/to/drweb-smf.socket
           
   2)  sendmail, drweb-smf &      
    TCP :
   *  drweb32.ini
     SocketMode = TCP
     DaemonPort = 3000
     Interfaces = localhost
   *  sendmail.mc :
     MAIL_FILTER(`drweb-filter', `S=inet:3001@localhost, F=T, T=C:5m;S:15m;R:15m;E:1h')
   *  drweb_smf.conf :
     [DaemonCommunication]
     Address = inet:3000@localhost
     [SendmailCommunication]
     Address = S=inet:3001@localhost
                      
   3)  sendmail   host_A, drweb-smf  host_B,   
   host_C,      , 
   i) sendmail & drweb-smf   ,   : host_A == host_B
   ii) sendmail   , drweb-smf &   : host_B == host_C

   *  drweb32.ini :
     SocketMode = TCP
     DaemonPort = 3000
     Interfaces = "host_C"
   *  sendmail.mc :
     MAIL_FILTER(`drweb-filter', `S=inet:3001@host_B, F=T, T=C:5m;S:15m;R:15m;E:1h')
   *  drweb_smf.conf :
     [DaemonCommunication]
     Address = inet:3000@host_C
     [SendmailCommunication]
     Address = inet:3001@host_B

 
     [Scanning]    .

HeuristicAnalysis = BOOL (on)

    : -ha 
       
, ,     .

IncludeReport = BOOL (yes)

    : -r 
       .  
VirusReport   [Actions].

ReportMaxSize = COUNT (4096)

    ( IncludeReport = yes).  0
,     ,   , .. 
 " "    .

LocalScan = BOOL (yes)

    : -l 
    " ".  
" "       (  
   ),       (
).     ,  
    .

SpamFilter = BOOL (off)

    : -hs 
     . 
 ,       
 (drweb32.ini). .   .  
     4.27.

Spool = STRING ()

    : -f 
  ,       .

FilterAccount = STRING ()

    : -o 
 ,       .

DenyOnOne = BOOL (no)

      "" 
.   ,      , 
        (   
)   "" .   , 
 ,     , ,   
   (   )  
"" .

DenyList = STRING ()

  ,  "" ;   ,   
.

 
    [Actions]  ,    
   .

Infected = STRING (reject)

,    ""   
 -  .  : reject -  
  , quarantine -      
  "".
 
Suspicious = STRING (reject)

,    ""   
 -   .   : pass - 
, reject -   , quarantine -    
c    "".

SpamFilterAlert = STRING (pass)

    : -z -hs 
, ,      
 .   : pass -  ,
reject -   , discard -    
 (  )

EmptyFrom = STRING (continue)

    : -z 
, ,      <>.
 : pass -  , reject -   ,
discard -      (  )

SkipObject = STRING (reject)

    : -k 
, ,     ,   
    (, ,  ).
 : pass -  , reject -  
, quarantine -         "".

MailbombObject = STRING (reject)

    : -j 
, ,     ,   
   ,      (
,   )  ,    
 (. MaxCompressionRatio  MaxFileSizeToExtract). 
: pass -  , reject -   , quarantine - 
        "".

ScanningErrors = STRING (reject)

    : -y 
, ,       
 (,          ).
 : pass -  , reject -  
, tempfail -       
 ,     , quarantine -  
       "".

ProcessingErrors = STRING (reject)

    : -b 
, ,       
 (,         ).
 : pass -  , reject -  
, tempfail -       
 ,     .

AdminMail = STRING ()

    : -g 
  ,     ,
   .

FilterMail = STRING ()

,       .

Quarantine = STRING ()

    : -a 
  "" - ,     .
  
   
     [NotificationOptions]   

FastNotify = BOOL (no)

      - 
   ,      
  .     
         . 
      ,   
 ( md5), ,       
  (Milter.LogLevel  6),   
 .

NotifyHashSalt = STRING ()

,        .
 
    
     [VirusNotifications]    
 .

SenderNotify = BOOL (yes)
AdminNotify = BOOL (yes)
RcptsNotify = BOOL (yes)

  ,    ,  
  .

SenderTemplate = STRING ()
AdminTemplate = STRING ()
RcptsTemplate = STRING ()

    .

     [SkipNotifications],
[MailbombNotifications]  [ErrorNotifications] - ,  
,    .

 
     [Logging]       .

Level = STRING (Quiet)

    : -w -q 
    .    
 : Quiet (  ), Errors ( ), 
Alerts (. +   ), Info (. +  ), 
Verbose ( ), Debug ( ).   
  SyslogPriority    SyslogFacility.

SyslogFacility = STRING (Mail)

          
 syslogd.  : Daemon, Mail, Local0 .. Local7.

SyslogPriority = STRING (Info)

        syslogd.
 : Debug, Info, Notice, Alert.

    
     [Submitter]    .

MailSystem = STRING (Sendmail)

  ,      .

Submitter = STRING ()

  sendmail c  :
{mailprog} -i -bm -f {sender} -- {rcpts} < {mail.msg}
 