RE: [vchkpw] vchkpw and courier 2.2.1 (long)

2004-01-08 Thread Andrea Riela
> It is my understanding that
>setenv CFLAGS="-DHAVE_OPEN_SMTP_RELAY"
> is not sufficient to enable the roaming user functionality in
> courier-imap. 
> 
> Instead you need to edit the file
>   authlib/preauthvchkpw.c
> and remove the line  :
>   #undef HAVE_OPEN_SMTP_RELAY
> and then recompile courier-imap
> 
> This roaming user functionality was hardcoded off on purpose,
> because there is a flaw in the current design. If you enable
> roaming users in courier, then any user will be able to relay
> after performing an auth attempt, regardless of whether the
> auth contained a valid username/password.

Thanks Michael,

I think you have hit the problem!
Then what I've to do?
If I remove the line #undef HAVE_OPEN_SMTP_RELAY, I've the auth bug that you
say.
I've to apply your patch courier-imap-2[1].1.1-vchkpw-updates.diff.txt?

Probably my steps will be:

cd into courier-imap-2.1.1/authlib
patch -u < courier-imap-2[1].1.1-vchkpw-updates.diff.txt
./configure --prefix=/usr/local/courier-imap --disable-root-check
--without-authpam --without-authldap --without-authpwd --without-authmysql
--without-authpgsql --without-authshadow --without-authuserdb
--without-authcustom --without-authcram --without-authdaemon
--with-authvchkpw --with-ssl --with-piddir=/var/run
setenv CFLAGS="-DHAVE_OPEN_SMTP_RELAY"
gmake
gmake install
gmake install-configure

With your patch, I've already a security problem? Or removing the
open_smtp_relay() calls from the preauthvchmpw.c file to authvchkpw.c,
you've fixed that?

Thanks for all
Regards
Andrea



RE: [vchkpw] vchkpw and courier 2.2.1 (long)

2004-01-08 Thread Andrea Riela
> Probably my steps will be:
> 
> cd into courier-imap-2.1.1/authlib
> patch -u < courier-imap-2[1].1.1-vchkpw-updates.diff.txt
> ./configure --prefix=/usr/local/courier-imap
> --disable-root-check --without-authpam --without-authldap
> --without-authpwd --without-authmysql --without-authpgsql
> --without-authshadow --without-authuserdb
> --without-authcustom --without-authcram --without-authdaemon
> --with-authvchkpw --with-ssl --with-piddir=/var/run setenv
> CFLAGS="-DHAVE_OPEN_SMTP_RELAY"
> gmake 
> gmake install
> gmake install-configure 
> 
> With your patch, I've already a security problem? Or removing the
> open_smtp_relay() calls from the preauthvchmpw.c file to
> authvchkpw.c, you've fixed that?

My lib_deps is:
-L/home/vpopmail/lib -lvpopmail

I've to add the '-lcrypt' too?
Thanks
Andrea



Re: [vchkpw] Error when vpopmail is autocreating a user

2004-01-08 Thread Michael Bowe
- Original Message - 
From: "Shane Chrisp" <[EMAIL PROTECTED]>
>

> <[EMAIL PROTECTED]>:
> r_chown() : Failed to cd to directory
> ¨ßB¨ßBopmail/domains/cwispy.com/testMessage rejected. Not enough storage
> space in user's mailbox to accept message.
> can not open new email file errno=2
>
file=èàBèàBopmail/domains/cwispy.com/test/Maildir/tmp/1073475995.7781.garf
> ield.2000cn.com.au,S=556

I took a look at this. There are only a couple of places where that
"r_chown() : Failed to cd to directory" error could come from.

One of them is the make_user_dir() function, which sounds like
a likely cantidate. This function is called by vdelivermail() when
a message arrives for a user that doesnt yet have a dir allocated.

Doing a diff of 5.3.27 (which reportedly works ok) against
the current 5.4.0-pre1, I can see that this make_user_dir() function has
had some changes. So I guess a bug has snuck in there somewhere...
Changelog shows the work was done for the 5.3.29 release.

I think it is something to do with the line :

r_chown(".", uid, gid);

All other references to this r_chown() function use a full path,
this is the the only spot where a "." is used as a path. I wonder
if that makes a difference at all?

Probably the r_chown() call above should test for a return code,
and then print error / return on failure.

Also inside r_chown(), the very first line is
chown(path,owner,group);
which should also probably check for a return code, and
then print error / return on failure.

Even after doing this digging though, I still can't really explain where
that corrupted data is coming from. I was looking around for an
uninitialised buffer or somesuch, but couldn't really spot the source.

Shane, perhaps you could step through the versions between
5.3.27 and 5.4.0-rc1 one at a time, until you find the version
that causes the problem? This is assist us in tracking down the bug.

Michael.



[vchkpw] Re: Best FileSystem

2004-01-08 Thread Eduardo Jaime Quiros Batres
there is a patch for qmail to correct the way Linux filesystem work and how 
BSD filesystem works. If I'm not mistaken, qmail was developed for BSD and I 
did have some problem with reiserFS until I applied the patch 

Juan Hernandez writes: 

Depending on your needs you'd better consider twice a raid file
system... If it's a single server, stick with reiserFS, it's been
working for almost 3 years flawlessly in my systems 

Juan 

