Re: [vchkpw] pop3d logging?

2003-11-15 Thread Moshe Jacobson
On Sat, 15 Nov 2003, Werner Amon wrote:
 I have setup my qmail-vpopmail server with daemontools multilog, the smtpd
 logs normally, but the pop3d damon does not log anything.

I remember I had a hard time getting pop3d to log anything.  This is
what I ended up with, since apparently daemontools' run scripts have
to output their messages to fd 1, but qmail-pop3d uses fd 7.
Customize this to suit your own needs:

#/bin/bash
# This is /service/qmail-pop3d/run
exec  /usr/local/bin/tcpserver -H -R -u 89 -g 89 -c 60 0 pop3 \
/var/qmail/bin/qmail-popup duchess.speedfactory.net \
/home/vpopmail/bin/vchkpw \
/var/qmail/bin/qmail-pop3d-wrapper.sh \
/var/qmail/bin/qmail-pop3d Maildir 21 71


#!/bin/bash
# This is /var/qmail/bin/qmail-pop3d-wrapper.sh
hostname=$(/home/vpopmail/bin/vipmap | grep ^$TCPLOCALIP  | cut -f2 -d ' ')
echo qmail-pop3d: connected: [EMAIL PROTECTED]:-$TCPLOCALIP} :: from $TCPREMOTEIP 7
exec $@


The log lines end up looking like this:
@40003fb62c5f1d2908d4 qmail-pop3d: connected: [EMAIL PROTECTED] :: from 
66.23.209.30
@40003fb62c5f2c3dc864 qmail-pop3d: connected: [EMAIL PROTECTED]@66.23.201.84 :: 
from 66.23.197.246
@40003fb62c6009bf2bac qmail-pop3d: connected: [EMAIL PROTECTED]@66.23.201.84 :: 
from 68.115.204.2

Moshe

-- 
Moshe Jacobson 
http://runslinux.net 
AIM: Jehsom




[vchkpw] maildirsize not updating

2003-11-14 Thread Moshe Jacobson
Hi List,

It seems that neither vdelivermail nor qmail-pop3d are updating the
maildirsize file for SOME users and not others, even though it is far
older than 15 minutes.  I have qmail+vpopmail, with qmail patched
using Bill Shupp's qmail-maildir++.patch file.

Here is an example. I'll give it to you step by step:

-
[EMAIL PROTECTED] /home/vpopmail/domains/speedfactory.net/someuser]# ls -lR
.:
total 5
-rw---1 vpopmail vchkpw 13 Nov 14 12:17 lastauth
drwx--5 vpopmail vchkpw152 May 27 10:09 Maildir/

./Maildir:
total 10
drwx--2 vpopmail vchkpw 48 Sep  6 11:52 cur/
-rw-r--r--1 vpopmail vchkpw   4682 Nov 14 12:17 maildirsize
drwx--2 vpopmail vchkpw 48 Nov 14 12:17 new/
drwx--2 vpopmail vchkpw 48 Nov 14 12:15 tmp/

./Maildir/cur:
total 0

./Maildir/new:
total 0

./Maildir/tmp:
total 0
[EMAIL PROTECTED] /home/vpopmail/domains/speedfactory.net/someuser]# vuserinfo [EMAIL 
PROTECTED]:   someuser
passwd: $1$6GQHg$QJ6rNHXxWTSUl64/U0hz80
clear passwd: cbrown
uid:1
gid:0
all services available
dir:   /home/vpopmail/domains/speedfactory.net/someuser
quota: 10485760
usage: 201%
last auth: Fri Nov 14 12:17:26 2003
last auth ip: 66.23.203.202

-

So you can see that this user has no mail in her maildir, yet her
quota is reported as 201% of 10 megs.  Her quota has not recently been
changed.

So now I go to send her a small test message. It should bounce back,
but it goes right through.  Here is the new listing. Notice that
maildirsize has not been updated:

---
(0)(0j)[EMAIL PROTECTED] /home/vpopmail/domains/speedfactory.net/someuser]# ls -lR
.:
total 5
-rw---1 vpopmail vchkpw 13 Nov 14 12:17 lastauth
drwx--5 vpopmail vchkpw152 May 27 10:09 Maildir/

./Maildir:
total 10
drwx--2 vpopmail vchkpw 48 Sep  6 11:52 cur/
-rw-r--r--1 vpopmail vchkpw   4682 Nov 14 12:17 maildirsize
drwx--2 vpopmail vchkpw112 Nov 14 13:25 new/
drwx--2 vpopmail vchkpw 48 Nov 14 13:25 tmp/

./Maildir/cur:
total 0

./Maildir/new:
total 4
-rw---1 vpopmail vchkpw   1533 Nov 14 13:25 
1068834351.24159.duchess.speedfactory.net,S=1457

./Maildir/tmp:
total 0


The vuserinfo output remains the same.

Even logging in through pop3 and deleting a message doesn't seem to
make a difference.  The quota usage still shows 201% after the pop3
session. 

The user's base dir is owned and writable by vpopmail.vchkpw.

Any clues as to what might be going on?

Thanks in advance,
Moshe

-- 
Moshe Jacobson 
http://runslinux.net 
AIM: Jehsom




[vchkpw] quotawarn file -- what does it do?

