[vchkpw] Maildrop autorespond problem

2008-04-24 Thread Jonathan Selander

Hi,

I run maildrop to sort spam into a special folder, but for some  
reason, it doesn't take the domain/user/.qmail file into account for  
autorespond etc. Perhaps vdelivermail requires an environment variable  
which i could import? Does anyone know which one if so?



This is my (somewhat hackish) maildroprc:
--

import EXT
import HOST

VPOPBIN=/var/lib/vpopmail/bin
QMAILDIRMAKE=/var/qmail/bin/maildirmake
VPOP=| /var/lib/vpopmail/bin/vdelivermail '' bounce-no-mailbox

VUSERDIR=`$VPOPBIN/vuserinfo -d [EMAIL PROTECTED] | grep -v '^no such'`

`test -z $VUSERDIR`

if ($RETURNCODE == 0)
{
	ALIASUSER=`$VPOPBIN/valias -s [EMAIL PROTECTED] | /usr/bin/awk -F' - '  
'{print $2}' | /bin/sed 's/^//'`

VUSERDIR=`$VPOPBIN/vuserinfo -d $ALIASUSER`
}

VMAILDIR=$VUSERDIR/Maildir
SPAMDIR=$VUSERDIR/Maildir/.Spam

`test -d $VUSERDIR/Maildir`
if ($RETURNCODE == 1)
{
`exit 77`
}   

logfile /var/log/maildrop.log

if (/^X-Spam-Status: *YES/)
{
`test -d $SPAMDIR`
if ($RETURNCODE == 1)
{
		`/usr/bin/maildirmake.courier -f Spam $VMAILDIR  echo INBOX.Spam  
 $VMAILDIR/courierimapsubscribed`

}
to $SPAMDIR/
}
else
{
#to $VMAILDIR/
to $VPOP
}


!DSPAM:48109efd120509039189208!



[vchkpw] [SPAM] (no subject)

2008-01-10 Thread Jonathan Selander

unsubscribe

!DSPAM:4786992b310541869418940!



[vchkpw] Global .qmail file for all domains

2008-01-05 Thread Jonathan Selander

Hi,