-Original Message-
From: Jeff Koch [mailto:[EMAIL PROTECTED] 
Sent: jueves, 08 de enero de 2004 0:21
To: [EMAIL PROTECTED]
Subject: [vchkpw] Best FileSystem 

Hi: 

We're using RH8.0 and the ext3 journalling filesystem with vpopmail. We 
have been getting filesystem errors (lost inodes) and are wondering
whether 
ext3 is appropriate for qmail/vpopmail and what the best filesystem
might 
be for this application. Is anyone using RAID with qmail/vpopmail? 

 

Best Regards, 

Jeff Koch, Intersessions  

 







RE: [vchkpw] Error when vpopmail is autocreating a user

2004-01-08 Thread Shane Chrisp
-- whoops, sorry Michael, forgot to change the reply addy to the list --

Hi Michael,

 I had actually thought of doing the same thing so I got as far as
downloading 
the different versions and I will go through them tonight and let you know
which
version the error shows up in.

cheers
Shane

>Shane, perhaps you could step through the versions between
>5.3.27 and 5.4.0-rc1 one at a time, until you find the version
>that causes the problem? This is assist us in tracking down the bug.
>
>Michael.
>
>



RE: [vchkpw] vchkpw and courier 2.2.1 (long)

2004-01-08 Thread Andrea Riela
Andrea Riela wrote:
>> Probably my steps will be:
>> 
>> cd into courier-imap-2.1.1/authlib
>> patch -u < courier-imap-2[1].1.1-vchkpw-updates.diff.txt
>> ./configure --prefix=/usr/local/courier-imap --disable-root-check
>> --without-authpam --without-authldap --without-authpwd
>> --without-authmysql --without-authpgsql --without-authshadow
>> --without-authuserdb --without-authcustom --without-authcram
>> --without-authdaemon --with-authvchkpw --with-ssl
>> --with-piddir=/var/run setenv CFLAGS="-DHAVE_OPEN_SMTP_RELAY" gmake
>> gmake install
>> gmake install-configure
>> 
>> With your patch, I've already a security problem? Or removing the
>> open_smtp_relay() calls from the preauthvchmpw.c file to
>> authvchkpw.c, you've fixed that?
> 
> My lib_deps is:
> -L/home/vpopmail/lib -lvpopmail
> 
> I've to add the '-lcrypt' too?

Ok Michael, I've tryed:
I've added -lcrypt in my lib_deps:
-L/home/vpopmail/lib -lvpopmail -lcrypt

Then:
bzip2 -cd courier-imap-2.2.1.tar.bz2 | tar xf -
...
patch -u < courier-imap-2.1.1-vchkpw-updates.diff.txt
...
setenv CFLAGS="-DHAVE_OPEN_SMTP_RELAY"
./configure --prefix=/usr/local/courier-imap --disable-root-check
--without-authpam --without-authldap --without-authpwd --without-authmysql
--without-authpgsql --without-authshadow --without-authuserdb
--without-authcustom --without-authcram --without-authdaemon
--with-authvchkpw --with-ssl --with-piddir=/var/run

When try to compile with make, or gmake, I've the same error:
cd . && /bin/sh /src/courier-imap-2.2.1/missing --run autoconf
configure.in:21: error: possibly undefined macro: AC_PROG_SYSCONFTOOL
  If this token and others are legitimate, please use m4_pattern_allow.
  See the Autoconf documentation.
gmake[1]: *** [configure] Error 1
gmake[1]: Leaving directory `/src/courier-imap-2.2.1/authlib'
gmake: *** [all-recursive] Error 1

Mmm... Where's the mistake? Probably I've misunderstood your help :(
Thanks for all
Regards
Andrea



RE: [vchkpw] Error when vpopmail is autocreating a user

2004-01-08 Thread Shane Chrisp
 I have found that the bug begins as of 5.3.29 and is present in all
versions up to the latest 5.4.0-rc1.

Shane

>Hi Michael,
>
> I had actually thought of doing the same thing so I got as far as
>downloading 
>the different versions and I will go through them tonight and 
>let you know
>which
>version the error shows up in.
>
>cheers
>Shane
>
>>Shane, perhaps you could step through the versions between
>>5.3.27 and 5.4.0-rc1 one at a time, until you find the version
>>that causes the problem? This is assist us in tracking down the bug.
>>
>>Michael.
>>
>>
>
>



Re: [vchkpw] Re: Best FileSystem

2004-01-08 Thread Mario Junior
I had a lot of problems with reiserfs, including 2 forced reinstallations. But 
it was probably because at that time I didn't realize that qmail queue 
doesn't like modern file systems (because sync).
Nowadays, ext3 and ext2(only for /var/qmail/queue) do a good on my systems. 
I'm very happy with that combination.

Em Thursday 08 January 2004 09:36, Eduardo Jaime Quiros Batres escreveu:
> there is a patch for qmail to correct the way Linux filesystem work and how
> BSD filesystem works. If I'm not mistaken, qmail was developed for BSD and
> I did have some problem with reiserFS until I applied the patch
>
> Juan Hernandez writes:
> > Depending on your needs you'd better consider twice a raid file
> > system... If it's a single server, stick with reiserFS, it's been
> > working for almost 3 years flawlessly in my systems
> >
> > Juan
> >
> > -Original Message-
> > From: Jeff Koch [mailto:[EMAIL PROTECTED]
> > Sent: jueves, 08 de enero de 2004 0:21
> > To: [EMAIL PROTECTED]
> > Subject: [vchkpw] Best FileSystem
> >
> >
> > Hi:
> >
> > We're using RH8.0 and the ext3 journalling filesystem with vpopmail. We
> > have been getting filesystem errors (lost inodes) and are wondering
> > whether
> > ext3 is appropriate for qmail/vpopmail and what the best filesystem
> > might
> > be for this application. Is anyone using RAID with qmail/vpopmail?
> >
> >
> >
> > Best Regards,
> >
> > Jeff Koch, Intersessions

-- 

   Mário Viana Barbosa
---
  Network Admin
  SecrelNet ISP - Brazil




[vchkpw] vpopmail and mysql configuration problems

2004-01-08 Thread Ronnie Samuel
Hi everyone -- can some light be shed on this situation and a possible 
recommendation of how to rectify this please?
Any suggestions / assistance will be greatly appreciated. 
Thanks in advance
Regards,
Ronnie. 

My /home/vpopmail/etc/vpopmail.mysql file looks like this:

localhost|0|vpopmailusername|vpopmailpasswd|vpopmail
localhost|0|root|rootpasswd|vpopmail
My configuration is as follows:

./configure --enable-roaming-users=y --enable-logging=p 
--enable-default-quota=20971520S --enable-ip-alias-domains=n 
--enable-passwd=n --enable-clear-passwd=y --enable-domain-quotas=n 
--enable-mysql=y --enable-many-domains=y --enable-auth-logging=y 
--enable-mysql-logging=y --enable-valias=y --enable-mysql-limits=y 
--enable-incdir=/usr/include/

When I type make -- i get the following error during the make:

chmod 755 makelib
./makelib cdb.a cdb_hash.o cdb_unpack.o cdb_seek.o
./makelib cdbmake.a cdbmake_pack.o cdbmake_hash.o \
cdbmake_add.o
make[2]: Leaving directory `/home/techdoc/qmail/vpopmail-5.3.30/cdb'
make[2]: Entering directory `/home/techdoc/qmail/vpopmail-5.3.30'
gcc -I. -I/usr/include/  -I. -I. -I. -g -O2 -Wall -c `test -f 
'vauth.c' || echo './'`vauth.c
vauth.c:33:19: mysql.h: No such file or directory
vauth.c:40: error: 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: error: 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: error: 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: error: 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: error: 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: error: 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: error: `MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in 
this function)
vauth.c:204: error: (Each undeclared identifier is reported only once
vauth.c:204: error: for each function it appears in.)
vauth.c:207: warning: implicit declaration of function `mysql_real_connect'
vauth.c:226: warning: implicit declaration of function `mysql_query'
vauth.c:231: warning: implicit declaration of function `mysql_error'
vauth.c:231: warning: format argument is not a pointer (arg 3)
vauth.c:236: warning: implicit declaration of function `mysql_select_db'
vauth.c: In function `vauth_adduser':
vauth.c:403: warning: format argument is not a pointer (arg 3)
vauth.c: In function `vauth_getpw':
vauth.c:454: warning: format argument is not a pointer (arg 3)
vauth.c:458: warning: implicit declaration of function `mysql_store_result'
vauth.c:458: warning: assignment makes pointer from integer without a cast
vauth.c:463: warning: implicit declaration of function `mysql_num_rows'
vauth.c:464: warning: implicit declaration of function `mysql_free_result'
vauth.c:482: warning: implicit declaration of function `mysql_fetch_row'
vauth.c:483: error: subscripted value is neither array nor pointer
vauth.c:483: error: subscripted value is neither array nor pointer
vauth.c:483: error: subscripted value is neither array nor pointer
vauth.c:483: error: subscripted value is neither array nor pointer
vauth.c:483: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:485: error: subscripted value is neither array nor pointer
vauth.c:485: error: subscripted value is neither array nor pointer
vauth.c:486: error: subscripted value is neither array nor pointer
vauth.c:486: error: subscripted value is neither array nor pointer
vauth.c:487: error: subscripted value is neither array nor pointer
vauth.c:487: error: subscripted value is neither array nor pointer
vauth.c:487: error: subscripted value is neither array nor pointer
vauth.c:487: error: subscripted value is neither array nor pointer
vauth.c:487: erro

