aboutsummaryrefslogtreecommitdiff
path: root/security/drweb-sendmail/files/patch-af
blob: a248fc6208212cf5ac8a39fcf521eaec817cfd0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
--- etc/sendmail/etc/drweb/drweb_smf.conf.orig	Mon May  6 23:48:14 2002
+++ etc/sendmail/etc/drweb/drweb_smf.conf	Fri May 10 18:12:59 2002
@@ -15,14 +15,14 @@
 #   Address = inet:3000@localhost
 #   Address = local:/var/drweb/run/drwebd.socket
 #   Address = pid:/var/drweb/run/drwebd.pid
-Address = inet:3000@localhost
+Address = local:%PREFIX%/drweb/run/drwebd.sock
 
 # Enable/disable caching resolved daemon host 
 # (useful only if daemon uses TCP/IP communications)
 Cache = yes
 
 # Timeout for communication operations (in seconds)
-Timeout = 60
+Timeout = 160
 
 #########################
 # Communication section #
@@ -32,7 +32,7 @@
 # Note: FAMILY pid is not valid
 # Address = inet:3001@localhost
 # Address = local:/usr/local/drweb/run/drweb-smf.skt
-Address = inet:3001@localhost
+Address = local:%PREFIX%/drweb/run/drweb-smf.sock
 
 ########################
 # Scan options section #
@@ -58,10 +58,10 @@
 SpamFilter = off
 
 # Directory used for story temporary files
-Spool = /var/drweb/spool
+Spool = /tmp
 
 # User account used by filter
-# FilterAccount = 
+FilterAccount = drweb
 
 # Deny scanning if at least one of recipient or sender address
 # present in DenyList with "deny" option (yes/no), if "no" all
@@ -69,7 +69,7 @@
 DenyOnOne = yes
 
 # List with rules for users or domains to block scanning 
-DenyList = /etc/drweb/users.conf
+DenyList = %PREFIX%/etc/drweb/users.conf
 
 ###################
 # Actions section #
@@ -95,7 +95,8 @@
 #        pass (default) - pass such messages
 #        discard - discard such messages
 #        reject - reject this message
-SpamFilterAlert = pass
+SpamFilterAlert = discard
+
 # EmptyFrom  - mean that SMTP session initiated with empty envelope From:
 #              widely used spammers and Mailer-Daemons
 # Actions:
@@ -111,7 +112,7 @@
 #        pass - accept messages with such objects
 #        quarantine - move message to quarantine and reject it
 #        reject (default) - reject messages
-SkipObject = reject
+SkipObject = pass
 
 # MailbombObject - mean that daemon found object in archive with compression 
 #                  ratio exceeded MaxCompressionRation or size of object greater
@@ -138,19 +139,19 @@
 #        pass - accept messages
 #        reject (default) - reject messages
 #        tempfail - says that we temporary unavailable
-ProcessingErrors = reject
+ProcessingErrors = tempfail
 
 # Admin mail address (may be unix-local address)
 AdminMail = postmaster
 
 # Filter address, that be used in From:
-FilterMail = DrWeb-DAEMON@your.domain.com
+FilterMail = DrWeb-DAEMON@%HOSTNAME%
 
 # 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 storied
-Quarantine = /var/drweb/infected
+Quarantine = %PREFIX%/drweb/infected
  
 
 #########################
@@ -177,31 +178,31 @@
 RcptsNotify = yes
 
 # Files with notification templates
-AdminTemplate = /etc/drweb/templates/en/sendmail/virus-admin.msg
-SenderTemplate = /etc/drweb/templates/en/sendmail/virus-sender.msg
-RcptsTemplate = /etc/drweb/templates/en/sendmail/virus-rcpts.msg
+AdminTemplate = %PREFIX%/etc/drweb/templates/en/sendmail/virus-admin.msg
+SenderTemplate = %PREFIX%/etc/drweb/templates/en/sendmail/virus-sender.msg
+RcptsTemplate = %PREFIX%/etc/drweb/templates/en/sendmail/virus-rcpts.msg
 
 [SkipNotifications]
 AdminNotify = no
 SenderNotify = yes
 RcptsNotify = no
 AdminTemplate = 
-SenderTemplate = /etc/drweb/templates/en/sendmail/skipobj-sender.msg
+SenderTemplate = %PREFIX%/etc/drweb/templates/en/sendmail/skipobj-sender.msg
 RcptsTemplate = 
 
 [MailbombNotifications]
 AdminNotify = yes
 SenderNotify = yes
 RcptsNotify = no
-AdminTemplate = /etc/drweb/templates/en/sendmail/mailbomb-admin.msg
-SenderTemplate = /etc/drweb/templates/en/sendmail/mailbomb-sender.msg
+AdminTemplate = %PREFIX%/etc/drweb/templates/en/sendmail/mailbomb-admin.msg
+SenderTemplate = %PREFIX%/etc/drweb/templates/en/sendmail/mailbomb-sender.msg
 RcptsTemplate = 
 
 [ErrorNotifications]
 AdminNotify = yes
 SenderNotify = no
 RcptsNotify = no
-AdminTemplate = /etc/drweb/templates/en/sendmail/error-admin.msg
+AdminTemplate = %PREFIX%/etc/drweb/templates/en/sendmail/error-admin.msg
 SenderTemplate = 
 RcptsTemplate =