Re: [vchkpw] starttls crashes on vpopmail with mysql

2006-09-22 Thread Ed McLain
I'm having this exact same problem.  Anyone found a rhyme or reason to
it yet?


On Mon, 2006-07-03 at 15:45 -0400, Ingo Claro wrote:
 here goes the same, but for the RHEL4U3 machine:
 
 select(1, [0], NULL, NULL, {1167, 816000}) = 1 (in [0], left {1163,
 91})
 read(0, starttls\r\n, 1024)   = 10
 brk(0)  = 0x984f000
 brk(0x987)  = 0x984f000
 mmap2(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
 -1, 0) = 0xb7e88000
 open(control/clientca.pem, O_RDONLY)  = -1 ENOENT (No such file or
 directory)
 open(/dev/urandom, O_RDONLY)  = 3
 read(3, \361\250\352\276\200\244\265\tV\225f\35\0257\27\213d\370...,
 32) = 32
 open(control/servercert.pem, O_RDONLY) = 4
 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
 
 
 
 regards,
 
 
 
 
 Ingo Claro F.
 Gerente de
 Operaciones
 [EMAIL PROTECTED]
 (+56-2) 43 00 155
 
 
NetRed S.A.
  Certificado ISO
 9001:2000
 
 
 Jeremy Kitchen escribió: 
  On Friday 30 June 2006 12:57, Ingo Claro wrote:

   Jeremy:
   
   I don't know how to make that, if you provide some basic instructions I
   can do it. I must do that before or after the crash?
   
   Note that i am also installing a RHEL 4 U3 and have the same problems..
   Anything else I can test I'll be happy to provide.
   I have another instalation in RHEL U1, with mysql but in the same
   machine, so it uses socket instead of tcp. And is operates without
   problems.
   
  
  then you'll want to use strace, which should be installed.  if it isn't, 
  install the strace package from your distribution.
  
  after that.. telnet to your smtp server, then in another terminal find the 
  pid 
  of the qmail-smtpd instance you're connected to...
  
  strace -o /tmp/strace.out -p pid
  
  make it crash
  gzip and post on the web
  send url to here.
  
  -Jeremy
  

-- 
Thanks,
Ed McLain
Sr. Colocation Engineer
TekLinks / High Speed Solutions
[EMAIL PROTECTED]
205.314.6600

!DSPAM:45138e1b171239973842769!



Re: [vchkpw] starttls crashes on vpopmail with mysql

2006-09-22 Thread Ed McLain
For anyone having this same problem, here is the fix, or at least it was
on my box.

Modify the file Makefile in the netqmail directory and look for the
line:
VPOPMAIL_LIBS=`head -1 $(VPOPMAIL_HOME)/etc/lib_deps`

Change this to read (this is all on 1 line):
VPOPMAIL_LIBS=-lz -lm -lcrypt -L$(VPOPMAIL_HOME)/lib -lvpopmail
-lmysqlclient

Save and run 'make clean; make' and you should be good to go.

For some reason, and I can't seem to figure out why, when you use the
vpopmail lib_deps it forces the mysql lib directory to /usr/lib/mysql
which on my system is the 5.0.20 libs.  Letting the system decide on
it's own by using the compat libs out of /usr/lib works.  I'm not sure
where the problem is coming into play, but running a gdb traces the
segfault to the SSL_use_RSAPrivateKey_file func in libssl.  Doesn't
matter what version of libssl it is either, I tried both 0.9.7a, 0.9.7k,
and 0.9.8c.  Just thought I would throw that in as a fix in case
somebody else experiences this problem.

Ed.


On Fri, 2006-09-22 at 02:17 -0500, Ed McLain wrote:
 I'm having this exact same problem.  Anyone found a rhyme or reason to
 it yet?
 
 
 On Mon, 2006-07-03 at 15:45 -0400, Ingo Claro wrote:
  here goes the same, but for the RHEL4U3 machine:
  
  select(1, [0], NULL, NULL, {1167, 816000}) = 1 (in [0], left {1163,
  91})
  read(0, starttls\r\n, 1024)   = 10
  brk(0)  = 0x984f000
  brk(0x987)  = 0x984f000
  mmap2(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
  -1, 0) = 0xb7e88000
  open(control/clientca.pem, O_RDONLY)  = -1 ENOENT (No such file or
  directory)
  open(/dev/urandom, O_RDONLY)  = 3
  read(3, \361\250\352\276\200\244\265\tV\225f\35\0257\27\213d\370...,
  32) = 32
  open(control/servercert.pem, O_RDONLY) = 4
  --- SIGSEGV (Segmentation fault) @ 0 (0) ---
  
  
  
  regards,
  
  
  
  
  Ingo Claro F.
  Gerente de
  Operaciones
  [EMAIL PROTECTED]
  (+56-2) 43 00 155
  
  
 NetRed S.A.
   Certificado ISO
  9001:2000
  
  
  Jeremy Kitchen escribió: 
   On Friday 30 June 2006 12:57, Ingo Claro wrote:
 