Re: [vchkpw] Re: Best FileSystem

2004-01-08 Thread Jeff Koch
Hi Mario:

Why are you using ext2 for /var/qmail/queue? I am using ext3 - could that 
be what my trouble is.

Also, will RAID work with qmail/vpopmail?

At 08:27 AM 1/8/2004, Mario Junior wrote:
I had a lot of problems with reiserfs, including 2 forced reinstallations. 
But
it was probably because at that time I didn't realize that qmail queue
doesn't like modern file systems (because sync).
Nowadays, ext3 and ext2(only for /var/qmail/queue) do a good on my systems.
I'm very happy with that combination.

Em Thursday 08 January 2004 09:36, Eduardo Jaime Quiros Batres escreveu:
> there is a patch for qmail to correct the way Linux filesystem work and how
> BSD filesystem works. If I'm not mistaken, qmail was developed for BSD and
> I did have some problem with reiserFS until I applied the patch
>
> Juan Hernandez writes:
> > Depending on your needs you'd better consider twice a raid file
> > system... If it's a single server, stick with reiserFS, it's been
> > working for almost 3 years flawlessly in my systems
> >
> > Juan
> >
> > -Original Message-
> > From: Jeff Koch [mailto:[EMAIL PROTECTED]
> > Sent: jueves, 08 de enero de 2004 0:21
> > To: [EMAIL PROTECTED]
> > Subject: [vchkpw] Best FileSystem
> >
> >
> > Hi:
> >
> > We're using RH8.0 and the ext3 journalling filesystem with vpopmail. We
> > have been getting filesystem errors (lost inodes) and are wondering
> > whether
> > ext3 is appropriate for qmail/vpopmail and what the best filesystem
> > might
> > be for this application. Is anyone using RAID with qmail/vpopmail?
> >
> >
> >
> > Best Regards,
> >
> > Jeff Koch, Intersessions
--

   Mário Viana Barbosa
---
  Network Admin
  SecrelNet ISP - Brazil
Best Regards,

Jeff Koch, Intersessions 




[vchkpw] Re: Best FileSystem

2004-01-08 Thread Jonathan Shaw
Jeff Koch writes: 

Hi Mario: 

Why are you using ext2 for /var/qmail/queue? I am using ext3 - could that 
be what my trouble is.
I have used ext3 and all have been fine. 

Also, will RAID work with qmail/vpopmail? 

I am using LVM with software mirroring for almost a year without problems. 

-Jonathan 




[vchkpw] Problem with "max size" in vpopmail

2004-01-08 Thread xXx
hi, i have a linux mailserver vpopmail+qmail. In this server i have 
configured 5 virtual domains.
I have a problem, because i want setting a max size of a single mail for 
  one of these, but don't find any suggestions in Internet. I would 
want to use this option for every account in one of these domain.

you can help me to resolve this problem?

thanx in advance...
max



Re: [vchkpw] vchkpw and courier 2.2.1 (long)

2004-01-08 Thread Tom Collins
On Jan 8, 2004, at 3:29 AM, Andrea Riela wrote:
Then what I've to do?
Try BINC-IMAP instead.  Others have reported that it's a fine 
replacement for Courier.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


[vchkpw] vpopmail configuration problems

2004-01-08 Thread Ronnie Samuel
Hi everyone -- can some light be shed on this situation and a possible

recommendation of how to rectify this please?
Any suggestions / assistance will be greatly appreciated. 
Thanks in advance
Regards,
Ronnie. 

My /home/vpopmail/etc/vpopmail.mysql file looks like this:

localhost|0|vpopmailusername|vpopmailpasswd|vpopmail
localhost|0|root|rootpasswd|vpopmail
My configuration is as follows:

./configure --enable-roaming-users=y --enable-logging=p 
--enable-default-quota=20971520S --enable-ip-alias-domains=n 
--enable-passwd=n --enable-clear-passwd=y --enable-domain-quotas=n 
--enable-mysql=y --enable-many-domains=y --enable-auth-logging=y 
--enable-mysql-logging=y --enable-valias=y --enable-mysql-limits=y 
--enable-incdir=/usr/include/

When I type make -- i get the following error during the make:

chmod 755 makelib
./makelib cdb.a cdb_hash.o cdb_unpack.o cdb_seek.o
./makelib cdbmake.a cdbmake_pack.o cdbmake_hash.o \
cdbmake_add.o
make[2]: Leaving directory `/home/techdoc/qmail/vpopmail-5.3.30/cdb'
make[2]: Entering directory `/home/techdoc/qmail/vpopmail-5.3.30'
gcc -I. -I/usr/include/  -I. -I. -I. -g -O2 -Wall -c `test -f 
'vauth.c' || echo './'`vauth.c
vauth.c:33:19: mysql.h: No such file or directory
vauth.c:40: error: 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: error: 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: error: 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: error: 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: error: 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: error: 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: error: `MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in 
this function)
vauth.c:204: error: (Each undeclared identifier is reported only once
vauth.c:204: error: for each function it appears in.)
vauth.c:207: warning: implicit declaration of function `mysql_real_connect'
vauth.c:226: warning: implicit declaration of function `mysql_query'
vauth.c:231: warning: implicit declaration of function `mysql_error'
vauth.c:231: warning: format argument is not a pointer (arg 3)
vauth.c:236: warning: implicit declaration of function `mysql_select_db'
vauth.c: In function `vauth_adduser':
vauth.c:403: warning: format argument is not a pointer (arg 3)
vauth.c: In function `vauth_getpw':
vauth.c:454: warning: format argument is not a pointer (arg 3)
vauth.c:458: warning: implicit declaration of function `mysql_store_result'
vauth.c:458: warning: assignment makes pointer from integer without a cast
vauth.c:463: warning: implicit declaration of function `mysql_num_rows'
vauth.c:464: warning: implicit declaration of function `mysql_free_result'
vauth.c:482: warning: implicit declaration of function `mysql_fetch_row'
vauth.c:483: error: subscripted value is neither array nor pointer
vauth.c:483: error: subscripted value is neither array nor pointer
vauth.c:483: error: subscripted value is neither array nor pointer
vauth.c:483: error: subscripted value is neither array nor pointer
vauth.c:483: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:485: error: subscripted value is neither array nor pointer
vauth.c:485: error: subscripted value is neither array nor pointer
vauth.c:486: error: subscripted value is neither array nor pointer
vauth.c:486: error: subscripted value is neither array nor pointer
vauth.c:487: error: subscripted value is neither array nor pointer
vauth.c:487: error: subscripted value is neither array nor pointer
vauth.c:487: error: subscripted value is neither array nor pointer
vauth.c:487: error: subscripted value is neither array nor pointer
vauth.c:487: erro

RE: [vchkpw] vchkpw and courier 2.2.1 (long)

2004-01-08 Thread Andrea Riela
Tom Collins wrote:
> On Jan 8, 2004, at 3:29 AM, Andrea Riela wrote:
>> Then what I've to do?
> 
> Try BINC-IMAP instead.  Others have reported that it's a fine
> replacement for Courier. 

I couldn't .. I need a pop3-ssl daemon.
I hope the Michael's patch will help me :)
But I've problems to compile that.

Thanks
Andrea



Re: [vchkpw] Mysql + NFS + Quota Problem

2004-01-08 Thread Clayton Weise
Please paste the output of a vuserinfo on one of your email addresses.

Phisher1 wrote:

Here is my setup:

 

 I have qmail + vpopmail  5.3.30+ mysql setup.

 

 I have 5 servers for this mail cluster.

 

   1. mx for internet ( no relay)
   2. smtp for customers ( relay for customers)
   3. pop3 for customers
   4. mysql server box
   5. nas NFS storage device
 

 

I have /home/vpopmail/domains exported from the NFS server.

This directory is only accessible by user vpopmail.

 

My vpopmail configure line:

./configure \

  --enable-roaming-users=n \

  --enable-logging=p \

  --enable-ip-alias-domains=n \

  --enable-defaultquota=10485760S \

  --enable-passwd=n \

  --enable-clear-passwd=y \

  --enable-domain-quotas=n \

  --enable-mysql=y \

  --enable-many-domains=n \

  --enable-auth-logging=y \

  --enable-mysql-logging=y \

  --enable-valias=y

 

 

My problem is:

 

 QUOTAS DON’T WORK!

 

In the Mysql table  domain_com  in database vpopmail under the pw_shell 
field

 

There is either 10485760S or 10485760S,1000C   for every user.

 

I have a /home/vpopmail/domains/.quotawarn.msg   that contains an email 
with proper headers that should be sent to the user when they are at 90% 
usage.

 

I also have a /home/vpopmail/domains/.over-quota.msg   that contains an 
error message that I believe should be displayed to the original sender 
if they try to email a user that is over quota.

 

Also a side note which might help diagnose the problem.. I have 
Squirrelmail setup with the quota_usage plugin.   The quota usage never 
increases from 0%

 

Can anyone help?

PLEASE!

 

 

 

 



RE: [vchkpw] vchkpw and courier 2.2.1 (long)

2004-01-08 Thread Shane Chrisp
 You might want to have a look at Bill Shupps guide or
even Michaels guide 
http://www.pipeline.com.au/staff/mbowe/isp/webmail-server.htm
http://www.pipeline.com.au/staff/mbowe/isp/vpopmail-mysql.htm

qmail-pop3d can be run in ssl mode with something like this from Bills
toaster setup. You don't need Courier-Imap to have pop3 ssl.

This is the run file...
#!/bin/sh

VPOPMAILUID=`id -u vpopmail`
VPOPMAILGID=`id -g vpopmail`

exec /usr/local/bin/tcpserver -l 0 -R -H -v  \
-u"$VPOPMAILUID" -g"$VPOPMAILGID" 0 995\
/usr/sbin/stunnel -f -p /var/qmail/control/servercert.pem\
-l /var/qmail/bin/qmail-popup -- qmail-popup domain.com  \
/home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 2>&1

Shane


>-Original Message-
>From: Andrea Riela [mailto:[EMAIL PROTECTED] 
>Sent: Friday, 9 January 2004 2:24 AM
>To: [EMAIL PROTECTED]
>Subject: RE: [vchkpw] vchkpw and courier 2.2.1 (long)
>
>Tom Collins wrote:
>> On Jan 8, 2004, at 3:29 AM, Andrea Riela wrote:
>>> Then what I've to do?
>> 
>> Try BINC-IMAP instead.  Others have reported that it's a fine
>> replacement for Courier. 
>
>I couldn't .. I need a pop3-ssl daemon.
>I hope the Michael's patch will help me :)
>But I've problems to compile that.
>
>Thanks
>Andrea
>
>



Re: [vchkpw] vpopmail configuration problems

2004-01-08 Thread Flavio Caetano
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

You can't compile mysql functions without mysql libs...

try to get the mysql-devel package for your linux distribution

att,

 Flavio Caetano

> > Hi everyone -- can some light be shed on this situation and a possible
> >
> > recommendation of how to rectify this please?
> > Any suggestions / assistance will be greatly appreciated.
> > Thanks in advance
> > Regards,
> > Ronnie.
> >
> > My /home/vpopmail/etc/vpopmail.mysql file looks like this:
> >
> > localhost|0|vpopmailusername|vpopmailpasswd|vpopmail
> > localhost|0|root|rootpasswd|vpopmail
> >
> >
> > My configuration is as follows:
> >
> > ./configure --enable-roaming-users=y --enable-logging=p
> > --enable-default-quota=20971520S --enable-ip-alias-domains=n
> > --enable-passwd=n --enable-clear-passwd=y --enable-domain-quotas=n
> > --enable-mysql=y --enable-many-domains=y --enable-auth-logging=y
> > --enable-mysql-logging=y --enable-valias=y --enable-mysql-limits=y
> > --enable-incdir=/usr/include/
> >
> > When I type make -- i get the following error during the make:
> >
> > chmod 755 makelib
> > ./makelib cdb.a cdb_hash.o cdb_unpack.o cdb_seek.o
> > ./makelib cdbmake.a cdbmake_pack.o cdbmake_hash.o \
> > cdbmake_add.o
> > make[2]: Leaving directory `/home/techdoc/qmail/vpopmail-5.3.30/cdb'
> > make[2]: Entering directory `/home/techdoc/qmail/vpopmail-5.3.30'
> > gcc -I. -I/usr/include/  -I. -I. -I. -g -O2 -Wall -c `test -f
> > 'vauth.c' || echo './'`vauth.c
> > vauth.c:33:19: mysql.h: No such file or directory
> > vauth.c:40: error: 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: error: 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: error: 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: error: 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: error: 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: error: 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: error: `MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in
> > this function)
> > vauth.c:204: error: (Each undeclared identifier is reported only once
> > vauth.c:204: error: for each function it appears in.)
> > vauth.c:207: warning: implicit declaration of function
> > `mysql_real_connect' vauth.c:226: warning: implicit declaration of
> > function `mysql_query' vauth.c:231: warning: implicit declaration of
> > function `mysql_error' vauth.c:231: warning: format argument is not a
> > pointer (arg 3)
> > vauth.c:236: warning: implicit declaration of function `mysql_select_db'
> > vauth.c: In function `vauth_adduser':
> > vauth.c:403: warning: format argument is not a pointer (arg 3)
> > vauth.c: In function `vauth_getpw':
> > vauth.c:454: warning: format argument is not a pointer (arg 3)
> > vauth.c:458: warning: implicit declaration of function
> > `mysql_store_result' vauth.c:458: warning: assignment makes pointer from
> > integer without a cast vauth.c:463: warning: implicit declaration of
> > function `mysql_num_rows' vauth.c:464: warning: implicit declaration of
> > function `mysql_free_result' vauth.c:482: warning: implicit declaration
> > of function `mysql_fetch_row' vauth.c:483: error: subscripted value is
> > neither array nor pointer vauth.c:483: error: subscripted value is
> > neither array nor pointer vauth.c:483: error: subscripted value is
> > neither array nor pointer vauth.c:483: error: subscripted value is
> > neither array nor pointer vauth.c:483: error: subscripted value is
> > neither array nor pointer vauth.c:484: error: subscripted value is
> > neither array nor pointer vauth.c:484: error: subscripted value is
> > neither array nor pointer vauth.c:484: error: subscripted value is
> > neither array nor pointer vauth.c:484: error: subscripted value is
> > neither array nor pointer vauth.c:484: error: subscripted value is
> > neither array nor pointer vauth.c:484: error: subscripted value is
> > neither array nor pointer vauth.c:485: error: sub

