[Kolab-devel] [issue1088] Uncomment MYHOME in amavis.conf.template file

Richard Bos kolab-issues at intevation.de
Thu Jan 26 22:04:43 CET 2006


New submission from Richard Bos <radoeka at xs4all.nl>:

In our porting effort we run into the problem that the amavis home     
directory should be configurable.  However, the variable MYHOME is      
commented out in the template file:     
#$MYHOME = '@amavisd_home@';   # (default is '@amavisd_home@')   
see:   
http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/kolabd/kolabd/templates/amavisd.conf.template.in?rev=1.5&content-type=text/vnd.viewcvs-markup    
   
For kolab on openpkg this works, but for kolab on something else, this   
is a problem.  My proposal is therefor to uncomment the variable.   
amavisd_home is set to /kolab/var/amavisd.  This is the default in   
...bin/amavisd   
   
The directory is set in amavisd itself:       
amavisd-new-2.3.3 > grep -n MYHOME amavisd       
    379 # serves only as a quick default for other configuration settings       
    380 $MYHOME   = '/kolab/var/amavisd';       
       
So, if we set the variable to /kolab/var/amavisd nothing to worry :))       
Let's see if that would happen indeed:       
kolabd/templates> grep "MYHOME = " amavisd.conf.template.in       
#$MYHOME = '@amavisd_home@';   # (default is '@amavisd_home@')       
       
kolabd/templates> grep amavisd_home ../dist_conf/kolab       
amavisd_home=${localstatedir}/amavisd      
      
Yes, that looks good.  
  
  
Is it okay to commit the following patch:     
  
kolabd/kolabd/templates/amavisd.conf.template.in,v      
retrieving revision 1.5      
diff -u -r1.5 amavisd.conf.template.in      
--- templates/amavisd.conf.template.in  15 Jan 2006 20:32:47 -0000      1.5      
+++ templates/amavisd.conf.template.in  26 Jan 2006 20:38:54 -0000      
@@ -60,7 +60,7 @@      
 # $MYHOME serves as a quick default for some other configuration settings.      
 # More refined control is available with each individual setting further down.      
-# $MYHOME is not used directly by the program. No trailing slash!      
-#$MYHOME = '@amavisd_home@';   # (default is '@amavisd_home@')      
+$MYHOME = '@amavisd_home@';      
      
 # $mydomain serves as a quick default for some other configuration settings.      
 # More refined control is available with each individual setting further down.      
@@ -277,7 +277,7 @@      
 #$SYSLOG_LEVEL = 'user.info';     # (facility.priority, default 'mail.info')      
      
 # Log file (if not using syslog)      
-$LOGFILE = "$MYHOME/amavis.log"; # (defaults to empty, no log)      
+$LOGFILE = "@amavisd_logfile@"; # (defaults to empty, no log)

----------
assignedto: martin
messages: 6381
nosy: bernhard, martin, mhuewe, rbos, steffen
priority: wish
status: unread
title: Uncomment MYHOME in amavis.conf.template file
topic: patch, server
________________________________________________
Kolab issue tracker <kolab-issues at intevation.de>
<https://intevation.de/roundup/kolab/issue1088>
________________________________________________




More information about the devel mailing list