Jeremy:

I don't know how to make that, if you provide some basic instructions I
can do it. I must do that before or after the crash?

Note that i am also installing a RHEL 4 U3 and have the same problems..
Anything else I can test I'll be happy to provide.
I have another instalation in RHEL U1, with mysql but in the same
machine, so it uses socket instead of tcp. And is operates without
problems.

   
   then you'll want to use strace, which should be installed.  if it isn't, 
   install the strace package from your distribution.
   
   after that.. telnet to your smtp server, then in another terminal find 
   the pid 
   of the qmail-smtpd instance you're connected to...
   
   strace -o /tmp/strace.out -p pid
   
   make it crash
   gzip and post on the web
   send url to here.
   
   -Jeremy
   
 
-- 
Thanks,
Ed McLain
Sr. Colocation Engineer
TekLinks / High Speed Solutions
[EMAIL PROTECTED]
205.314.6600


Re: [vchkpw] starttls crashes on vpopmail with mysql

2006-07-03 Thread Jeremy Kitchen
On Friday 30 June 2006 12:57, Ingo Claro wrote:
 Jeremy:

 I don't know how to make that, if you provide some basic instructions I
 can do it. I must do that before or after the crash?

 Note that i am also installing a RHEL 4 U3 and have the same problems.
 Anything else I can test I'll be happy to provide.
 I have another instalation in RHEL U1, with mysql but in the same
 machine, so it uses socket instead of tcp. And is operates without
 problems.

then you'll want to use strace, which should be installed.  if it isn't, 
install the strace package from your distribution.

after that.. telnet to your smtp server, then in another terminal find the pid 
of the qmail-smtpd instance you're connected to...

strace -o /tmp/strace.out -p pid

make it crash
gzip and post on the web
send url to here.

-Jeremy

-- 
Jeremy Kitchen ++ [EMAIL PROTECTED]

http://www.pirate-party.us/ -- defend your rights


pgp9X4QGvddch.pgp
Description: PGP signature


Re: [vchkpw] starttls crashes on vpopmail with mysql

2006-07-03 Thread Ingo Claro
Title: Ingo Claro




Jeremy:

ok, here is the trace, it was small:

