Re[2]: [qmailadmin] onchange works for vpopmail, but not for qmailadmin

2008-02-27 Thread Ismail YENIGUL
Maurizio,

Please check the permissions of the onchange script.
what is the output of the?
#ls -al ~vpopmail/etc

Wednesday, February 27, 2008, 10:05:59 AM, you wrote:

 2008/2/26, Steve [EMAIL PROTECTED]:
 Maurizio Rottin wrote:
   qmailadmin works but it does not call the onchange script, so i read
   some code and some configure log and it seems that qmailadmin includes
   the /home/vpopmail/include lib directory when compiling.
  

  Am i missing some option or patch or something?
  

 I thought the same thing. I added some debug stuff to the onchange
  script, and, it is called, at least for me. But, it is called as user
  www. So, the stuff in the script would not work. I found this out with
  some debug statements, and, by looking in the Apache error log. So,
  since it is user www, the stuff I had added would not run for security
  reasons. I am in the process of re-working my onchange script.

  Now, I am speaking of adding users, not mailing lists. re you saying it
  is not called for users?

 ok, so, we can add user thanks to mysql connection, but we can't run
 the onchange script, i'll put some debug statement as soon as i can!
 please, share anything you find...




-- 
+
+ http://www.enderunix.org/ismail  http://www.endersys.com.tr   +
+ EnderUNIX SDT @ Tr   Endersys Consultancy Ltd.+
+ ismail ~ enderunix.org   ismail.yenigul ~ endersys.com.tr +
+ Volunteer, Core Team Member  Project Manager  +
+

TCP/IP ve Að güvenliði kitabýnýn 2. baskýsý çýktý!
http://dukkan.acikakademi.com


!DSPAM:47c5200e310548779711542!



Re: [qmailadmin] onchange works for vpopmail, but not for qmailadmin

2008-02-26 Thread Ismail YENIGUL
Hi Maurizio,

Tuesday, February 26, 2008, 3:28:48 PM, you wrote:

 Hi all,
 i've compiled vpopmail-5.4.23 with the onchange feature, and it works
 really good!
 this is the configure line i'm using
 ./configure --enable-logging=p --enable-auth-module=mysql
 --disable-passwd \ --disable-many-domains --enable-auth-logging \
 --enable-sql-logging --enable-valias --disable-mysql-limits \
 --enable-onchange-script

Did you just compile without installation?.

 Then i patched qmailadmin-1.2.9 with qmailadmin-1.2.9-onchange.patch
 for mailing lists, and compiled it against the new vpopmail.
 this is the configure line i used
 ./configure --enable-cgibindir=/var/www/cgi-bin
 --enable-htmldir=/var/www/html --disable-ezmlm-mysql
 --enable-dependency-tracking --enable-vpopmaildir=/home/vpopmail
 --enable-vpopuser=vpopmail --enable-vpopgroup=vchkpw --enable-no-cache

 qmailadmin works but it does not call the onchange script, so i read
 some code and some configure log and it seems that qmailadmin includes
 the /home/vpopmail/include lib directory when compiling.

Yes, It checks vpopmail headers to determine wheter onchange enabled
or not.
Are you sure that you applied the patch correctly? Check your
mailinglist.c in qmailadmin. Do you see the following lines in
mailinglist.c?
#include vpopmail_config.h
call_onchange ( delmailinglist )
call_onchange ( addmailinglist )
 I tried also to upgrade vpopmail from 5.4.23 to the latest stable
 5.4.25 and recompile qmailadmin with no result.

 Am i missing some option or patch or something?




-- 

Ismail YENIGUL
Yönetici/Manager
Servis ve Destek Bölümü/System Services and Support Division
Tel: +90 216 344 07 15
Fax: +90 216 344 07 16
http://www.endersys.com.tr


!DSPAM:47c417e9310541572315852!



[qmailadmin] simple patch about lang file check

2008-02-06 Thread Ismail YENIGUL
Hello,

When qmailadmin could not open/find the language file (lang/en etc) it
gives the segmentation fault in the command line and nothing is displayed on 
the web
brower.
# ./qmailadmin
Segmentation fault: 11 (core dumped)
[EMAIL PROTECTED] /tmp/qmailadmin-1.2.11]# gdb qmailadmin
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i386-marcel-freebsd...r
(gdb) r
Starting program: /tmp/qmailadmin-1.2.11/qmailadmin 

Program received signal SIGSEGV, Segmentation fault.
0x2818edc7 in _fseeko () from /lib/libc.so.6
(gdb) bt
#0  0x2818edc7 in _fseeko () from /lib/libc.so.6
#1  0x2818f4d9 in fseek () from /lib/libc.so.6
#2  0x0804a19a in load_lang (lang=0x806c940 en) at qmailadmin.c:318
#3  0x0804a5b8 in init_globals () at qmailadmin.c:454
#4  0x0804a6f5 in main (argc=1, argv=0xbfbfecd8) at qmailadmin.c:132
(gdb) 

When I checked the qmailadmin.c, the return value of the open_lang at
load_lang() was not handled.I added some lines in qmailadmin.c to
give a html output
when an error returned by the function.


--- qmailadmin.c.orig   Wed Feb  6 14:02:14 2008
+++ qmailadmin.cWed Feb  6 14:04:14 2008
@@ -305,8 +305,19 @@
   char *lang_entries;
   char *id;
   char *p;
+  int lang_err;
+
+  lang_err = open_lang (lang);
+  if (lang_err == -1 ) {
+printf(Content-Type: text/html\r\n\r\n);
+printf(html head\r\n);
+printf(titleFailed to open lang file:%s/title\r\n,lang);
+printf(/head\r\nbody\r\n);
+printf(h1qmailadmin error/h1\r\n);
+printf(pFailed to open lang file: %s. Please check your lang 
directory.\r\n, lang);
+printf(/body/html\r\n);
+exit(-1);
 
-  open_lang (lang);
   fseek (lang_fs, 0, SEEK_END);
   lang_size = ftell (lang_fs);
   lang_entries = malloc (lang_size);


-- 
+
+ http://www.enderunix.org/ismail  http://www.endersys.com.tr   +
+ EnderUNIX SDT @ Tr   Endersys Consultancy Ltd.+
+ ismail ~ enderunix.org   ismail.yenigul ~ endersys.com.tr +
+ Volunteer, Core Team Member  Project Manager  +
+
TCP/IP ve Ağ güvenliği kitabının 2. baskısı çıktı!
http://dukkan.acikakademi.com

!DSPAM:47a9c3ba310541058011895!


qmailadmin_open_lang.patch
Description: Binary data