Re: [vchkpw] Qmail Courier-Imap (authlib) and Vpopmail trouble

2007-12-10 Thread Tom Collins

On Dec 8, 2007, at 4:26 PM, Thiago Camargo Martins Cordeiro wrote:

My system is: uname -a
Linux devel 2.6.18-xen #1 SMP Mon Dec 3 18:30:06 BRST 2007 x86_64  
GNU/Linux


I got the same problem on x86_32 too. Always inside a PVM of XEN,  
out of XEN, vchkpw works fine.


I do a workarround with my patched qmail (AUTH_CDB patch) from JMS  
qmail patch, onchance script maintain a /var/qmail/control/auth.cdb  
in sync with vpopmail user db, so I can login via smtp-auth with  
AUTH_CDB qmail patch.


But I'd like to see vchkpw working fine inside a virtual  
machine...   :)



Is it possible to compile and install vchkpw with debugging  
information, so we can find out which call to strstr() called the  
segfault?  Or is it the getrlimit() call from the strace?  Maybe you  
could email me a more detailed trace off-list and I'll try to find  
the section of code that's actually crashing?


If you grep through the ChangeLog for 64, you'll see that we've  
made various changes to support 64-bit over the past few years.  I'm  
guessing that this is another 64-bit issue, maybe one that only comes  
up on machines with lots of RAM?


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




!DSPAM:475d7c7332006819015875!


Re: [vchkpw] Qmail Courier-Imap (authlib) and Vpopmail trouble

2007-12-08 Thread Thiago Camargo Martins Cordeiro
 Hello everybody,

   Currently I have a qmail, courier-imap, and vpopmail (mysql) setup
 going (running under Gentoo on Xen) and I am having problems.  Please
 excuse me if this turns out to not be a vpopmail issue, but at this
 point I believe that it is.  I can't receive mail to my domain users
 just fine, however nobody can smtp-auth to send mail out.  The
 following is what is showing up in my logs.  Any help would be greatly
 appreciated.  Thanks.

 Mar 16 04:43:20 zues vpopmail[19467]: vchkpw-smtp: (PLAIN) login
 success [EMAIL PROTECTED]:211.168.233.97
 Mar 16 04:43:20 zues vpopmail[19467]: vchkpw-smtp: null user name
 given :211.168.233.97


 If it help the guide I have been using to try and get this setup
 going is located at the following URI
 http://forums.gentoo.org/viewtopic-t-382072.html


I have almost the same scenario here, running qmail, vpopmail courier under
XEN, but compiling from sources and not using from packages. And its on
Debian Etch, kernel 2.6.18-xen.

More strange, after install make install-strip and configure
courier-authlib to use authvchkpw, any user can login into POP and IMAP
services, but login not working with smtp-auth.

I simple do:

tar xzf vpopmail-5.4.25.tar.gz
cd vpopmail-5.4.25.tar.gz
./configure --enable-maildrop --enable-auth-module=mysql
--enable-mysql-limits --enable-valias --enable-qmail-ext
--enable-onchange-script --enable-incdir=/usr/include/mysql
--enable-libdir=/usr/lib/mysql

and...
[EMAIL PROTECTED]:/extra/src/vpopmail/vpopmail-5.4.25# ./vchkpw
Segmentation fault

I think is a vchkpw problem, as you can see, it's segfault.


[EMAIL PROTECTED]:/extra/src/vpopmail/vpopmail-5.4.25# gdb --quiet ./vchkpw
Using host libthread_db library /lib/libthread_db.so.1.
(gdb) run
Starting program: /extra/src/vpopmail/vpopmail-5.4.25/vchkpw
[Thread debugging using libthread_db enabled]
[New Thread 47210544857744 (LWP 29940)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47210544857744 (LWP 29940)]
0x2af00f501349 in strstr () from /lib/libc.so.6
(gdb)


[EMAIL PROTECTED]:/extra/src/vpopmail/vpopmail-5.4.25# strace ./vchkpw
execve(./vchkpw, [./vchkpw], [/* 19 vars */]) = 0
brk(0)  = 0x61b000
...
(QUOTE)
...
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 29951 detached


My system is: uname -a
Linux devel 2.6.18-xen #1 SMP Mon Dec 3 18:30:06 BRST 2007 x86_64 GNU/Linux