select(1, [0], NULL, NULL, {1177, 147000}) = 1 (in [0], left {1172,
868000})
read(0, "starttls\r\n", 1024) = 10
brk(0) = 0x8407000
brk(0x8428000) = 0x8428000
open("control/clientca.pem", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/dev/urandom", O_RDONLY) = 3
read(3, "\3364\355\233p\277\303\240\320\350|\24H\254[\0%k\22\251"...,
32) = 32
open("control/servercert.pem", O_RDONLY) = 4
--- SIGSEGV (Segmentation fault) @ 0 (0) ---

looking it crashes while reading servercert.pem, so here it goes too.
The strange thing, as I mentioned earlier, is that with vpopmail
without mysql it works fine.

lrwxrwxrwx 1 root root 33 Jun 28 03:38 clientcert.pem -
/var/qmail/control/servercert.pem
-rw-r- 1 vpopmail qmail 1937 Jun 28 03:38 servercert.pem

also, after this I chmod +r servercert.pem and it crashes just the same.

-BEGIN RSA PRIVATE KEY-
MIICXwIBAAKBgQDX7okvoMHn0xNvcIVdf51bpYQJ6avDdQTlj+aC9Cgm66sYlIX2
C0vMLzu4UW/80YGiHq29MPZsYXQp3VywLnklR7RikLbl7tV9it9aAg917PZ92MzI
TMsBZhJFafXht1Pju7c9riJt3ONmpXCREwgtWWiycif3SnJ2TroMQHAfxQIDAQAB
AoGBAIoCdH4TcjuYJeDg+uxiZxGvPTAUwGphfWq3yW3DXXJax/Ui4Gf8mkp7meDZ
dAkTYpZao1K7W5SzyMoFKHuWiGhF2IF7zwNv7ZpkaVuuncdUMjZ344Ci0SN6HOle
1hMHVrQVdiTt1zZiBAxaVl8ybWrx16oE5TPdRzVE+yPZqze1AkEA7VhJQAJVoHv9
jI0Q32yBTmmfJR5UXQYqmwXImhxpWRtaTsjB/J/0jxqwVbR5v4dBZFYoB1+EkDw8
NxQe+n17KwJBAOjnY2F8JsBmQltnY4UDcnWBzDBg1mGxKFodYJVmmImUKRq6YoNr
rQge1fFzlcDvhDQtjI8UNDOzCt3DDM+ImM8CQQDIGOqIgG9YQbBdUoCrHHtXdEyr
qopNculwkMuywck/SoQ0b6S8Ks6v5zxKxUDvbESBJvHQZYMJZv8NIHWNkUTJAkEA
zD/wNdPtIBoN45799e6Z+FdGPL8QA0ib/Lt6skrxRuY6Tgha0KojatWwBjm5gSQM
Kr4vYGL1jMldpDGkEHTYnQJBANLb/ojt5wUFz1bBc7EJRpl5N2fSxP/LiST4S/B0
E/z0utRTCzknC7kIZxhfDIGmDu+gMnmrEaIHJx0y5rmwfIg=
-END RSA PRIVATE KEY-
-BEGIN CERTIFICATE-
MIIC1jCCAj+gAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJjbDEN
MAsGA1UECBMEUi5NLjERMA8GA1UEBxMIU2FudGlhZ28xDjAMBgNVBAoTBVByaXNh
MRYwFAYDVQQDEw1zbXRwLnByaXNhLmNsMB4XDTA2MDYyODA3Mzg1NFoXDTA3MDYy
OTA3Mzg1NFowVzELMAkGA1UEBhMCY2wxDTALBgNVBAgTBFIuTS4xETAPBgNVBAcT
CFNhbnRpYWdvMQ4wDAYDVQQKEwVQcmlzYTEWMBQGA1UEAxMNc210cC5wcmlzYS5j
bDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA1+6JL6DB59MTb3CFXX+dW6WE
Cemrw3UE5Y/mgvQoJuurGJSF9gtLzC87uFFv/NGBoh6tvTD2bGF0Kd1csC55JUe0
YpC25e7VfYrfWgIPdez2fdjMyEzLAWYSRWn14bdT47u3Pa4ibdzjZqVwkRMILVlo
snIn90pydk66DEBwH8UCAwEAAaOBsTCBrjAdBgNVHQ4EFgQURxSscSuDkpXZRwDr
Dc1O/D8NC8YwfwYDVR0jBHgwdoAURxSscSuDkpXZRwDrDc1O/D8NC8ahW6RZMFcx
CzAJBgNVBAYTAmNsMQ0wCwYDVQQIEwRSLk0uMREwDwYDVQQHEwhTYW50aWFnbzEO
MAwGA1UEChMFUHJpc2ExFjAUBgNVBAMTDXNtdHAucHJpc2EuY2yCAQAwDAYDVR0T
BAUwAwEB/zANBgkqhkiG9w0BAQQFAAOBgQBHchAtaVdxfHKNJdPryi19EGX8gvef
VI6p52smkk6yvHQeCRjEw11oM64tcwNgbDVmSFAIDvdSWgwwyFfK6fCy3bOUpyJy
P/+asw6H7GIzNii+L6aFsCuhNlzNR/ihd29gelpVmNV2xMrzl5wsoTUXGNLqN/UR
WgYIFLiBYDRFUw==
-END CERTIFICATE-

regards,





  

  
  
  
  
  
  
  Ingo
Claro F.
Gerente de Operaciones
  [EMAIL PROTECTED]
(+56-2) 43 00 155
  
  
  
  
  Certificado
ISO 9001:2000
  

  




Jeremy Kitchen escribi:

  On Friday 30 June 2006 12:57, Ingo Claro wrote:
  
  
Jeremy:

I don't know how to make that, if you provide some basic instructions I
can do it. I must do that before or after the crash?

Note that i am also installing a RHEL 4 U3 and have the same problems.
Anything else I can test I'll be happy to provide.
I have another instalation in RHEL U1, with mysql but in the same
machine, so it uses socket instead of tcp. And is operates without
problems.

  
  
then you'll want to use strace, which should be installed.  if it isn't, 
install the strace package from your distribution.

after that.. telnet to your smtp server, then in another terminal find the pid 
of the qmail-smtpd instance you're connected to...

strace -o /tmp/strace.out -p pid

make it crash
gzip and post on the web
send url to here.

-Jeremy

  





Re: [vchkpw] starttls crashes on vpopmail with mysql

2006-07-03 Thread Ingo Claro
Title: Ingo Claro




here goes the same, but for the RHEL4U3 machine:

select(1, [0], NULL, NULL, {1167, 816000}) = 1 (in [0], left {1163,
91})
read(0, "starttls\r\n", 1024) = 10
brk(0) = 0x984f000
brk(0x987) = 0x984f000
mmap2(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7e88000
open("control/clientca.pem", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/dev/urandom", O_RDONLY) = 3
read(3, "\361\250\352\276\200\244\265\tV\225f\35\0257\27\213d\370"...,
32) = 32
open("control/servercert.pem", O_RDONLY) = 4
--- SIGSEGV (Segmentation fault) @ 0 (0) ---



regards,





  

  
  
  
  
  
  
  Ingo
Claro F.
Gerente de Operaciones
  [EMAIL PROTECTED]
(+56-2) 43 00 155
  
  
  
  
  Certificado
ISO 9001:2000
  

  




Jeremy Kitchen escribi:

  On Friday 30 June 2006 12:57, Ingo Claro wrote:
  
  
Jeremy:

I don't know how to make that, if you provide some basic instructions I
can do it. I must do that before or after the crash?

Note that i am also installing a RHEL 4 U3 and have the same problems.
Anything else I can test I'll be happy to provide.
I have another instalation in RHEL U1, with mysql but in the same
machine, so it uses socket instead of tcp. And is operates without
problems.

  
  
then you'll want to use strace, which should be installed.  if it isn't, 
install the strace package from your distribution.

after that.. telnet to your smtp server, then in another terminal find the pid 
of the qmail-smtpd instance you're connected to...

strace -o /tmp/strace.out -p pid

make it crash
gzip and post on the web
send url to here.

-Jeremy

  





Re: [vchkpw] starttls crashes on vpopmail with mysql

2006-07-03 Thread Ingo Claro
Title: Ingo Claro




Jeremy:

I do this for every test:

1) in vpopmail src
1.1) make clean
1.2) ./configure xx
1.3) make
1.4) make install-strip
2) in qmail src
2.1) make clean
2.2) make
2.3) qmailctl stop
2.4) make setup check
2.5) qmailctl start

