[vchkpw] using maildrop to parse to vdelivermail delete

2004-08-05 Thread brandon
Hi Guys,

For the vpopmail's .qmail-default syntax "|
/home/vpopmail/bin/vdelivermail '' bounce-no-maibox" has been work fine
together with syntax "| /home/vpopmail/bin/vdelivermail '' delete".  

I do not know if im mailing this to the correct mailling list but just
hope to get some help.

My problem was i do run maildrop from .qmail-default with syntax "|
maildrop maildrop_filter" and with my actual .qmail-default syntax to
another file call .deliver.

My syntax in maildrop_filter is:
SHELL="/bin/sh"
import EXT
import HOST

VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
VPOP=`/usr/bin/head -1 .deliver`

if ( $SIZE < 262144 )
{
   xfilter "/usr/bin/spamc -f -u [EMAIL PROTECTED]"
}
if (/^X-Spam-Status: *YES*/)
{
`test -d $VHOME/Maildir/.SPAM`
if( $RETURNCODE == 1 )
{
`maildirmake $VHOME/Maildir/.SPAM;chown -R
vpopmail.vchkpw $VHOME/Maildir/.SPAM`
if( $RETURNCODE == 1 )
{
  to "$VPOP"
}
else
{
  to "$VHOME/Maildir/.SPAM/"
}
}
else
{
to "$VHOME/Maildir/.SPAM/"
}
exit
}
else
{
to "$VPOP"
exit
}


If my .deliver contains:
| /home/vpopmail/bin/vdelivermail '' delete

my mails will not get delivered and drops back to queue.

Can i know if "| /home/vpopmail/bin/vdelivermail '' delete" works ONLY
in .qmail-default?

Thanks.
./brandon



Re: [vchkpw] Help with VpopMail 5.4.5 install!

2004-08-05 Thread Iain Morrison
Hi Chris,

I just wanted to say thank for your help :-)

I have managed to successfully install VpopMail.

As for why I am still running MySQL 3.23? Now this is a good question! I
guess I have just stuck with the one that comes with RedHat server. For all
that I am running I think that this version will work Okay?! the only work
it will be doing is holding email account details and a small amount of
preference settings.

Anyway, thanks again,

Iain

PS Has the rain stopped with you down south? :-)
- Original Message - 
From: "Chris Pugh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 04, 2004 11:20 PM
Subject: Re: [vchkpw] Help with VpopMail 5.4.5 install!


