[vchkpw] Unusual Quota percent

2011-02-10 Thread Jorge Valdes
Hi,

I have been using vpopmail for years, but this is my first 64bit OS install.

I am using vpopmail 5.4.17 (slightly modified) that is working on
several 32 bit OS (Fedora,CentOS,RedHat,Debian,Ubuntu) without problems.
Now when I do a vuserinfo I get the following:

root@mail:/src/vpopmail-5.4.17# vuserinfo jorge
name:   jorge
passwd: [$1$VA3DKzl4$QuyHDwlg/g3ss6CQBqJQ4/]
gecos:  jorge
dir:/home/vpopmail/domains/ibw.com/jorge
flags:  1 / 0 / 0
usage:  202752.00% -> 425201762304/209715200 bytes
limits: No user limits set.
account created: Thu Feb 10 21:55:05 2011
last auth: Never logged in
root@mail:/src/vpopmail-5.4.17#

The percentage in the usage: line is totally wrong, as this is a newly
created user with zero quota. Here are the contents of the maildirsize
for the user:

root@mail:/src/vpopmail-5.4.17# cat
~vpopmail/domains/ibw.com/jorge/INBOX/maildirsize
209715200S
0 0
root@mail:/src/vpopmail-5.4.17#

Really stumpted!

--
Jorge Valdes

!DSPAM:4d54bfa732718136331445!



Re: [vchkpw] Why not disconnect after rejection/limit ?

2006-03-03 Thread Jorge Valdes

Jeremy Kister wrote:

On 3/3/2006 10:28 AM, Michael Krieger wrote:

   An SMTP server MUST NOT intentionally close the connection except:
   - After receiving a QUIT command and responding with a 221 reply.
   - After detecting the need to shut down the SMTP service and  
returning a 421 response code. This response code can be issued 
after  the server receives any command or, if necessary, 
asynchronously from  command receipt (on the assumption that the 
client will receive it  after the next command is issued).


Not to turn this into a RFC contest on the wrong mailing list, but we 
must be interpreting that differently --


my qmail-1.03.isp.patch will close a connection after a defined number 
of errors.  I claim RFC 2821 #3.9 compatibility, because before 
closing the connection, I send a 400 error.  I have the 'need' to 
close the connection, because I no longer want to hear from this 
abuser, and he is automatically entered into tcp.smtp.cdb for rejection.


Just my 0.02c: I have been doing this for months with custom patches... 
I generally stop dictionary attacks this way, as well as some folks who 
send me a "GET / HTTP 1.(0|1)" request on port 25.


--
Jorge Valdes
Intercom El Salvador
[EMAIL PROTECTED]
voz: ++(503) 2278-5068
fax: ++(503) 2265-7025



Re: [vchkpw] compiling vpopmail 5.4.13 on Solaris 7

2006-01-19 Thread Jorge Valdes

Jeremy Kister wrote:

looks like vpopmail is looking for an "err.h"

make[2]: Leaving directory 
`/export/home/src/sparc-sun-solaris2.7/vpopmail-5.4.13/cdb'
make[2]: Entering directory 
`/export/home/src/sparc-sun-solaris2.7/vpopmail-5.4.13'
gcc -I. -Icdb  -I. -I. -I.-fPIC -g -O2 -Wall -c -o 
libvpopmail_a-vpopmail.o `test -f 'vpopmail.c' || echo './'`vpopmail.c

vpopmail.c:35: err.h: No such file or directory
make[2]: *** [libvpopmail_a-vpopmail.o] Error 1


the only place I have an err.h is in /usr/include/sys/

If I muck with the Makefile,

-DEFAULT_INCLUDES =  -I. -I$(srcdir) -I.
+DEFAULT_INCLUDES =  -I. -I$(srcdir) -I/usr/include/sys/

and then try to make, i still get errors:

In file included from vpopmail.c:35:
/usr/include/sys/err.h:32: field `e_map' has incomplete type
vpopmail.c: In function `vadddomain':
vpopmail.c:130: warning: implicit declaration of function `chdir'
[...]
vpopmail.c:3096: dereferencing pointer to incomplete type
make[2]: *** [libvpopmail_a-vpopmail.o] Error 1


What's the solution to this problem ?

I am still using an older version, but the problem is with the use of 
"warn" in the "r_mkdir" routine more or less lines 1822 & 1830. It will 
compile if you change the format from "warn ('xxx')" to "fprintf 
(stderr, 'xxx');" a format also used in line 1833. I checked, and err.h 
is available for Linux, but not for Solaris.


I don't have a patch, but could make one for you if you really need it, 
or better yet, if the maintainers could roll back to using fprintf to 
stderr for compatibility's sake?


--
Jorge Valdes
Intercom El Salvador
[EMAIL PROTECTED]
voz: ++(503) 2278-5068
fax: ++(503) 2265-7025



Re: [vchkpw] Migration from MySQL to CDB Files

2004-06-25 Thread Jorge Valdes
At 10:57 AM 25/06/2004, Greg Kopp wrote:
I doubt this is a MySQL problem. We are using MySQL in several
environments, including vpopmail. My guess is I don't have as many
users as you, since I set my pop3 concurency at 30 with no problems.
Are you running qmail-scanner or spamassassin? These added quite a bit
of load to my mail server (dual 2.8 Xeons, 2GB RAM) but it still
averages at around 0.3 for the 5min average. It will spike if Razor is
slow to respond or one of our customers does a blast e-mail to thier
client base.
You can try and put MySQL on a seperate server and just have vpopmail
connect to the external database and see if that solves any load
problems.
BTW, What versions are you running?
I cannot add more RAM to the server.. :(
I am running qmail-scanner 1.21, spamassassin 2.63(spamd), clamav 0.70, 
File::Scan 1.15, also I have patched tcpserver to deny connections if the 
load average is greater than 12 or more than 5 connections from the same IP 
address.  This alleviated the problem temporarily.

I have gathered the following average daily stats:
  438 IMAP connections0 Rejects due to load/maxip
28708 POP3 connections  308 Rejects due to load/maxip
 7355 SMTP connections  128 Rejects due to load/maxip
Bloquing:
   10 Emails due to policy reasons
 2923 Emails due to Virus
  595 Emails due to Spam > 15.0 pts.
   39.4% spam/ham ratio
Each instance of mysql  Ver 11.18 Distrib 3.23.58, for pc-linux (i686) uses
  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEM   TIME COMMAND
 1055 mysql  9   0 14500 9376 1152 S  0.0  1.8   4:28 mysqld
So when there are several concurrent POP3 connections, another instance of 
mysql is spawned to query the DB.  I think this is whats bringing the 
server to its knees...

In any case, has anyone done a MySQL to CDB migration?
--
Jorge Valdes
IT Manager
Intercom El Salvador
[EMAIL PROTECTED]
Tel. 503-278-5068
Tel. 503-265-7070
Fax. 503-265-7025 




[vchkpw] Migration from MySQL to CDB Files

2004-06-25 Thread Jorge Valdes
Hi,
I have been having problems with resouce utilization with one of my qmail 
servers, which basically boils down to reaching the concurrencylimit of 
tcpserver for my pop3 connections (60) and this brings the server to its 
knees. The only recourse I have left is to reboot, since even console is 
not responsive.

I have checked my logs, and basically, for each pop3 connection, an 
instance of mysql is generated to check password for a virtual domain user, 
this generates swapping. The load average shoots up to 300 and I have seen 
this go as high as 500.

The server is running Linux RedHat 7.3 and has 512MB RAM and 1GB SWAP, for 
about 4000 users in 70 virtual domains. It also runs Apache for qmailadmin. 
Since there are not that many users per domain, less than 100 average, will 
CDB Files be a better solution to this problem?

Currently running vpopmail 5.3.19 and qmailadmin 1.0.15
--
Jorge Valdes
IT Manager
Intercom El Salvador
[EMAIL PROTECTED]