I got the same problem on x86_32 too. Always inside a PVM of XEN, out of
XEN, vchkpw works fine.

I do a workarround with my patched qmail (AUTH_CDB patch) from JMS qmail
patch, onchance script maintain a /var/qmail/control/auth.cdb in sync with
vpopmail user db, so I can login via smtp-auth with AUTH_CDB qmail patch.

But I'd like to see vchkpw working fine inside a virtual machine...   :)

Regards,
Thiago Martins


!DSPAM:475b362632001244519970!


Re: [vchkpw] Qmail Courier-Imap (authlib) and Vpopmail trouble

2006-03-20 Thread Bob Hutchinson
On Sunday 19 Mar 2006 02:21, Steve B wrote:
  I am not trying to say it's not a vpopmail issue, however, we need to
  rule out other things like completely broken qmail setups.  Having LWQ as
  a base is much easier than having gentoo's awful, horrible qmail ebuilds
  in place.
 
  -Jeremy
 
  --
  Jeremy Kitchen ++ [EMAIL PROTECTED]
 
  In the beginning was The Word and The Word was Content-type: text/plain
   -- The Word of Bob.

 Not a problem.  I will wipe my current Qmail installation and do a LWQ
 installation.  I was really hoping this was a common error :)  My only
 issue with using LWQ is that as you know Gentoo doesn't use standard
 init scripts and every time I try and create my own it never works..
 What is a recommended guide for installing vpopmail after a LWQ
 installation?  Thanks

Bill Shupp's Toaster instructions at http://shupp.org/toaster/ should help


 V/R
 Steve

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [vchkpw] Qmail Courier-Imap (authlib) and Vpopmail trouble

2006-03-20 Thread Jeremy Kitchen
On Saturday 18 March 2006 18:21, Steve B wrote:
  I am not trying to say it's not a vpopmail issue, however, we need to
  rule out other things like completely broken qmail setups.  Having LWQ as
  a base is much easier than having gentoo's awful, horrible qmail ebuilds
  in place.

 Not a problem.  I will wipe my current Qmail installation and do a LWQ
 installation.  I was really hoping this was a common error :)  My only
 issue with using LWQ is that as you know Gentoo doesn't use standard
 init scripts and every time I try and create my own it never works..
 What is a recommended guide for installing vpopmail after a LWQ
 installation?  Thanks

the INSTALL file in the vpopmail source.

it takes all of about 5 steps (3 of which are ./configure  make  make 
install) to set up vpopmail on an LWQ setup.

-Jeremy

 V/R
 Steve

-- 
Jeremy Kitchen ++ [EMAIL PROTECTED]

In the beginning was The Word and The Word was Content-type: text/plain
  -- The Word of Bob.


pgpp84MC2XUOf.pgp
Description: PGP signature


RE: [vchkpw] Qmail Courier-Imap (authlib) and Vpopmail trouble

2006-03-18 Thread Ruben Cardenal
 In the past I have done a LWQ install as well as a QmailRocks install.
  However I don't think this is a 'qmail' problem.  I think this is a
 vpopmail issue.

  As Jeremy told you, you should never install Qmail/Vpopmail/etc from
packages but install *all* compiling from the source code. I've done it tons
of times in this way and I've never had _any_ kind of problems. And, of
course, the Qmail installation part relies on LWQ. 

  Advice: don't use Qmailrocks as a reference in Qmail/Vpopmail lists :)

Ruben




Re: [vchkpw] Qmail Courier-Imap (authlib) and Vpopmail trouble

2006-03-18 Thread Jeremy Kitchen
On Saturday 18 March 2006 02:52, Steve B wrote:
 On 3/18/06, Ruben Cardenal [EMAIL PROTECTED] wrote:
   In the past I have done a LWQ install as well as a QmailRocks install.
