Бруй В.В., Карлов С.В. - Linux-сервер - пошаговые инструкции - инсталляции и настройки (1077321), страница 98
Текст из файла (страница 98)
Doctor Web – антивирусное программное обеспечение437# where original message has been storied.## Infected - mean that message is infected one of known virus# Actions:#cure - cure infected attachment or delete infected part of message#(ONLY FOR REGISTERED USERS)#quarantine - move such messages to quarantine and discard#(or reject if discard doesnt supported)#discard - discard such messages#reject - reject such messages with permanent errorInfected = quarantine# Suspicious - mean that message possible is infected one of new virus#it may be false alarm (can be only if HeuristicAnalysison)# Actions:#pass - pass such messages#quarantine - move such messages to quarantine and discard#(or reject if discard doesnt supported)#discard - discard such messages#reject - reject such messages with permanent errorSuspicious = quarantine# Incureable - mean that file is infected and cannot be cured# Actions:#quarantine - move such messages to quarantine and discard#(or reject if discard doesnt supported)#discard - discard such messages#reject - reject such messages with permanent errorIncureable = quarantine# RuleFilterAlert - mean that message are hits to FiltersRule indrweb32.ini#possible only if RuleFilter = on# Actions:#discard - discard such messages#quarantine - move such messages to quarantine and discard#(or reject if discard doesnt supported)#reject - reject such messages with permanent errorRuleFilterAlert = quarantine# EmptyFrom - mean that SMTP session initiated with empty envelope From:#used for mail notifications (reports) and by spammers# Actions:#continue - continue processing such messages##ATTENTION: Your MTA would not RFC-compliant if you set up#non-continue action.
The MTA MUST accept messages with <> sender#(rfc-2505 see 2.6.1).##discard - discard such messages#reject - reject such messages with permanent errorEmptyFrom = continue# SkipObject - mean that daemon found object that cannot be checked:#password protected archive, broken archive, sym-link,#non regular file# Actions:#pass - pass such messages#quarantine - move such messages to quarantine and discard#(or reject if discard doesnt supported)#reject - reject such messages with permanent errorSkipObject = pass438Часть 7. Программное обеспечение для организации службы электронной почты# ArchiveRestriction - mean that daemon found object in archive with compression#ratio exceeded MaxCompressionRation, size of objectgreater#that MaxFileSizeToExtract or level of nested archivegreater#that MaxArchiveLevelfrom drweb32.ini# Actions:#pass - pass such messages#quarantine - move such messages to quarantine and discard#(or reject if discard doesnt supported)#reject - reject such messages with permanent errorArchiveRestriction = reject# ScanningErrors - mean that daemon fails to scan current object.
Exampleof#cases: no memory, cannot read file for check (no permissions),#timeout (see SocketTimeout and FileTimeout indrweb32.ini).# Actions:#pass - pass such messages#quarantine - move such messages to quarantine and discard#(or reject if discard doesnt supported)#reject - reject such messages with permanent error#tempfail - reject such message with temporary errorScanningErrors = quarantine# ProcessingErrors - errors in proxy-client: no memory, misconfigured,timeout#on communication with daemon and etc.# Actions:#pass - pass such messages#reject - reject such messages with permanent error#tempfail - reject such message with temporary errorProcessingErrors = reject# Admin mail address (may be unix-local address)AdminMail = postmaster@bruy.info# Filter address, that be used in From:FilterMail = DrWEB-DAEMON@test.bruy.info# List of unnotificable virusesUnnotificableVirusesList = /etc/drweb/viruses.conf# List of unnotificable addressesUnnotificableAddressesList = /etc/drweb/addresses.conf# Quarantine directory.# The infected files could be moved in that dir# if you stay this field empty or commented then# infected messages would not been storiedQuarantine = /var/drweb/infected# Permissions for quarantined filesQuarantineFilesMode = 0660########################## Notifications section ##########################[VirusNotifications]# Enable or disable sending notifications to the persons (yes/no)Глава 30.
Doctor Web – антивирусное программное обеспечениеSenderNotify = yesAdminNotify = yesRcptsNotify = yes# Files with notification templatesAdminTemplate = /etc/drweb/templates/en-ru/exim/virus-admin.msgRcptsTemplate = /etc/drweb/templates/en-ru/exim/virus-rcpts.msgSenderTemplate = /etc/drweb/templates/en-ru/exim/virus-sender.msg[SkipNotifications]SenderNotify = yesAdminNotify = noRcptsNotify = noAdminTemplate =RcptsTemplate =SenderTemplate = /etc/drweb/templates/en-ru/exim/skip-sender.msg[ArchiveRestrictionNotifications]SenderNotify = yesAdminNotify = yesRcptsNotify = noAdminTemplate = /etc/drweb/templates/en-ru/exim/archive-admin.msgRcptsTemplate =SenderTemplate = /etc/drweb/templates/en-ru/exim/archive-sender.msg[ErrorNotifications]SenderNotify = yesAdminNotify = yesRcptsNotify = noAdminTemplate = /etc/drweb/templates/en-ru/exim/error-admin.msgRcptsTemplate =SenderTemplate = /etc/drweb/templates/en-ru/exim/error-sender.msg#################### Logging section ####################[Logging]# Logging detalization ( Quiet, Errors, Alerts, Info, Verbose, Debug )Level = Info# Facility used for logging to syslog ( Daemon, Mail, Local0..7 )SyslogFacility = Mail# Priority used for logging to syslog ( Debug, Info, Notice, Alert )SyslogPriority = Info################################# Mail system settings section #################################[Mailer]# Name of Mail SystemMailSystem = Exim# Submitting program (used to send notifications)Sendmail = /usr/sbin/eximВам следует внести изменения, как минимум, в три строки конфигурационного файла.В строке:AdminMail = postmaster@bruy.infoследует указать адрес электронной почты администратора почтового севера.В строке:FilterMail = DrWEB-DAEMON@test.bruy.infoследует указать имя системы, на которой установлен демон Doctor Web.В строке:439440Часть 7.
Программное обеспечение для организации службы электронной почтыSendmail = /usr/sbin/eximследует указать местоположение исполняемого файла Exim.Назначение остальных используемых в файле опций подробно описано на русском и английском языках в файлах документации /var/tmp/drweb-exim/opt/drweb/doc/exim/conf_file.rus.txt и/var/tmp/drweb-exim/opt/drweb/doc/exim/conf_file.rus.txt, соответственно.Шаг 2Определите права доступа к файлу /etc/drweb/drweb_exim.conf и назначьте его владельцемпользователя root:[root@test /]# chmod 640 /etc/drweb/drweb_exim.conf[root@test /]# chown 0.0 /etc/drweb/drweb_exim.confКонфигурационный файл /etc/mail/system-filterДобавьте в файл /etc/mail/system-filter строки, определяющие фильтры для сообщений,прошедших проверку на содержание вирусов с использованием Doctor Web:if $received_protocol is "drweb-scanned"then# looks like a already scanned messagefinishendifif error_message and $header_from: contains "Mailer-Daemon@"then# looks like a real error message - just ignore itfinishendifif not first_deliverythen# not first delivery attemptfinishendif# Dr.Web Filterpipe "/opt/drweb/drweb-exim --conf=/etc/drweb/drweb_exim.conf -f$sender_address -- $recipients"finishКонфигурационный файл /etc/drweb/addresses.confФайл /etc/drweb/addresses.conf предназначен для блокировки отправки уведомлений на указанные адреса (или группу адресов) в зависимости от контекста, в котором используется адрес (отправителя,получателя или отправителя и получателя), для передачи сообщений.Первая строка файла должна содержать запись вида:[version=NN]которая означает, что записи содержатся в формате N-й версии файла.
Если такой строки нет, то считается,что файл записан в формате 1-й версии.Остальные строки файла имеют формат:ROLE ADDRESS_EXPRESSIONгде:параметр ROLE – может принимать значения from, to или both – предназначен для определенияконтекста, в котором используется адрес, соответственно, отправителя, получателя или отправителя и получателя.ADDRESS_EXPRESSION – регулярное выражение, определяющее адреса.Более подробно с вариантами и примерами настроек вы можете ознакомиться, прочитав документа/var/tmp/drwebциюнарусскомианглийскомязыкахвфайлахexim/opt/drweb/doc/exim/addresses_list.rus.txt/var/tmp/drwebиexim/opt/drweb/doc/exim/addresses_list.txt, соответственно.Шаг 1Глава 30.