when I leave  blank (./configure alone) starttls works fine
when I use  = "--enable-auth-module=mysql" and a remote mysql, it
crashes.


regards,





  

  
  
  
  
  
  
  Ingo
Claro F.
Gerente de Operaciones
  [EMAIL PROTECTED]
(+56-2) 43 00 155
  
  
  
  
  Certificado
ISO 9001:2000
  

  




Jeremy Kitchen escribi:

  On Monday 03 July 2006 12:38, Ingo Claro wrote:
  
  
select(1, [0], NULL, NULL, {1177, 147000}) = 1 (in [0], left {1172,
868000}) read(0, "starttls\r\n", 1024)   = 10
brk(0)  = 0x8407000
brk(0x8428000)  = 0x8428000
open("control/clientca.pem", O_RDONLY)  = -1 ENOENT (No such file or
directory)
open("/dev/urandom", O_RDONLY)  = 3
read(3, "\3364\355\233p\277\303\240\320\350|\24H\254[\0%k\22\251"...,
32) = 32
open("control/servercert.pem", O_RDONLY) = 4

  
  
  
  
looking it crashes while reading servercert.pem, so here it goes too.
The strange thing, as I mentioned earlier, is that with vpopmail without
mysql it works fine.

  
  
strange.  I would say try doing a 'make clean' on your qmail source directory, 
recompiling and reinstalling with new binaries and give that a try.  If that 
doesn't work... I don't know :(

  
  
lrwxrwxrwx  1 root root33 Jun 28 03:38 clientcert.pem -
/var/qmail/control/servercert.pem
-rw-r-  1 vpopmail qmail 1937 Jun 28 03:38 servercert.pem

  
  
  
  
-BEGIN RSA PRIVATE KEY-

  
  eek!

don't ever post this publicly!  You should go right now and generate a new 
keypair and destroy this one.  Otherwise people may be able to use this to 
forge communications from your company.  Private keys are exactly what they 
sound: private.  The public key is fine to distribute publicly, use in 
marketing material, print 1 million copies of it and post them throughout 
moscow, whatever.. but the private key *must* remain private.

On a lighter note, providing it did help with one thing.. the private key is 
not encrypted, so it's not bombing out while trying to find a passphrase ;)

-Jeremy

  





Re: [vchkpw] starttls crashes on vpopmail with mysql

2006-06-30 Thread Ingo Claro
Title: Ingo Claro




I just tried this with vpopmail 5.4.16 and Mysql (client and devel)
5.0.22 and have the same problems.

any insight in what is causing the problem?






  

  
  
  
  
  
  
  Ingo
Claro F.
Gerente de Operaciones
  [EMAIL PROTECTED]
(+56-2) 43 00 155
  
  
  
  
  Certificado
ISO 9001:2000
  

  




Ingo Claro escribi:

  
Hello list:
  
I can't starttls if I use vpopmail with mysql in another server.
  
  
[EMAIL PROTECTED] bin]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 smtp.prisa.cl ESMTP
starttls
Connection closed by foreign host.

  
i'm using vpopmail with mysql and that causes it, if i don't use mysql
i get no problems.
anyone has seen this behaviour? please help!
  
  
I use this config for vpopmail:
./configure --enable-auth-module=mysql
  
  
the mysql is in another server, the file
/home/vpopmail/etc/vpopmail.mysql has this:
192.168.1.22|3306|vpopmail|vpopmail|vpopmail
  
