/*
 * -------------------------------------------------------------
 *
 *       
 *   
 *  $Revision: 1.50 $
 *
 * -------------------------------------------------------------
 */

         ,  
:

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

.....

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

      :

---
_ = _ (__  "")

 
---

     :
-  (STRING),   , ,   ..;
-   (STRING_LIST),  ,  ;
-  (COUNT),     0  2^31 - 1;
-  (OCTAL),     ;
-  (BOOL),     :
     yes, on, true -  ,
     no, off, false -   ,   ,
       ,    .
-   (ADDRESS),    
    :  :_
    :
   inet -  TCP ,  _  
         :
           @_
         _     IP ,    
         .
         :
           Address = inet:3000@localhost
   local -   UNIX ,  _
              .
         :
           Address = local:/var/drweb/run/.drwebd
-    (ADDRESS_LIST)

 ,      . 


    [DaemonCommunication]  ,  
   .

Address = ADDRESS_LIST ()

     ,    
   .      
   .     , 
.        :
   pid - ,        pid-
         .
         :
           Address = pid:/var/drweb/run/drwebd.pid
     : 
     Address = pid:/var/drweb/run/drwebd.pid, inet:3000@srv2.example.com

Cache = BOOL (on)

        TCP 
   .    (yes, on, true)    
  ,   IP     ( 
)       IP;   ,
 IP      (  
 ).

Timeout = COUNT (0)

    ( )      .
         ,   
,   ProcessingErrors (.).  0  
 .

UseTcpNodelay = BOOL (no)

    TCP_NODELAY    . 
   ,        
 .


     [Scanning]    .

HeuristicAnalysis = BOOL (on)

       
, ,     .

StripPath = COUNT (0)

        ,  
StripPath   (/).     
 (/)    .
NOTE:    ,   -p  patch (man patch).
NOTE:  .     PrefixPath.
: path = /some/path/to/file.ext
        StripPath = 1 -> path = some/path/to/file.ext
        StripPath = 2 -> path = path/to/file.ext

PrefixPath = STRING (absent)

,       ,  
     StripPath.    
  chrooted MTA  Samba  non-chrooted ( chrooted   
) DrWeb .
:   PrefixPath    .
: path = /some/path/to/file.ext
        PrefixPath = /my/prefix -> path = /my/prefix/some/path/to/file.ext

EXAMPLE:     
  LocalScan = yes
  StripPath = 3
  PrefixPath = /jail
   : spool/file.ext
1)   LocalScan : /var/drweb/spool/file.ext
2)   StripPath : spool/file.ext
3)   PrefixPath : /jail/spool/file.ext
DrWeb Daemon     : /jail/spool/file.ext

IncludeReport = BOOL (yes)

        (.  $DAEMON_REPORT$
  ). 

IncludeStats = BOOL (no)

        (.  $SCAN_STAT$ 
 ).

ReportMaxSize = COUNT (4096)

    ( IncludeReport = yes).  0

    [Actions]  ,    
   .

---------------------------------------------------------------------------
 : 

 1.      quarantine   ,
          
    ,     .

 2.      ( )    
 ,    ,      (. 
  SkipObject, ArchiveRestriction, ProcessingErrors, ScanningErrors).


 3. ""    ,   
 "cure"  "remove"      . 
  ,     ,    
  CureFail.  Incurable   ,   
  Infected   "cure".
---------------------------------------------------------------------------
: 

LicenseLimit = STRING (tempfail)

,       - 
.
 :
pass -    
tempfail -    " -   " 
             
reject -     

Infected = STRING (quarantine)

,    ""   
 -  . 
 : 
cure -       
remove -       
reject -     
quarantine -        
redirect -   RedirectMail      
discard - ""   (" ") 

Suspicious = STRING (quarantine)

,    ""   
 -   . 
 :
pass -    
reject -     
quarantine -        
redirect -   RedirectMail      
discard - ""   (" ") 

Incurable = STRING (quarantine)

,        "" 
.  .  .
 :
remove -       
reject -     
quarantine -        
redirect -   RedirectMail      
discard - ""   (" ") 

CureFail = STRING (quarantine)

,         
    .  .  .
 :
reject -     
quarantine -        
redirect -   RedirectMail      
discard - ""   (" ") 

Adware = STRING (quarantine)

,       
 .
Possible actions : 
pass -    
reject -     
discard - ""   (" ") 
MSG_RENAME_ACTION_RUS
MSG_MOVE_ACTION_RUS