RE: [vchkpw] vchkpw and courier 2.2.1 (long)

2004-01-08 Thread Andrea Riela
Shane Chrisp wrote:
> /usr/sbin/stunnel -f -p

Ya Shane,
But I wouldn't use stunnel for that.
If it's possible, I would use courier.

Thanks for all
Andrea



Re: [vchkpw] Re: Best FileSystem

2004-01-08 Thread Stephen Fulton
At 11:46 AM 08/01/2004 -0500, Jeff Koch wrote:

Also, will RAID work with qmail/vpopmail?
Why wouldn't it?

You're really asking the wrong question though.  Search the Qmail list for 
in-depth answers.

-- Stephen.



Re: [vchkpw] Error when vpopmail is autocreating a user

2004-01-08 Thread Tom Collins
On Jan 8, 2004, at 7:12 AM, Shane Chrisp wrote:
I have found that the bug begins as of 5.3.29 and is present in all
versions up to the latest 5.4.0-rc1.
We've got a tracker for this going on SourceForge,  


Here's my latest entry:

--
If you suspect:
r_chown(".", uid, gid);

try replacing it with:

chdir("..");
r_chown(username, uid, gid);
But I doubt that's it -- the error indicates that r_chown() is being  
called with "¨ßB¨ßBopmail/domains/cwispy.com/test" as the path.