(this server has ip: 192.168.1.21)
  
I add domain without problems. The tables and data are created in the
database.
  
I'm using Bill Shupp toaster, but this seems more like a vpopmail issue.
  
I'm using vpopmail-5.4.13
  
More info:

fresh install in a centos 4.3 machine.
  
doing the command in command mode:
[EMAIL PROTECTED] bin]# ./qmail-smtpd
220 smtp.prisa.cl ESMTP
starttls
Segmentation fault
  
  
[EMAIL PROTECTED] control]# ll /var/qmail/control
total 56
lrwxrwxrwx 1 root root 33 Jun 28 03:38 clientcert.pem -
/var/qmail/control/servercert.pem
-rw-r--r-- 1 root root 4 Jun 28 04:27 concurrencyincoming
-rw-r--r-- 1 root root 11 Jun 28 03:12 defaultdelivery
-rw-r--r-- 1 root root 9 Jun 28 03:11 defaultdomain
-rw-r- 1 vpopmail qmail 245 Jun 28 03:39 dh1024.pem
-rw-r- 1 vpopmail qmail 156 Jun 28 03:39 dh512.pem
-rw-r--r-- 1 root root 15 Jun 28 03:11 locals
-rw-r--r-- 1 root root 14 Jun 28 03:11 me
-rw-r--r-- 1 root root 9 Jun 28 03:11 plusdomain
-rw-r--r-- 1 root root 15 Jun 28 03:11 rcpthosts
-rw-r- 1 vpopmail qmail 493 Jun 28 03:39 rsa512.pem
-rw-r- 1 vpopmail qmail 1937 Jun 28 03:38 servercert.pem
-rw-r--r-- 1 root root 2 Jun 28 03:10 spfbehavior
-rw-r--r-- 1 root root 751 Jun 28 03:42 tlsclientciphers
-rw-r--r-- 1 root root 751 Jun 28 03:42 tlsserverciphers
  
[EMAIL PROTECTED] control]# rpm -qa | grep -i ssl
perl-Crypt-SSLeay-0.51-5
openssl-0.9.7a-43.8
pyOpenSSL-0.6-1.p23
xmlsec1-openssl-1.2.6-3
openssl-devel-0.9.7a-43.8
  
MySQL-devel-standard-5.0.21-1.rhel4
MySQL-client-standard-5.0.21-1.rhel4
  
  
[EMAIL PROTECTED] bin]# ldd /var/qmail/bin/qmail-smtpd
 libssl.so.4 = /lib/libssl.so.4 (0x00101000)
 libcrypto.so.4 = /lib/libcrypto.so.4 (0x00cc3000)
 libresolv.so.2 = /lib/libresolv.so.2 (0x00c0b000)
 libm.so.6 = /lib/tls/libm.so.6 (0x00b94000)
 libcrypt.so.1 = /lib/libcrypt.so.1 (0x00bdb000)
 libc.so.6 = /lib/tls/libc.so.6 (0x00a62000)
 libgssapi_krb5.so.2 = /usr/lib/libgssapi_krb5.so.2
