From odip@bionet.nsc.ru  Sun Nov 13 14:14:52 2005
Return-Path: <odip@bionet.nsc.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4048E16A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 13 Nov 2005 14:14:52 +0000 (GMT)
	(envelope-from odip@bionet.nsc.ru)
Received: from manticore.bionet.nsc.ru (manticore.bionet.nsc.ru [84.237.118.164])
	by mx1.FreeBSD.org (Postfix) with ESMTP id AE2EA43D46
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 13 Nov 2005 14:14:50 +0000 (GMT)
	(envelope-from odip@bionet.nsc.ru)
Received: by manticore.bionet.nsc.ru (Postfix, from userid 1001)
	id 975CF217CC; Sun, 13 Nov 2005 20:14:48 +0600 (NOVT)
Message-Id: <20051113141448.975CF217CC@manticore.bionet.nsc.ru>
Date: Sun, 13 Nov 2005 20:14:48 +0600 (NOVT)
From: Dmitry A Grigorovich <odip@bionet.nsc.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc: support@spectrum.ru
Subject: [patch] security/drweb-postfix have invalid default config
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         88928
>Category:       ports
>Synopsis:       [patch] security/drweb-postfix have invalid default config
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 13 14:20:19 GMT 2005
>Closed-Date:    Tue Nov 22 11:28:14 GMT 2005
>Last-Modified:  Tue Nov 22 11:28:14 GMT 2005
>Originator:     Dmitry A Grigorovich
>Release:        FreeBSD 5.4-RELEASE-p8 i386
>Organization:
ICiG SB RAS
>Environment:
System: FreeBSD manticore.bionet.nsc.ru 5.4-RELEASE-p8

>Description:

Port security/drweb-postfix have invalid drweb_postfix.conf:
Template files incorrecly named

>How-To-Repeat:

Install security/drweb
Install security/drweb-postfix
Test drweb-postfix:

root@manticore# /usr/local/drweb/drweb-postfix --conf=/usr/local/etc/drweb/drweb_postfix.conf --check_only --check_user=drweb
conf: configuration will be loaded from /usr/local/etc/drweb/drweb_postfix.conf
dwlib: read_conf(/usr/local/etc/drweb/drweb_postfix.conf): successfully loaded
check_conf: quarantine test - started
check_scan: daemon return 0x20 code (known virus is found)
check_conf: quarantine test - passed
check_file: cannot open /usr/local/etc/drweb/templates/en-ru/postfix/virus-sender.msg - (2) No such file or directory
check_conf: test for sender template in virus case - failed

>Fix:

Add follow patch to /usr/ports/security/drweb-postfix/files/
Reinstall security/drweb-postfix
Test again:


root@manticore# /usr/local/drweb/drweb-postfix --conf=/usr/local/etc/drweb/drweb_postfix.conf --check_only --check_user=drweb
conf: configuration will be loaded from /usr/local/etc/drweb/drweb_postfix.conf
dwlib: read_conf(/usr/local/etc/drweb/drweb_postfix.conf): successfully loaded
check_conf: quarantine test - started
check_scan: daemon return 0x20 code (known virus is found)
check_conf: quarantine test - passedcheck_conf: mail submit test - started
check_conf: mail submit test - passed



--- patch-drweb_postfix.conf begins here ---
--- usr/local/etc/drweb/drweb_postfix.conf.orig	Mon Sep 26 21:51:24 2005
+++ usr/local/etc/drweb/drweb_postfix.conf	Sun Nov 13 19:48:06 2005
@@ -355,9 +355,9 @@
 RcptsNotify = yes
 
 # Files with notification templates
-SenderTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/virus-sender.msg
-AdminTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/virus-admin.msg
-RcptsTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/virus-rcpts.msg
+SenderTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/sender_virus.msg
+AdminTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/admin_virus.msg
+RcptsTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/rcpts_virus.msg
 
 [MalwareNotifications]
 # Enable or disable sending notifications to persons (yes/no)
