Re: [vchkpw] vpopmail smtp-auth struggles

2003-12-01 Thread John-Mason P. Shackelford
Greetings again.

Among other things, my softlimit was set too low. I bumped 200 to 
300 and everything seemed to work fine. For other googlers I 
discovered what was the matter with a telnet session:

$ telnet cono.org
220 vps1.digitalfeet.org ESMTP
 EHLO

250-vps1.digitalfeet.org
250-AUTH LOGIN CRAM-MD5 PLAIN
250-AUTH=LOGIN CRAM-MD5 PLAIN
250-PIPELINING
250 8BITMIME
 AUTH LOGIN

334 VXNlcm5hbWU6

 username -- base 64 encoded

334 UGFzc3dvcmQ6

 password -- base 64 encoded

/home/vpopmail/bin/vchkpw:
error while loading shared libraries:
libc.so.6: failed to map segment from shared object:
Cannot allocate memory
535 authorization failed (#5.7.0)
Unfortunately only the 530 authorization failed message shows up in the 
client so one does need to telnet to see the actual problem. Also note 
that one doesn't actually need to base64 encode the username and 
password in order to generate this error, but ordinarily one would use 
the encoding to transmit the username and password.

This was discussed earlier in the list in a thread titled: Help!! with 
qmail+vpopmail PLEASE!!!. I should have read on suppressing my aversion 
to such nondescript subject lines--though I suppose my own isn't anymore 
helpful, now that I think about it.

John-Mason P. Shackelford
--
http://john-mason.shackelford.org



Re: [vchkpw] vpopmail smtp-auth struggles

2003-11-30 Thread Rick Macdougall


John-Mason P. Shackelford wrote:

Greetings all,

I have been fighting a problem with vpopmail  the smpt-auth patch for
several days now and feel a little lost and beaten down.
I use Netscape 7.1 to connect to my email account ([EMAIL PROTECTED]) and
use 'admin' as the username. I can retreive messages without difficulty.
When I attempt to reply, Netscape prompts me for a password. I supply
the same password I used to retreive email. After some churning, I am
presented with the password dialog again.
Hi,

I don't know if this applies to you but older Netscape clients required 
% instead of @ as the separator between username and domain name.

ie george%somedomain.com instead of [EMAIL PROTECTED]

Regards,

Rick





[vchkpw] vpopmail smtp-auth struggles

2003-11-29 Thread John-Mason P. Shackelford
Greetings all,

I have been fighting a problem with vpopmail  the smpt-auth patch for
several days now and feel a little lost and beaten down.
I use Netscape 7.1 to connect to my email account ([EMAIL PROTECTED]) and
use 'admin' as the username. I can retreive messages without difficulty.
When I attempt to reply, Netscape prompts me for a password. I supply
the same password I used to retreive email. After some churning, I am
presented with the password dialog again.
I have tried this using an SMTP username of 'admin' as well as of 
'[EMAIL PROTECTED]' and the results are identical.

I also tried using Outlook Express 6, and saw similar behavior.

My provider is not blocking the SMTP port--I use another SMPT server 
without difficulty.

I patched qmail 1.03 with the SMTP auth patch 0.31 from
http://members.elysium.pl/brush/qmail-smtpd-auth/.
I configured vpopmail like so:

./configure
   --enable-logging=p \
   --enable-ip-alias-domains=y  \
   --enable-clear-passwd=y  \
   --enable-mysql=y  \
   --enable-auth-logging=y \
   --enable-mysql-logging=y  \
   --enable-valias=y
(I have tried this with both vpopmail-5.2.1 and vpopmail-5.3.30)

I have used vipmap to associate cono.org with 65.125.228.113.

My supervise/qmail-smtp/run script is:

#!/bin/sh
SMTPDUID=`id -u vpopmail`
SMTPDGID=`id -g vpopmail`
exec /usr/local/bin/softlimit -m 200 \
/usr/local/bin/tcpserver -H -R -v -p -x /etc/tcp.smtp.cdb \
-u $SMTPDUID -g $SMTPDGID 0 smtp \
/var/qmail/bin/qmail-smtpd vps1.digitalfeet.org \
/home/vpopmail/bin/vchkpw /bin/true 21
/etc/tcp.smtp contains:

:allow
127.:allow,RELAYCLIENT=
65.125.228.113:allow,RELAYCLIENT=
The /etc/tcp.smtp.cdb is current.

The qmail-smtpd log doesn't mean much to me:

[EMAIL PROTECTED] root]# tail /var/log/qmail/qmail-smtpd/current
@40003fc9044e09871064 tcpserver: status: 2/40
@40003fc9044e375a6af4 tcpserver: end 28368 status 256
@40003fc9044e375ab914 tcpserver: status: 1/40
@40003fc9045004be031c tcpserver: end 28370 status 256
@40003fc9045004be4d54 tcpserver: status: 0/40
@40003fc9168a38ded0a4 tcpserver: status: 1/40
@40003fc9168a391380ec tcpserver: pid 28714 from 207.191.210.111
@40003fc9168a392cae3c tcpserver: ok 28714 cono.org:65.125.228.113:25
:207.191.210.111::4520
@40003fc9169f336d90c4 tcpserver: end 28714 status 256
@40003fc9169f336ddafc tcpserver: status: 0/40
@40003fc919462012134c tcpserver: status: 1/40
@40003fc919462afc0d1c tcpserver: pid 28743 from 207.191.210.111
@40003fc919462b16922c tcpserver: ok 28743 cono.org:65.125.228.113:25 
:207.191.210.111::4549
@40003fc91950182b281c tcpserver: end 28743 status 256
@40003fc91950182b763c tcpserver: status: 0/40
@40003fc9197b2066559c tcpserver: status: 1/40
@40003fc9197b20912a74 tcpserver: pid 28747 from 207.191.210.111
@40003fc9197b20ace41c tcpserver: ok 28747 cono.org:65.125.228.113:25 
:207.191.210.111::4551

The vlog table in Mysql says:

vchkpw: login success [EMAIL PROTECTED]:207.191.210.111

I'd be grateful for any direction as to how to troubleshoot this problem 
further.

My goal is to install Courier-IMAP and to have my configuration work 
with it as well. I understand that Courier-IMAP needs to be patched to 
handle --enable-ip-alias-domains=y, but I suppose that is my next hurdle 
since I unable even to send messages at this point.

Thanks again,

John-Mason P. Shackelford
--
http://john-mason.shackelford.org