(0x00dae000)
 libkrb5.so.3 = /usr/lib/libkrb5.so.3 (0x00c5c000)
 libcom_err.so.2 = /lib/libcom_err.so.2 (0x00bb9000)
 libk5crypto.so.3 = /usr/lib/libk5crypto.so.3 (0x00dc4000)
 libdl.so.2 = /lib/libdl.so.2 (0x00b8e000)
 libz.so.1 = /usr/lib/libz.so.1 (0x00bc9000)
 /lib/ld-linux.so.2 (0x00a49000)
  
lrwxrwxrwx 1 root root 16 Apr 20 00:18 libssl.so.4 -
libssl.so.0.9.7a
lrwxrwxrwx 1 root root 19 Apr 20 00:18 libcrypto.so.4 -
libcrypto.so.0.9.7a
lrwxrwxrwx 1 root root 17 Apr 20 00:17 libcrypt.so.1 -
libcrypt-2.3.4.so
  
run file:
#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
  
exec /usr/local/bin/softlimit -m 800 \
 /usr/local/bin/tcpserver -v -H -R -l "$LOCAL" \
 -x /home/vpopmail/etc/tcp.smtp.cdb -c "$MAXSMTPD" \
 -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
 /usr/local/bin/recordio /var/qmail/bin/qmail-smtpd \
 /home/vpopmail/bin/vchkpw /bin/true 21
  
  
regards,
  -- 
  Ingo Claro
  
  
  

  






Ingo
Claro F.
Gerente de Operaciones
[EMAIL PROTECTED]
(+56-2) 43 00 155




Certificado
ISO 9001:2000

  

  
  





Re: [vchkpw] starttls crashes on vpopmail with mysql

2006-06-30 Thread Jeremy Kitchen
On Thursday 29 June 2006 16:00, Ingo Claro wrote:
 Hello list:

 I can't starttls if I use vpopmail with mysql in another server.


 [EMAIL PROTECTED] bin]# telnet localhost 25
  Trying 127.0.0.1...
  Connected to localhost.localdomain (127.0.0.1).
  Escape character is '^]'.
  220 smtp.prisa.cl ESMTP
  starttls
  Connection closed by foreign host.

$5 says it's a softlimit issue.  What Do Your Logs Say?

If they say anything about out of memory try raising your softlimit.  The 
openssl and mysql client libraries add a lot of fat to the runtime footprint, 
so more memory is required to run them.

-Jeremy


pgpGpM2DNI5XF.pgp
Description: PGP signature


Re: [vchkpw] starttls crashes on vpopmail with mysql

2006-06-30 Thread Ingo Claro
Title: Ingo Claro




Jeremy:

there is nothing in the logs, it just crushes, note that I execute
qmail-smtpd directly and it crashes:

[EMAIL PROTECTED] bin]# ./qmail-smtpd
220 smtp.prisa.cl ESMTP
starttls
Segmentation fault


I'll try increasing the solftlimit.

regards,





  

  
  
  
  
  
  
  Ingo
Claro F.
Gerente de Operaciones
  [EMAIL PROTECTED]
(+56-2) 43 00 155
  
  
  
  
  Certificado
ISO 9001:2000
  

  




Jeremy Kitchen escribi:

  On Thursday 29 June 2006 16:00, Ingo Claro wrote:
  
  
Hello list:

I can't starttls if I use vpopmail with mysql in another server.


[EMAIL PROTECTED] bin]# telnet localhost 25
 Trying 127.0.0.1...
 Connected to localhost.localdomain (127.0.0.1).
 Escape character is '^]'.
 220 smtp.prisa.cl ESMTP
 starttls
 Connection closed by foreign host.

  
  
$5 says it's a softlimit issue.  What Do Your Logs Say?

If they say anything about "out of memory" try raising your softlimit.  The 
openssl and mysql client libraries add a lot of fat to the runtime footprint, 
so more memory is required to run them.

-Jeremy
  





Re: [vchkpw] starttls crashes on vpopmail with mysql

2006-06-30 Thread Ingo Claro
Title: Ingo Claro




ok, I tried with 18MB, still crashes... :(

at least i won $5 :)

atte,





  

  
  
  
  
  
  
  Ingo
Claro F.
Gerente de Operaciones
  [EMAIL PROTECTED]
(+56-2) 43 00 155
  
  
  
  
  Certificado