> Iain,
>
> Vpopmail install can't find the mysql header files.
> Usually in /mysql/include/mysql for a standard
> install.
> ( Could be elsewhere, sorry don't use Redhat. )
>
> Either include them in your PATH, or copy the lot
> to a directory that is in your path, say /usr/bin
> Then the install should wizz through without a hitch.
> HTH.
>
> Incidentally, why are you using MySQL 3.23, since we
> are now on 4.0.20?
>
> Slange!
>
>
> Chris.
>
> PS Greetings from south of the border. ;-)
>
> --- Iain Morrison <[EMAIL PROTECTED]> wrote:
>
> > Hi I am currently trying to install VPopmail 5.4.5
> > and I get the following
> > errors:
> >
> > ---
> >
> > vauth.c:33:19: mysql.h: No such file or directory
> > vauth.c:40: syntax error before "mysql_update"
> > vauth.c:40: warning: type defaults to `int' in
> > declaration of `mysql_update'
> > vauth.c:40: warning: data definition has no type or
> > storage class
> > vauth.c:41: syntax error before "mysql_read_getall"
> > vauth.c:41: warning: type defaults to `int' in
> > declaration of
> > `mysql_read_getall
> > '
> > vauth.c:41: warning: data definition has no type or
> > storage class
> > vauth.c:59: syntax error before '*' token
> > vauth.c:59: warning: type defaults to `int' in
> > declaration of `res_update'
> > vauth.c:59: warning: data definition has no type or
> > storage class
> > vauth.c:60: syntax error before '*' token
> > vauth.c:60: warning: type defaults to `int' in
> > declaration of
> > `res_read_getall'
> > vauth.c:60: warning: data definition has no type or
> > storage class
> > vauth.c:68: syntax error before "row"
> > vauth.c:68: warning: type defaults to `int' in
> > declaration of `row'
> > vauth.c:68: warning: data definition has no type or
> > storage class
> > vauth.c:69: syntax error before "row_getall"
> > vauth.c:69: warning: type defaults to `int' in
> > declaration of `row_getall'
> > vauth.c:69: warning: data definition has no type or
> > storage class
> > vauth.c: In function `vauth_open_update':
> > vauth.c:203: warning: implicit declaration of
> > function `mysql_init'
> > vauth.c:204: warning: implicit declaration of
> > function `mysql_options'
> > vauth.c:204: `MYSQL_OPT_CONNECT_TIMEOUT' undeclared
> > (first use in this
> > function)
> > vauth.c:204: (Each undeclared identifier is reported
> > only once
> > vauth.c:204: for each function it appears in.)
> > vauth.c:207: warning: implicit declaration of
> > function `mysql_real_connect'
> > vauth.c:217: warning: implicit declaration of
> > function `mysql_select_db'
> > vauth.c:221: warning: implicit declaration of
> > function `mysql_query'
> > vauth.c:226: warning: implicit declaration of
> > function `mysql_error'
> > vauth.c:226: warning: format argument is not a
> > pointer (arg 3)
> > vauth.c: In function `vauth_adduser':
> > vauth.c:394: warning: format argument is not a
> > pointer (arg 3)
> > vauth.c: In function `vauth_getpw':
> > vauth.c:444: warning: format argument is not a
> > pointer (arg 3)
> > vauth.c:448: warning: implicit declaration of
> > function `mysql_store_result'
> > vauth.c:448: warning: assignment makes pointer from
> > integer without a cast
> > vauth.c:453: warning: implicit declaration of
> > function `mysql_num_rows'
> > vauth.c:454: warning: implicit declaration of
> > function `mysql_free_result'
> > vauth.c:472: warning: implicit declaration of
> > function `mysql_fetch_row'
> > vauth.c:473: subscripted value is neither array nor
> > pointer
> > -
> >
> > The system I am running this on is running RedHat
> > Enterprise 3 (Kernel
> > 2.4.21-15.0.3.ELsmp) with 2Gb Ram.
> >
> > I have installed MySQL 3.23.58 and this is working
> > properly. In addition I
> > have setup Qmail and Qmail-Scanner with no problems.
> >
> > I guess that I must be missing a command line switch
> > or something but I
> > cannot find any help on the Internet :-(
> >
> > Before I issue the Make command I am entering the
> > following configure
> > settings:
> >
> > ./configure --disable-roaming-users \
> > --enable-logging=p \
> > --disable-passwd \
> > --enable-clear-passwd \
> > --disable-domain-quotas \
> > --enable-auth-module=mysql \
> > --disable-many-domains \
> > --enable-auth-logging \
> > --enable-msql-logging \
> > --enable-valias \
> > --disable-mysql-limits \

Re: [vchkpw] Who can tell me exactly how dir_control works?

2004-08-05 Thread Mark Richardson
Dave have you already found some more info on this subject ?

I have the same problem here (see my post)

Mark.
On Wednesday 04 August 2004 18:21, Dave Goodrich wrote:
> qmail 1.03
> vpopmail 5.4.0
> mysql 3.23.58
>
> We had been using cdb and switched to using mysql auth when we moved our
> users to a new server. We ran vconvert on the domains and everything
> appeared to work fine.
>
> vpopmail.curr_users loaded with enormous numbers, level_curr loaded as
> zero. Adding new domains, users changes nothing in the dir_control
> table. I can manually update the curr_users value and it will then begin
> to increment properly.
>
> I would be willing to manually update the other values, if I knew what
> they should be and what they did. I can whoop up a quick script to
> insert the proper values, but how do I determine what they should be? Is
> there any documentation that explains how this works? At this point I am
> thinking moving a vpopmail installation is a very bad idea.
>
> Thanks,
>
> DAve

-- 
Dutch Web Services b.v.
James Wattstraat 5
2809 PA Gouda
Tel. +31 (0)182-69 40 00 (maandag t/m vrijdag van 09.00 uur t/m 17.30 uur)
Fax. +31 (0)182-69 40 51


[vchkpw] poppassd (in perl) for vpopmail+mysql

2004-08-05 Thread Japheth Cleaver
Hello all,
I've written a small poppassd service (port 106) that is usable with 
vpopmail when using a MySQL back-end. I specifically wrote it to use with 
the SquirrelMail "change password" plugin 
(http://www.squirrelmail.org/plugin_view.php?id=21) when I had problems 
getting the poppassd they recommend for courier to work. This daemon can be 
used by any client, though.

It includes some code to reject easy-to-guess passwords, IP restrictions 
(must have already logged in from that IP), and a small tarpit. Requires 
xinetd, DBI, and Socket, and is most efficient with SpeedyCGI.

If anyone's interested, it's at 
http://www-rohan.sdsu.edu/~cleaver/software/qmail/. I'd be interested in 
any feedback anyone has. :)

-jc