@@ -366,21 +366,21 @@
 RcptsNotify = yes
 
 # Files with notification templates
-SenderTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/malware-sender.msg
-AdminTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/malware-admin.msg
-RcptsTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/malware-rcpts.msg
+SenderTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/sender_malware.msg
+AdminTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/admin_malware.msg
+RcptsTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/rcpts_malware.msg
 
 [CuredNotifications]
 SenderNotify = yes
 AdminNotify = yes
-SenderTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/cured-sender.msg
-AdminTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/cured-admin.msg
+SenderTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/sender_cured.msg
+AdminTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/admin_cured.msg
 
 [SkipNotifications]
 SenderNotify = yes
 AdminNotify = no
 RcptsNotify = no
-SenderTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/skip-sender.msg
+SenderTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/sender_skip.msg
 AdminTemplate = 
 RcptsTemplate = 
 
@@ -388,16 +388,16 @@
 SenderNotify = yes
 AdminNotify = yes
 RcptsNotify = no
-SenderTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/archive-sender.msg
-AdminTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/archive-admin.msg
+SenderTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/sender_archive.msg
+AdminTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/admin_archive.msg
 RcptsTemplate = 
 
 [ErrorNotifications]
 SenderNotify = yes
 AdminNotify = yes
 RcptsNotify = no
-SenderTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/error-sender.msg
-AdminTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/error-admin.msg
+SenderTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/sender_error.msg
+AdminTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/admin_error.msg
 RcptsTemplate = 
 
 [RuleFilterNotifications]
@@ -405,12 +405,12 @@
 AdminNotify = yes
 RcptsNotify = no
 SenderTemplate = 
-AdminTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/rule-admin.msg
+AdminTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/admin_rule.msg
 RcptsTemplate = 
 
 [LicenseLimitNotifications]
 AdminNotify = yes
-AdminTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/license-admin.msg
+AdminTemplate = /usr/local/etc/drweb/templates/en-ru/postfix/admin_license.msg
 
 ###################
 # Logging section #
--- patch-drweb_postfix.conf ends here ---


>Release-Note:
>Audit-Trail:

From: Edwin Groothuis <edwin@FreeBSD.org>
To: support@spectrum.ru
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/88928: [patch] security/drweb-postfix have invalid default config
Date: Sun, 13 Nov 2005 14:21:23 UT

 Maintainer of security/drweb-postfix,
 
 Please note that PR ports/88928 just has been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/88928
 
 -- 
 Edwin Groothuis
 edwin@FreeBSD.org
State-Changed-From-To: open->feedback 
State-Changed-By: mnag 
State-Changed-When: Sun Nov 13 16:06:49 GMT 2005 
State-Changed-Why:  
Ask for maintainer approval. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88928 

From: Alexander Demin <support@spectrum.ru>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/88928: [patch] security/drweb-postfix have invalid
 default config
Date: Mon, 14 Nov 2005 12:57:55 +0300

 Hello Edwin Groothuis.
 
 I approve this patch. Please add this patch to security/drweb-postfix
 port.
 
 Thanks.
 
 On Sun, 13 Nov 2005 14:21:23 UT
 Edwin Groothuis <edwin@FreeBSD.org> wrote:
 
 > Maintainer of security/drweb-postfix,
 > 
 > Please note that PR ports/88928 just has been submitted.
 > 
 > If it contains a patch for an upgrade, an enhancement or a bug fix
 > you agree on, reply to this email stating that you approve the patch
 > and a committer will take care of it.
 > 
 > The full text of the PR can be found at:
 >     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/88928
 > 
 
 
 -- 
 =======================================================
 Demin Alexander / Network Administarator
 Group of companies Spectrum / tel. (+7 095) 995-8999
 Moscow, 103009, Strastnoy blvr. 8
 =======================================================
State-Changed-From-To: feedback->closed 
State-Changed-By: edwin 
State-Changed-When: Tue Nov 22 11:28:03 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88928 
>Unformatted:
