From odip@bionet.nsc.ru  Sun Jul  3 15:35:23 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 6514816A41C
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  3 Jul 2005 15:35:23 +0000 (GMT)
	(envelope-from odip@bionet.nsc.ru)
Received: from hydra.bionet.nsc.ru (hydra.bionet.nsc.ru [84.237.118.162])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 13B1043D48
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  3 Jul 2005 15:35:22 +0000 (GMT)
	(envelope-from odip@bionet.nsc.ru)
Received: by hydra.bionet.nsc.ru (Postfix, from userid 1001)
	id 6230F5565; Sun,  3 Jul 2005 22:35:17 +0700 (NOVST)
Message-Id: <20050703153517.6230F5565@hydra.bionet.nsc.ru>
Date: Sun,  3 Jul 2005 22:35:17 +0700 (NOVST)
From: Dmitry A Grigorovich <odip@bionet.nsc.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc: support@spectrum.ru
Subject: [patch] invalid default config security/drweb-postfix
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         82930
>Category:       ports
>Synopsis:       [patch] invalid default config security/drweb-postfix
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pav
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 03 15:40:25 GMT 2005
>Closed-Date:    Fri Jul 08 12:18:41 GMT 2005
>Last-Modified:  Fri Jul 08 12:18:41 GMT 2005
>Originator:     Dmitry A Grigorovich
>Release:        FreeBSD manticore.bionet.nsc.ru 5.4-RELEASE-p2
>Organization:
ICiG SB RAS, Russia
>Environment:
FreeBSD manticore.bionet.nsc.ru 5.4-RELEASE-p2

>Description:

Port security/drweb-postfix have invalid default drweb_postfix.conf

>How-To-Repeat:

Install security/drweb
Install security/drweb-postfix
Try to test:

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


>Fix:

Apply follow patch
Reinstall security/drweb-postfix
Try to test:

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


--- patch-drweb begins here ---
diff -ur drweb-postfix/files/patch-aa drweb-postfix.new/files/patch-aa
--- drweb-postfix/files/patch-aa	Thu Feb 10 22:05:53 2005
+++ drweb-postfix.new/files/patch-aa	Sun Jul  3 22:26:40 2005
@@ -68,7 +68,7 @@
 -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 = %CONFDIR%/templates/en-ru/postfix/archive-sender.msg
-+AdminTemplate = %CONFIDR%/templates/en-ru/postfix/archive-admin.msg
++AdminTemplate = %CONFDIR%/templates/en-ru/postfix/archive-admin.msg
  RcptsTemplate = 
  
  [ErrorNotifications]
--- patch-drweb ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: pav 
State-Changed-When: Thu Jul 7 15:53:06 GMT 2005 
State-Changed-Why:  
Asked maintainer for approval 


Responsible-Changed-From-To: freebsd-ports-bugs->pav 
Responsible-Changed-By: pav 
Responsible-Changed-When: Thu Jul 7 15:53:06 GMT 2005 
Responsible-Changed-Why:  
Track 

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

From: Pav Lucistnik <pav@FreeBSD.org>
To: support@spectrum.ru, bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/82930: [patch] invalid default config
	security/drweb-postfix
Date: Thu, 07 Jul 2005 17:53:02 +0200

 Dear maintainer of FreeBSD port security/drweb-postfix, please take a
 look at
 
 http://www.freebsd.org/cgi/query-pr.cgi?q=82930
 
 Do you approve this typo fix?
 
 -- 
 Pav Lucistnik <pav@oook.cz>
               <pav@FreeBSD.org>
 
 Adding horrible bugs to the source is a venal sin.
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Fri Jul 8 12:18:33 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

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