I'm thinking that there's buffer overflow, or some other issue that is  
causing the directory name to be overwritten with random data.  Perhaps  
a function buffer that should be static, but isn't.

Maybe vmake_maildir(), or code just before it, since it calls r_chown()  
with a fully qualified path?  Or it could be a problem with the code  
that reads in the pathname?

What is the auth backend, and what does the user's entry look like?  We  
might be barking up the wrong tree here -- if it's munged in the auth,  
then we need to back up even further.
--

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] vpopmail and mysql configuration problems

2004-01-08 Thread Tom Collins
On Jan 8, 2004, at 11:08 AM, Ronnie Samuel wrote:
--enable-incdir=/usr/include/
This needs to be the include directory for the MySQL libs.

Something like "/usr/local/include/mysql".  Try leaving it blank, as 
vpopmail will search multiple locations for the correct directory.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] vchkpw and courier 2.2.1 (long)

2004-01-08 Thread Michael Bowe
- Original Message - 
From: "Andrea Riela" <[EMAIL PROTECTED]>

> When try to compile with make, or gmake, I've the same error:
> cd . && /bin/sh /src/courier-imap-2.2.1/missing --run autoconf
> configure.in:21: error: possibly undefined macro: AC_PROG_SYSCONFTOOL
>   If this token and others are legitimate, please use
m4_pattern_allow.
>   See the Autoconf documentation.
> gmake[1]: *** [configure] Error 1
> gmake[1]: Leaving directory `/src/courier-imap-2.2.1/authlib'
> gmake: *** [all-recursive] Error 1
>
> Mmm... Where's the mistake? Probably I've misunderstood your help :(

You will need to use courier-imap-2.1.1 (rather than 2.2.1) with that
particular patch.

Michael.



Re: [vchkpw] Re: Best FileSystem

2004-01-08 Thread Jeff Koch
Because I had understood that qmail uses the inode numbers for mail queue 
storage and I was not sure if hardware or software RAID(5) systems 
duplicated inode contents.

At 01:49 PM 1/8/2004, Stephen Fulton wrote:
At 11:46 AM 08/01/2004 -0500, Jeff Koch wrote:

Also, will RAID work with qmail/vpopmail?
Why wouldn't it?

You're really asking the wrong question though.  Search the Qmail list for 
in-depth answers.

-- Stephen.

Best Regards,

Jeff Koch, Intersessions 




Re: [vchkpw] vchkpw and courier 2.2.1 (long)

2004-01-08 Thread Michael Bowe
- Original Message - 
From: "Andrea Riela" <[EMAIL PROTECTED]>

> With your patch, I've already a security problem? Or removing the
> open_smtp_relay() calls from the preauthvchmpw.c file to authvchkpw.c,
> you've fixed that?

Yes, with the patch, the security problem is resolved, because the
relay isnt opened unless the user has successfully authenticated.

As you say, the open_smtp_relay() calls are moved from the
pre-auth stage, to post-auth 

Michael.



RE: [vchkpw] vchkpw and courier 2.2.1 (long)

2004-01-08 Thread Andrea Riela
Michael Bowe wrote:
> You will need to use courier-imap-2.1.1 (rather than 2.2.1) with that
> particular patch. 

Now I'm trying to compile the 2.1.1 version, but ...

Compiling modauthvchkpw.c
gcc  -I/home/vpopmail/include -DHAVE_OPEN_SMTP_RELAY= -Wall -I.. -I./..   -o
authvchkpw  modauthvchkpw.o libauthmod.a libauth.a ../numlib/libnumlib.a
../md5/libmd5.a ../sha1/libsha1.a -L/home/vpopmail/lib -lvpopmail -lcrypt
-lm  
ld: -lcrypt: no match
collect2: ld returned 1 exit status
*** Error code 1

Stop in /src/courier-imap-2.1.1/authlib (line 856 of Makefile).
*** Error code 1

Stop in /src/courier-imap-2.1.1/authlib (line 701 of Makefile).
*** Error code 1

Stop in /src/courier-imap-2.1.1 (line 459 of Makefile).

Make or gmake, it's the same.
My lib_deps: -L/home/vpopmail/lib -lvpopmail -lcrypt

Thanks for your support
Andrea



Re: [vchkpw] vchkpw and courier 2.2.1 (long)

2004-01-08 Thread Werner Amon
Andrea Riela schrieb:

Michael Bowe wrote:
 

You will need to use courier-imap-2.1.1 (rather than 2.2.1) with that
particular patch. 
   

Now I'm trying to compile the 2.1.1 version, but ...

Compiling modauthvchkpw.c
gcc  -I/home/vpopmail/include -DHAVE_OPEN_SMTP_RELAY= -Wall -I.. -I./..   -o
authvchkpw  modauthvchkpw.o libauthmod.a libauth.a ../numlib/libnumlib.a
../md5/libmd5.a ../sha1/libsha1.a -L/home/vpopmail/lib -lvpopmail -lcrypt
-lm  
ld: -lcrypt: no match
collect2: ld returned 1 exit status
*** Error code 1

Stop in /src/courier-imap-2.1.1/authlib (line 856 of Makefile).
*** Error code 1
Stop in /src/courier-imap-2.1.1/authlib (line 701 of Makefile).
*** Error code 1
Stop in /src/courier-imap-2.1.1 (line 459 of Makefile).

Make or gmake, it's the same.
My lib_deps: -L/home/vpopmail/lib -lvpopmail -lcrypt
Thanks for your support
Andrea
 

Mhhh,

I had the same Problem, and i am turn the roaming-users off and use now 
relay-ctrl that works very fine.
It works with couriers pop3d, pop3d-ssl, imapd, imapd-ssl.

http://untroubled.org/relay-ctrl/

Werner


Re: [vchkpw] vpopmail configuration problems

2004-01-08 Thread Werner Amon
Ronnie Samuel schrieb:

Hi everyone -- can some light be shed on this situation and a possible

recommendation of how to rectify this please?
Any suggestions / assistance will be greatly appreciated. Thanks in 
advance
Regards,
Ronnie.
My /home/vpopmail/etc/vpopmail.mysql file looks like this:

localhost|0|vpopmailusername|vpopmailpasswd|vpopmail
localhost|0|root|rootpasswd|vpopmail
My configuration is as follows:

./configure --enable-roaming-users=y --enable-logging=p 
--enable-default-quota=20971520S --enable-ip-alias-domains=n 
--enable-passwd=n --enable-clear-passwd=y --enable-domain-quotas=n 
--enable-mysql=y --enable-many-domains=y --enable-auth-logging=y 
--enable-mysql-logging=y --enable-valias=y --enable-mysql-limits=y 
--enable-incdir=/usr/include/

When I type make -- i get the following error during the make:

chmod 755 makelib
./makelib cdb.a cdb_hash.o cdb_unpack.o cdb_seek.o
./makelib cdbmake.a cdbmake_pack.o cdbmake_hash.o \
cdbmake_add.o
make[2]: Leaving directory `/home/techdoc/qmail/vpopmail-5.3.30/cdb'
make[2]: Entering directory `/home/techdoc/qmail/vpopmail-5.3.30'
gcc -I. -I/usr/include/  -I. -I. -I. -g -O2 -Wall -c `test -f 
'vauth.c' || echo './'`vauth.c
vauth.c:33:19: mysql.h: No such file or directory
vauth.c:40: error: 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: error: 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: error: 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: error: 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: error: 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: error: 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: error: `MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use 
in this function)
vauth.c:204: error: (Each undeclared identifier is reported only once
vauth.c:204: error: for each function it appears in.)
vauth.c:207: warning: implicit declaration of function 
`mysql_real_connect'
vauth.c:226: warning: implicit declaration of function `mysql_query'
vauth.c:231: warning: implicit declaration of function `mysql_error'
vauth.c:231: warning: format argument is not a pointer (arg 3)
vauth.c:236: warning: implicit declaration of function `mysql_select_db'
vauth.c: In function `vauth_adduser':
vauth.c:403: warning: format argument is not a pointer (arg 3)
vauth.c: In function `vauth_getpw':
vauth.c:454: warning: format argument is not a pointer (arg 3)
vauth.c:458: warning: implicit declaration of function 
`mysql_store_result'
vauth.c:458: warning: assignment makes pointer from integer without a 
cast
vauth.c:463: warning: implicit declaration of function `mysql_num_rows'
vauth.c:464: warning: implicit declaration of function 
`mysql_free_result'
vauth.c:482: warning: implicit declaration of function `mysql_fetch_row'
vauth.c:483: error: subscripted value is neither array nor pointer
vauth.c:483: error: subscripted value is neither array nor pointer
vauth.c:483: error: subscripted value is neither array nor pointer
vauth.c:483: error: subscripted value is neither array nor pointer
vauth.c:483: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:485: error: subscripted value is neither array nor pointer
vauth.c:485: error: subscripted value is neither array nor pointer
vauth.c:486: error: subscripted value is neither array nor pointer
vauth.c:486: error: subscripted value is neither array nor pointer
vauth.c:487: error: subscripted value is neither array nor pointer
vauth.c:487: error: subscripted value is neither array nor pointer
vauth.c:487: error: subscripted value is neither array nor pointer
vauth.c:487: error: subscripted value is neither array 