Dialers = STRING (quarantine)

,       
  (  ).
Possible actions : 
pass -    
reject -     
discard - ""   (" ") 
MSG_RENAME_ACTION_RUS
MSG_MOVE_ACTION_RUS

Jokes = STRING (quarantine)

,      -.
Possible actions : 
pass -    
reject -     
discard - ""   (" ") 
MSG_RENAME_ACTION_RUS
MSG_MOVE_ACTION_RUS

Riskware = STRING (quarantine)

,      
  .
Possible actions : 
pass -    
reject -     
discard - ""   (" ") 
MSG_RENAME_ACTION_RUS
MSG_MOVE_ACTION_RUS

Hacktools = STRING (quarantine)

,      
   ().
Possible actions : 
pass -    
reject -     
discard - ""   (" ") 
MSG_RENAME_ACTION_RUS
MSG_MOVE_ACTION_RUS

RuleFilterAlert = STRING (quarantine)

, ,      
 . 
 : 
quarantine -        
redirect -   RedirectMail      
reject -     
discard - ""   (" ") 

EmptyFrom = STRING (continue)

, ,      <>.
 : 
reject -     
discard - ""   (" ") 
,       
RFC   :
"he MTA MUST accept messages with <> sender" (rfc-2505 see 2.6.1)

SkipObject = STRING (reject)

, ,     ,   
    (, ,  ).
 : 
pass -    
reject -     
quarantine -        
redirect -   RedirectMail      

ArchiveRestriction = STRING (reject)

, ,     ,   
   ,      (
,   )  ,    
 (. MaxCompressionRatio, MaxFileSizeToExtract and MaxArchiveLevel  
DAEMON_INI). 
 : 
pass -    
reject -     
quarantine -        
redirect -   RedirectMail      

ScanningErrors = STRING (quaratine)

, ,       
 (,          ).
 : 
pass -    
reject -     
quarantine -        
redirect -   RedirectMail      
tempfail -    " -   " 
             

ProcessingErrors = STRING (quarantine)

, ,       
 (,         ).
 : 
pass -    
reject -     
quarantine -        
redirect -   RedirectMail      
tempfail -    " -   " 
             

AdminMail = STRING ()

  ,     ,
   .  $POSTMASTER$  
 .

FilterMail = STRING ()

,       .  
$FILTER_MAIL$    .

RedirectMail = STRING (absent)

,         
   redirect.

UnnotificableVirusesList = STRING (absent)

  ,   ,     
    ;    ,   
. .    viruses_list.rus.txt

UnnotificableAddressesList = STRING (absent)

  ,   ,     
    ;    ,   
. .    addresses_list.rus.txt

Quarantine = STRING ()

  "" - ,     .

QuarantineFilesMode = OCTAL (0660)

,       .

QuarantineFilenamesMode = STRING (Std)

 ,     ,   , 
     :
* std - ,  mkstemp (: %{QuarantineFilenamesPrefix}XXXXXX)
* tai -  TAI  (: %sec.%usec.%{QuarantineFilenamesPrefix}XXXXXX)
      ,       tai2tai64n  
      tai64nlocal   daemontools.
* rand48 -  lrand48 (: %{QuarantineFilenamesPrefix}XXXXXXXX)
               
        mkstemp (Solaris)     

QuarantineFilenamesPrefix = STRING (drweb.quarantine.)

   ,    (.  
QuarantineFilenamesMode).


     [VirusNotifications]    
 .

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

  ,    ,  
  .

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

    .

     [SkipNotifications],
[ArchiveRestrictionNotifications]  [ErrorNotifications] - ,  
 ,    .

     [Logging]       .

Level = STRING (Quiet)

    .    
 : 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]  (.  [Mailer]).


     [Mailer]   .

MailSystem = STRING (QMail)

  ,      .

Sendmail = STRING ()

      c  sendmail :
{program} {add_args} {default_args} -f {sender} -- {rcpts} < {mail.msg}
   /var/qmail/bin/qmail-inject
 .   SendmailArgs    .

SendmailArgs = STRING ()

 (   )    
 .   : absent.
: 
  SendmailArgs = "-C/usr/exim/alt_exim.conf"
  SendmailArgs = "-FUserName"


QmailQueue = STRING ()

   qmail-queue,   .


     [Agent]  ,   
   .

Address = ADDRESS (absent)

  .      
      stat.drweb.com.
 agent/readme.rus.txt     .

Timeout = COUNT (10)

 ( )    .