ISO 9001:2000
  

  




Ingo Claro escribi:

  
Jeremy:
  
there is nothing in the logs, it just crushes, note that I execute
qmail-smtpd directly and it crashes:
  
[EMAIL PROTECTED] bin]# ./qmail-smtpd
220 smtp.prisa.cl ESMTP
starttls
Segmentation fault
  
  
I'll try increasing the solftlimit.
  
regards,
  
  Ingo Claro
  
  
  

  






Ingo
Claro F.
Gerente de Operaciones
[EMAIL PROTECTED]
(+56-2) 43 00 155




Certificado
ISO 9001:2000

  

  
  
  
  
Jeremy Kitchen escribi:
  
On Thursday 29 June 2006 16:00, Ingo Claro wrote:
  

  Hello list:

I can't starttls if I use vpopmail with mysql in another server.


[EMAIL PROTECTED] bin]# telnet localhost 25
 Trying 127.0.0.1...
 Connected to localhost.localdomain (127.0.0.1).
 Escape character is '^]'.
 220 smtp.prisa.cl ESMTP
 starttls
 Connection closed by foreign host.



$5 says it's a softlimit issue.  What Do Your Logs Say?

If they say anything about "out of memory" try raising your softlimit.  The 
openssl and mysql client libraries add a lot of fat to the runtime footprint, 
so more memory is required to run them.

-Jeremy
  
  





Re: [vchkpw] starttls crashes on vpopmail with mysql

2006-06-30 Thread Jeremy Kitchen
On Friday 30 June 2006 10:17, Ingo Claro wrote:
 Jeremy:

 there is nothing in the logs, it just crushes, note that I execute
 qmail-smtpd directly and it crashes:

  [EMAIL PROTECTED] bin]# ./qmail-smtpd
  220 smtp.prisa.cl ESMTP
  starttls
  Segmentation fault

that's not good.

telnet to your server, find the pid of your qmail-smtpd process then attach a 
strace/truss/ktrace/whatever to it and post the output up on the internet 
somewhere, then send us the URL for it.  (please don't post the log to the 
mailing list directly as they are generally quite large)

-Jeremy


pgpPzni06EVoz.pgp
Description: PGP signature


Re: [vchkpw] starttls crashes on vpopmail with mysql

2006-06-30 Thread Ingo Claro
Title: Ingo Claro




Jeremy:

I don't know how to make that, if you provide some basic instructions I
can do it. I must do that before or after the crash?

Note that i am also installing a RHEL 4 U3 and have the same problems.
Anything else I can test I'll be happy to provide.
I have another instalation in RHEL U1, with mysql but in the same
machine, so it uses socket instead of tcp. And is operates without
problems.

regards,





  

  
  
  
  
  
  
  Ingo
Claro F.
Gerente de Operaciones
  [EMAIL PROTECTED]
(+56-2) 43 00 155
  
  
  
  
  Certificado
ISO 9001:2000
  

  




Jeremy Kitchen escribi:

  On Friday 30 June 2006 10:17, Ingo Claro wrote:
  
  
Jeremy:

there is nothing in the logs, it just crushes, note that I execute
qmail-smtpd directly and it crashes:

 [EMAIL PROTECTED] bin]# ./qmail-smtpd
 220 smtp.prisa.cl ESMTP
 starttls
 Segmentation fault

  
  
that's not good.

telnet to your server, find the pid of your qmail-smtpd process then attach a 
strace/truss/ktrace/whatever to it and post the output up on the internet 
somewhere, then send us the URL for it.  (please don't post the log to the 
mailing list directly as they are generally quite large)

-Jeremy
  





[vchkpw] starttls crashes on vpopmail with mysql

2006-06-29 Thread Ingo Claro
Title: Ingo Claro




Hello list:

I can't starttls if I use vpopmail with mysql in another server.


[EMAIL PROTECTED] bin]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 smtp.prisa.cl ESMTP
starttls
Connection closed by foreign host.


i'm using vpopmail with mysql and that causes it, if i don't use mysql
i get no problems.
anyone has seen this behaviour? please help!


I use this config for vpopmail:
./configure --enable-auth-module=mysql


the mysql is in another server, the file
/home/vpopmail/etc/vpopmail.mysql has this:
192.168.1.22|3306|vpopmail|vpopmail|vpopmail

(this server has ip: 192.168.1.21)

I add domain without problems. The tables and data are created in the
database.

I'm using Bill Shupp toaster, but this seems more like a vpopmail issue.