Re: [vchkpw] Problem with "max size" in vpopmail

2004-01-08 Thread Werner Amon
xXx schrieb:

hi, i have a linux mailserver vpopmail+qmail. In this server i have 
configured 5 virtual domains.
I have a problem, because i want setting a max size of a single mail 
for   one of these, but don't find any suggestions in Internet. I 
would want to use this option for every account in one of these domain.

you can help me to resolve this problem?

thanx in advance...
max

Hi,

Thats a qmail question .. however

echo 1000 > /var/qmail/control/databytes

then a message can only have 10MB or less

Werner


[vchkpw] vpopmail - bug or my bug

2004-01-08 Thread Noe
	Hi,

I have following experience ...
When the permmisions on the ~/Maildir/new is set to , the following 
error message is written to the log file and mail message disapear
Jan  8 04:02:11 ttx02 qmail: 1073530931.162729 delivery 3254: success: 
link_REALLY_failed_/internet/mail/vpopmail/domains/ttx.sk/micho/Maildir/tmp/1073530931.9808.ttx02,S=2026_/internet/mail/vpopmail/domains/ttx.sk/micho/Maildir/new/1073530931.9808.ttx02,S=2026_errno_=_13/did_0+0+1/

I expected not success delivery, but defferlal delivery. Am I wrong?
Please, let me know your opinion.
--
Noe