2003-06-08 Thread Moshe Jacobson
I have noticed that when a user gets a nearing-quota warning (from
.quotawarn.msg), that a file called quotawarn is created in their
maildir. However, when they go back in and delete all their messages,
the quotawarn file remains there.  Is this behavior correct?  What
purpose does this file serve?  Does it ever get deleted again?

Thanks,
Moshe

-- 
Moshe Jacobson 
http://runslinux.net 
AIM: Jehsom




Re: [vchkpw] Working towards vpopmail 5.4 stable

2003-06-05 Thread Moshe Jacobson
On Tue, 3 Jun 2003, Ken Jones wrote:
 Does anyone have any code changes they would like to get into the
 next release? I want to put together a new stable version 5.4. 
 Hopefully release it in the next few weeks.

There seems to be a problem in th maildir_to_email() function in
vdelivermail.c.  If the domain dir is not directly under the
DOMAINS_DIR, e.g. /home/vpopmail/domains/1/example.com, then a user
[EMAIL PROTECTED] will have a maildir of:

/home/vpopmail/domains/1/example.com/joe/Maildir/

and maildir_to_email() returns an email address of [EMAIL PROTECTED] instead of
[EMAIL PROTECTED]

This should definitely be fixed as it is a simple and obvious bug.

My (untested) fix is as follows.  Change the following block located
near the bottom of maildir_to_email():


for( pnt = last + (strlen(DOMAINS_DIR)+2); (*pnt  *pnt != '/'  j  255); ++pnt, 
++j ) {
  email[j] = *pnt;
}


to:


pnt = last + strlen(DOMAINS_DIR) + 2;
while( *(pnt+1) == '/' ) pnt+=2;
for( ; (*pnt  *pnt != '/'  j  255); ++pnt, ++j ) {
  email[j] = *pnt;
}


Moshe

-- 
Moshe Jacobson 
http://runslinux.net 
AIM: Jehsom




Re: [vchkpw] vadddomain path problem

2003-03-26 Thread Moshe Jacobson
On 27 Mar 2003, Jonas Pasche wrote:
 That's not a bug, but the first occurence of the balanced tree feature
 of vpopmail that applies both to the number of domains and to the number
 of users in a given domain. 

I have a little beef with the balanced tree thing.  I started out by
adding about 120 domains to my mail server, and it of course put about
20 into the 0/ subdirectory. The problem is, I deleted about 20 of
them (which mostly all came out of the base directory)... and now,
when I create new ones, it doesn't put them in the base dir even
though there is still room there for more, but it just continues
creating them in the 0/ subdirectory.  Is this intended? Why doesn't
it create new domains in the highest possible directory?

Thanks,
Moshe

-- 
Moshe Jacobson 
http://runslinux.net 
AIM: Jehsom




[vchkpw] aliases don't honor dot-qmail forwards

2003-03-22 Thread Moshe Jacobson
Hi all,

I'm using vpopmail 5.2.1 (the last stable release... Could we please
get an update to this branch sometime soon?). I have noticed that when
an account is set to forward mail and then I create an alias to that
account (using QmailAdmin, for example), it create a .qmail-blah file
(where blah is the alias), containing a line like this:

/path/to/vdelivermail  /path/to/real/user/Maildir/

However, this doesn't honor .qmail files that sit in that user's
directory instructing mail to be forwarded!  Neither does this:

/path/to/vdelivermail  [EMAIL PROTECTED]

I want it to be that when a user (we have many of them) using
QmailAdmin creates an alias to an account that forwards, that the
alias will forward too. Is this such a strange request?

Any suggestions?

Thanks,
Moshe

-- 
Moshe Jacobson 
http://runslinux.net 
AIM: Jehsom




Re: [vchkpw] Logging in under alias accounts

2003-02-06 Thread Moshe Jacobson
On Mon, 3 Feb 2003, Moshe Jacobson wrote:
 Is there a way to have it so that a pop user can log in under any
 alias of his/her account and have it properly authenticate them and
 pull up their real mailbox?

Does anyone have any ideas on this?  It's pretty important that I find
this out.  Any help will be greatly appreciated.

Moshe

-- 
Moshe Jacobson 
http://runslinux.net 
AIM: Jehsom





[vchkpw] Logging in under alias accounts

2003-02-03 Thread Moshe Jacobson
We are trying to switch to vpopmail from a Cobalt box, where the
username has nothing to do with the actual email aliases for which the
associated account accepts email.

Because a single account may have multiple aliases, we don't know
which is the primary that they will want to log in with. So is there
a way to have it so that a user can log in under any alias of his/her
account and have it properly authenticate them and pull up their real
mailbox?

Thanks,
Moshe

-- 
Moshe Jacobson 
http://runslinux.net 
AIM: Jehsom





[vchkpw] IP-based virtual hosting

2002-12-14 Thread Moshe Jacobson
Does vpopmail support virtual hosting by IP address? I would a user to
be able to connect to a particular IP address associated with their
domain, so they will not have to send a full user@domain string as
their username, but rather simply user, and vpopmail will be able to
infer the domain from the IP address.

Thanks,
Moshe

-- 
Moshe Jacobson 
http://runslinux.net 
AIM: Jehsom