I'm using vpopmail-5.4.13

More info:

fresh install in a centos 4.3 machine.

doing the command in command mode:
[EMAIL PROTECTED] bin]# ./qmail-smtpd
220 smtp.prisa.cl ESMTP
starttls
Segmentation fault


[EMAIL PROTECTED] control]# ll /var/qmail/control
total 56
lrwxrwxrwx 1 root root 33 Jun 28 03:38 clientcert.pem -
/var/qmail/control/servercert.pem
-rw-r--r-- 1 root root 4 Jun 28 04:27 concurrencyincoming
-rw-r--r-- 1 root root 11 Jun 28 03:12 defaultdelivery
-rw-r--r-- 1 root root 9 Jun 28 03:11 defaultdomain
-rw-r- 1 vpopmail qmail 245 Jun 28 03:39 dh1024.pem
-rw-r- 1 vpopmail qmail 156 Jun 28 03:39 dh512.pem
-rw-r--r-- 1 root root 15 Jun 28 03:11 locals
-rw-r--r-- 1 root root 14 Jun 28 03:11 me
-rw-r--r-- 1 root root 9 Jun 28 03:11 plusdomain
-rw-r--r-- 1 root root 15 Jun 28 03:11 rcpthosts
-rw-r- 1 vpopmail qmail 493 Jun 28 03:39 rsa512.pem
-rw-r- 1 vpopmail qmail 1937 Jun 28 03:38 servercert.pem
-rw-r--r-- 1 root root 2 Jun 28 03:10 spfbehavior
-rw-r--r-- 1 root root 751 Jun 28 03:42 tlsclientciphers
-rw-r--r-- 1 root root 751 Jun 28 03:42 tlsserverciphers

[EMAIL PROTECTED] control]# rpm -qa | grep -i ssl
perl-Crypt-SSLeay-0.51-5
openssl-0.9.7a-43.8
pyOpenSSL-0.6-1.p23
xmlsec1-openssl-1.2.6-3
openssl-devel-0.9.7a-43.8

MySQL-devel-standard-5.0.21-1.rhel4
MySQL-client-standard-5.0.21-1.rhel4


[EMAIL PROTECTED] bin]# ldd /var/qmail/bin/qmail-smtpd
 libssl.so.4 = /lib/libssl.so.4 (0x00101000)
 libcrypto.so.4 = /lib/libcrypto.so.4 (0x00cc3000)
 libresolv.so.2 = /lib/libresolv.so.2 (0x00c0b000)
 libm.so.6 = /lib/tls/libm.so.6 (0x00b94000)
 libcrypt.so.1 = /lib/libcrypt.so.1 (0x00bdb000)
 libc.so.6 = /lib/tls/libc.so.6 (0x00a62000)
 libgssapi_krb5.so.2 = /usr/lib/libgssapi_krb5.so.2
(0x00dae000)
 libkrb5.so.3 = /usr/lib/libkrb5.so.3 (0x00c5c000)
 libcom_err.so.2 = /lib/libcom_err.so.2 (0x00bb9000)
 libk5crypto.so.3 = /usr/lib/libk5crypto.so.3 (0x00dc4000)
 libdl.so.2 = /lib/libdl.so.2 (0x00b8e000)
 libz.so.1 = /usr/lib/libz.so.1 (0x00bc9000)
 /lib/ld-linux.so.2 (0x00a49000)

lrwxrwxrwx 1 root root 16 Apr 20 00:18 libssl.so.4 -
libssl.so.0.9.7a
lrwxrwxrwx 1 root root 19 Apr 20 00:18 libcrypto.so.4 -
libcrypto.so.0.9.7a
lrwxrwxrwx 1 root root 17 Apr 20 00:17 libcrypt.so.1 -
libcrypt-2.3.4.so

run file:
#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`

exec /usr/local/bin/softlimit -m 800 \
 /usr/local/bin/tcpserver -v -H -R -l "$LOCAL" \
 -x /home/vpopmail/etc/tcp.smtp.cdb -c "$MAXSMTPD" \
 -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
 /usr/local/bin/recordio /var/qmail/bin/qmail-smtpd \
 /home/vpopmail/bin/vchkpw /bin/true 21


regards,
-- 




  

  
  
  
  
  
  
  Ingo
Claro F.
Gerente de Operaciones
  [EMAIL PROTECTED]
(+56-2) 43 00 155
  
  
  
  
  Certificado
ISO 9001:2000