Re: [vchkpw] vpopmail - bug or my bug

2004-01-08 Thread Tom Collins
On Jan 8, 2004, at 2:43 PM, Noe wrote:
I expected not success delivery, but defferlal delivery. Am I wrong?
Please, let me know your opinion.
This patch should correct the problem.  deliver_mail() was returning 
unexpected values, causing vdelivermail to not exit with an error.

===
RCS file: /cvsroot/vpopmail/vpopmail/vdelivermail.c,v
retrieving revision 1.8
diff -u -r1.8 vdelivermail.c
--- vdelivermail.c  3 Jan 2004 07:05:39 -   1.8
+++ vdelivermail.c  8 Jan 2004 23:28:24 -
@@ -611,7 +611,7 @@
 if ( lseek(0, 0L, SEEK_SET) < 0 ) {
 printf("lseek errno=%d\n", errno);
-return(errno);
+return(-2);
 }
 /* write the Return-Path: and Delivered-To: headers */
@@ -624,7 +624,7 @@
 return(-1);
 } else {
 printf("failed to write delivered to line 
errno=%d\n",errno);
-   return(errno);
+   return(-2);
 }
 }

@@ -639,7 +639,7 @@
  */
 if ( unlink(local_file) != 0 ) {
 printf("unlink failed %s errno = %d\n", local_file, 
errno);
-return(errno);
+return(-2);
 }

 /* Check if the user is over quota */