However I don't think this is a 'qmail' problem.  I think this is a
   vpopmail issue.
 
   As Jeremy told you, you should never install Qmail/Vpopmail/etc from
  packages but install *all* compiling from the source code. I've done it
  tons of times in this way and I've never had _any_ kind of problems. And,
  of course, the Qmail installation part relies on LWQ.
 
   Advice: don't use Qmailrocks as a reference in Qmail/Vpopmail lists :)
 
  Ruben

 What is the difference between installing from source or package? I am
 not having a problem with Qmail.  As I have said I have don't LWQ,
 QmailRocks, and Gentoo's ebuild / guide and I am having the same
 problem no matter what method I install qmail.  The problem I believe
 is with either vpopmail (the reason I'm posting to the vpopmail list)
 or with courier-imap (or some variation between the two
 communicating).

I am not trying to say it's not a vpopmail issue, however, we need to rule out 
other things like completely broken qmail setups.  Having LWQ as a base is 
much easier than having gentoo's awful, horrible qmail ebuilds in place.

-Jeremy

-- 
Jeremy Kitchen ++ [EMAIL PROTECTED]

In the beginning was The Word and The Word was Content-type: text/plain
  -- The Word of Bob.


pgpNK98RZNrFj.pgp
Description: PGP signature


Re: [vchkpw] Qmail Courier-Imap (authlib) and Vpopmail trouble

2006-03-18 Thread Steve B
 I am not trying to say it's not a vpopmail issue, however, we need to rule out
 other things like completely broken qmail setups.  Having LWQ as a base is
 much easier than having gentoo's awful, horrible qmail ebuilds in place.

 -Jeremy

 --
 Jeremy Kitchen ++ [EMAIL PROTECTED]

 In the beginning was The Word and The Word was Content-type: text/plain
  -- The Word of Bob.

Not a problem.  I will wipe my current Qmail installation and do a LWQ
installation.  I was really hoping this was a common error :)  My only
issue with using LWQ is that as you know Gentoo doesn't use standard
init scripts and every time I try and create my own it never works.. 
What is a recommended guide for installing vpopmail after a LWQ
installation?  Thanks

V/R
Steve


Re: [vchkpw] Qmail Courier-Imap (authlib) and Vpopmail trouble

2006-03-17 Thread Jeremy Kitchen
On Thursday 16 March 2006 18:55, Steve B wrote:
   Currently I have a qmail, courier-imap, and vpopmail (mysql) setup
 going (running under Gentoo on Xen) and I am having problems.  Please

uh oh.

 Mar 16 04:43:20 zues vpopmail[19467]: vchkpw-smtp: (PLAIN) login
 success [EMAIL PROTECTED]:211.168.233.97
 Mar 16 04:43:20 zues vpopmail[19467]: vchkpw-smtp: null user name
 given :211.168.233.97

weird.

 If it help the guide I have been using to try and get this setup
 going is located at the following URI
 http://forums.gentoo.org/viewtopic-t-382072.html

ugh.

do not use gentoo's qmail ebuilds, especially if you've never worked with 
qmail in the past.

Especially since they include a lot of really ridiculous patches and hacks 
that make their system much harder to support and less reliable.

I would recommend that you 'unmerge' qmail and related packages on your system 
and follow www.lifewithqmail.org.  Once you have an LWQ setup, you can easily 
add vpopmail and courier-imap on top of it, and, since you've actually done 
the install yourself, rather than letting a package management system do it 
for you, you'll have a better idea of where to start when you encounter 
issues.

-Jeremy

ps. note: I am a gentoo user, I'm not just biased because I don't like their 
package management system or something.

-- 
Jeremy Kitchen ++ [EMAIL PROTECTED]

In the beginning was The Word and The Word was Content-type: text/plain
  -- The Word of Bob.


pgpFZGH29VjM6.pgp
Description: PGP signature


Re: [vchkpw] Qmail Courier-Imap (authlib) and Vpopmail trouble

2006-03-17 Thread Steve B
I would recommend that you 'unmerge' qmail and related packages on your system
 and follow www.lifewithqmail.org.  Once you have an LWQ setup, you can easily
 add vpopmail and courier-imap on top of it, and, since you've actually done
 the install yourself, rather than letting a package management system do it
 for you, you'll have a better idea of where to start when you encounter
 issues.

 -Jeremy

 ps. note: I am a gentoo user, I'm not just biased because I don't like their
 package management system or something.

 --
 Jeremy Kitchen ++ [EMAIL PROTECTED]

 In the beginning was The Word and The Word was Content-type: text/plain
  -- The Word of Bob.
In the past I have done a LWQ install as well as a QmailRocks install.
 However I don't think this is a 'qmail' problem.  I think this is a
vpopmail issue.