I just made maildrop sort spam to a Spam folder for my own user and 
I'd like the same functionality for all my domains. Is it possible to 
have a global .qmail file or such? Or simply use maildrop instead of 
vdelivermail (or whatever it's called)?


Thanks

!DSPAM:477fde3d310548088720428!



[vchkpw] CRAM-MD5 vchkpw problem

2007-08-28 Thread Jonathan Selander

Hi there,

I've set up SMTP AUTH and AUTH LOGIN works without problems, however 
when i try to login with mozilla thunderbird (which as far as i know 
uses CRAM-MD5), the login fails with the error message:


Aug 28 14:39:30 mail vpopmail[16420]: vchkpw-smtp: password fail (pass: 
'[EMAIL PROTECTED]') [EMAIL PROTECTED]:127.0.0.1


As if it uses the CRAM challenge as the password or something?

I run vpopmail 5.4.17-6 (debian package from 
http://wiki.debian.iuculano.it/quick_howto)


Thanks


[vchkpw] 421 unable to read controls (#4.3.0) with vchkpw

2007-08-15 Thread Jonathan Selander

Hi,

I've been trying to enable SMTP auth using vchkpw with qmail today.  
The login works fine, but after i issue the rcpt to command over  
telnet, I get the 421 unable to read controls (#4.3.0) error.  
Google told me it' s a permissions problem, but the permissions on  
the /var/qmail/control directory (it's actually a symlink to /etc/ 
qmail) are:


-rw-r- 1 vpopmail vchkpw  245 2007-08-15 01:01 dh1024.pem
-rw-r- 1 vpopmail vchkpw  156 2007-08-15 01:01 dh512.pem
-rw-r--r-- 1 root root  0 2007-08-11 15:01 locals
-rw--- 1 root root  0 2007-05-16 12:09 locals.lock
-rw-r--r-- 1 root root 10 2007-05-16 11:51 me
-rw-r--r-- 1 root root258 2007-08-13 14:06 morercpthosts
-rw-r--r-- 1 root root   2720 2007-08-13 14:06 morercpthosts.cdb
-rw--- 1 root root  0 2007-07-31 18:58 morercpthosts.lock
-rw-r--r-- 1 root root726 2007-08-13 14:06 rcpthosts
-rw--- 1 root root  0 2007-05-16 12:09 rcpthosts.lock
-rw-r- 1 vpopmail vchkpw  497 2007-08-15 01:01 rsa512.pem
-rw-r--r-- 1 root root 45 2007-08-09 18:30 simcontrol
-rw-r--r-- 1 root root   2115 2007-08-09 18:30 simcontrol.cdb
-rw-r--r-- 1 root root   2161 2007-08-06 13:16 simversions.cdb
drwxr-xr-x 2 root qmail  4096 2007-08-13 14:06 users
-rw-r--r-- 1 root root   3074 2007-08-13 14:06 virtualdomains
-rw--- 1 root root  0 2007-05-16 12:09 virtualdomains.lock

I don't use SSL for the auth connection, so I guess the .pem files  
don't matter. stracing an smtpd process also prints


lseek(3, 696, SEEK_SET) = -1 EBADF (Bad file descriptor)

just before the error message, as if fd 3 was closed prematurely.

When I telnet it looks like this:

Connected to domain.tld.
Escape character is '^]'.
220 domain.tld ESMTP
helo domain.tld
250 domain.tld
auth login
334 VXNlcm5hbWU6
xxx
334 UGFzc3dvcmQ6
yyy
235 ok, [EMAIL PROTECTED], go ahead (#2.0.0)
mail from:[EMAIL PROTECTED]
250 ok
rcpt to:[EMAIL PROTECTED]
421 unable to read controls (#4.3.0)
Connection closed by foreign host.



Re: [vchkpw] 421 unable to read controls (#4.3.0) with vchkpw

2007-08-15 Thread Jonathan Selander
Doh, I don't use a patch at all. I use debian packages from http:// 
debian.iuculano.it/


Perhaps i could modify the source with that patch. Seems I need to  
patch either way.


15 aug 2007 kl. 18.41 skrev Rick Macdougall:


Jonathan Selander wrote:

Hi,
I've been trying to enable SMTP auth using vchkpw with qmail  
today. The login works fine, but after i issue the rcpt to  
command over telnet, I get the 421 unable to read controls  
(#4.3.0) error. Google told me it' s a permissions problem, but  
the permissions on the /var/qmail/control directory (it's actually  
a symlink to /etc/qmail) are:

When I telnet it looks like this:
Connected to domain.tld.
Escape character is '^]'.
220 domain.tld ESMTP
helo domain.tld
250 domain.tld
auth login
334 VXNlcm5hbWU6
xxx
334 UGFzc3dvcmQ6
yyy
235 ok, [EMAIL PROTECTED], go ahead (#2.0.0)
mail from:[EMAIL PROTECTED]
250 ok
rcpt to:[EMAIL PROTECTED]
421 unable to read controls (#4.3.0)
Connection closed by foreign host.


If my memory serves me correctly, one of the older auth patches  
incorrectly closes the FD 3 socket.


Which patch are you trying to use ?

FYI - Bill Shupp's complete patch is the easiest to use IMHO, you  
can get it at www.shupp.org


Regards,

Rick




[vchkpw] Converting passwde.cdb to MySQL

2007-05-05 Thread Jonathan Selander

Hello there,

I'm currently reinstalling my old e-mail server, and while at it, I find 
it a good idea to upgrade things and make use of a MySQL database 
instead of the passwd.cdb files. My question is what do I need to do in 
order to convert these files for insertion into a database? Does such a 
script exisst somewhere, or do i need to make my own? If i need to make 
my own, where can i find specifications on the file format?


/Jonathan