Bug 32878 - Courier MTA webadmin does not apply the settings!
|
Bug#:
32878
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: iggy@gentoo.org
|
Reported By: superbeps@linux.nu
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: Courier MTA webadmin does not apply the settings!
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2003-11-06 07:13 0000
|
It doesn't' work because pop3d, pop3d-ssl etc etc filenames in /usr/sbin are
changed to
courier-pop3d courier-pop3d-ssl etc etc etc.
You can solve the problem in two ways:
1- Maintaining original services names (the best option because it's the right
one!!)
2- Patching the file /etc/courier/webadmin/changed
I do not understand why only imapd imapd-ssl pop3d pop3d-ssl file names are
changed
and all the others (included esmtpd) no?!
If the risk is a file overwrite i suggest making symlinks!
Reproducible: Always
Steps to Reproduce:
1. change something with the webadmin
2. apply the settings
3.
Sorry, been a little busy lately. Looked into this, it does apply the settings,
it just doesn't restart the processes correctly. I'm looking into some way to
fix this.
The problem lies with Webadmin being unable to find the scripts to restart
Courier. This can be easily fixed by changing one line in
/usr/share/courier/courierwebadmin/webadmin.pl by using the following patch:
diff -Naur /usr/share/courier/courierwebadmin/webadmin.pl
usr_share_courier_20040210/courierwebadmin/webadmin.pl
--- /usr/share/courier/courierwebadmin/webadmin.pl 2004-02-10
11:56:39.000000000 +0000
+++ usr_share_courier_20040210/courierwebadmin/webadmin.pl 2004-01-24
01:44:23.000000000 +0000
@@ -15,7 +15,7 @@
local $prefix="/usr";
local $exec_prefix="/usr";
local $bindir="/usr/bin";
-local $sbindir="${exec_prefix}/sbin";
+local $sbindir="/usr/share/courier";
local $libexecdir="/usr/lib/courier";
$ENV{"PATH"}="/usr/bin:${exec_prefix}/sbin:/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin";
Actually I went the other way and changed the names of what it looks for in
/usr/sbin (it's looking for courier-imapd and courier-pop3d). The changes for
this are in courier-0.44.2.20040201.ebuild as of about 7:40pm(CST). Let me know
if you have any problems with it. If I don't hear anything about it in the next
couple of days (and assuming 44.3 isn't out within that time either) I'm going
to bump courier-0.44.2.20040201.ebuild to stable.