@@ -647,7 +647,7 @@
 return(-1);
 } else {
 printf("write failed errno = %d\n", errno);
-return(errno);
+return(-2);
 }
 }
 }
@@ -689,7 +689,7 @@
 printf("rename failed %s %s errno = %d\n",
 local_file, local_file_new, errno);
 /* shouldn't we unlink the file here? */
-return(errno);
+return(-2);
 /* rename worked, so we are okay now */
 } else {
@@ -701,7 +701,7 @@
 printf("link REALLY failed %s %s errno = %d\n",
 local_file, local_file_new, errno);
 unlink(local_file);
-return(errno);
+return(-2);
 }
 }
 }
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Re: Best FileSystem

2004-01-08 Thread Mario Junior
Em Thursday 08 January 2004 14:46, Jeff Koch escreveu:
> Hi Mario:
>
> Why are you using ext2 for /var/qmail/queue? I am using ext3 - could that
> be what my trouble is.

Because the qmail queue doesn't like reiser nor ext3 without sync patch.
This could be your problem.

>
> Also, will RAID work with qmail/vpopmail?

Yes, i have a IBM serverRAID controller with RAID5 (4 - 36GB disks)

>
> At 08:27 AM 1/8/2004, Mario Junior wrote:
> >I had a lot of problems with reiserfs, including 2 forced reinstallations.
> >But
> >it was probably because at that time I didn't realize that qmail queue
> >doesn't like modern file systems (because sync).
> >Nowadays, ext3 and ext2(only for /var/qmail/queue) do a good on my
> > systems. I'm very happy with that combination.
> >
> >Em Thursday 08 January 2004 09:36, Eduardo Jaime Quiros Batres escreveu:
> > > there is a patch for qmail to correct the way Linux filesystem work and
> > > how BSD filesystem works. If I'm not mistaken, qmail was developed for
> > > BSD and I did have some problem with reiserFS until I applied the patch
> > >
> > > Juan Hernandez writes:
> > > > Depending on your needs you'd better consider twice a raid file
> > > > system... If it's a single server, stick with reiserFS, it's been
> > > > working for almost 3 years flawlessly in my systems
> > > >
> > > > Juan
> > > >
> > > > -Original Message-
> > > > From: Jeff Koch [mailto:[EMAIL PROTECTED]
> > > > Sent: jueves, 08 de enero de 2004 0:21
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [vchkpw] Best FileSystem
> > > >
> > > >
> > > > Hi:
> > > >
> > > > We're using RH8.0 and the ext3 journalling filesystem with vpopmail.
> > > > We have been getting filesystem errors (lost inodes) and are
> > > > wondering whether
> > > > ext3 is appropriate for qmail/vpopmail and what the best filesystem
> > > > might
> > > > be for this application. Is anyone using RAID with qmail/vpopmail?
> > > >
> > > >
> > > >
> > > > Best Regards,
> > > >
> > > > Jeff Koch, Intersessions
> >
> >--
> >
> >Mário Viana Barbosa
> >---
> >   Network Admin
> >   SecrelNet ISP - Brazil
>
> Best Regards,
>
> Jeff Koch, Intersessions

-- 

   Mário Viana Barbosa
---
  Network Admin
  SecrelNet ISP - Brazil