Hi baby_moon,
A user's quota is 1M, and some mails are in its Inbox, and I was checked
its directory, the maildirsize file is there.
When I changed this user's quota to 3M, after a mail come in, the
quota's total number is same as before. Who knows how to solve this
On Tuesday 25 March 2003 18:25, Brian Kolaci wrote:
Do you think we need both domain permissions and
default new user permissions for each type of permission?
(This is the case for quotas, a domain limit and a default
for new users).
I like the idea of having both
Hi Justin,
hi..
could you explain some of the vlimits to me?
i understand the disable_*
and i think i understand diskquota, maxmsgcount, defaultquota and
defaultmaxmsgcount plus the other max* stuff.
diskquota = a quota for the full domain, i.e
# du -sh
The domain quota code (as well as the user quota code)
is enforced in the vdelivermail program. It should be
compatible with courier-imap, but not maildrop. It also
works within qmailadmin. I'm not familiar with sqwebmail
internals.
Brian
Please correct me if I'm wrong...
As far as
.
In such cases, users may overfill domain quota.
Tonino
At 26/03/03 26/03/03 -0500, Brian Kolaci wrote:
The domain quota code (as well as the user quota code)
is enforced in the vdelivermail program. It should be
compatible with courier-imap, but not maildrop. It also
works
When a message arrives and is delivered by vdelivermail,
the quotas are enforced. It also updates the maildirsize
file (and uses the maildir++ naming conventions) thereby
updating the maildir++ quota usage that is shared amongst
all maildir++ compatible software.
From what
I don't believe the Sent folder keeps track of any size.
I looked and don't see any maildirsize files in Sent folders.
So it doesn't look like it counts against either user or domain
quotas. You'll have to take a look at the spec to be sure.
I don't believe the Trash folder keeps
Even the courier readme recommends using system quotas.
But since all email files are owned by the vpopmail user that doesn't
give you much flexibility if you want to implement quotas on a
per-domain or per-user basis.
When you create the account, use vadddomain -u username
to
This is very good, however you may want to move this
out of vmysql.c and put it directly in vpopmail.c
for the add_user routine.
vlimits isn't only for mysql. It also uses the
.qmailadmin-limits file for non-mysql implementations.
So the structure function vget_limits() is valid
with or
do you think?
Brian
On Tuesday 25 March 2003 17:34, Brian Kolaci wrote:
i'm going to post (a very similar one) tomorrow for .qmail-limits files.
:)
i think this should stay in the vauth_getpw function (which is in vauth.c).
this way, when you later decide to disable_imap=1 you
Works for me in 1.6.0.
With the standard distribution, it won't work with authdaemond.
I've patched mine to allow it to work with that.
I don't see any problem if you use the raw authvchkpw way.
Brian
Very strange. open_smtp_relay works for me in courier-imap
We have 1.5.1 version
On Monday 24 March 2003 20:53, Ken Jones wrote:
I'm about to release a new 5.3.20 devel version.
Does anyone have any patches they would like to submit?
Thta's about it.
If no one submits patches by end of day Tuesday, I'll
release 5.3.20 as is. The plan then
On Monday 24 March 2003 22:05, you wrote:
On Monday 24 March 2003 20:53, Ken Jones wrote:
I'm about to release a new 5.3.20 devel version.
Does anyone have any patches they would like to submit?
Thta's about it.
If no one submits
Hi Luqman,
how do i change default quota in vpopmail ?
Recompile. It's hard coded at compile time.
Jonas
As of vpopmail-5.3.19 you update the .qmailadmin-limits
file or the vlimits mysql table. The hard coded value
is used to initialize the default for the domain.
Hi Luqman,
how do i change default quota in vpopmail ?
Recompile. It's hard coded at compile time.
Jonas
As of vpopmail-5.3.19 you update the .qmailadmin-limits
file or the vlimits mysql table. The hard coded value
is used to initialize
This patch uses the vlimits() API to retrieve the
default user quota for their domain. This is for
cdb and mysql storage.
This should be applied to 5.3.19
Thanks,
Brian
diff -c vpopmail-5.3.18/vcdb.c vpopmail-5.3.19/vcdb.c
*** vpopmail-5.3.18/vcdb.c Thu Feb 20 13:27:49 2003
---
You need vpopmail-5.3.19 for domain quotas.
It may be found at http://shupp.org
Brian
On Sat, 15 Mar 2003, Payal Rathod wrote:
Hi,
I have installed vpopmail-5.2.1 with just enable-roaming-users=y option.
After that I did make and make install.
Now I added 2 domains test1 and test2? Do
Check the archives.
There are a few, however they *only* take into account
the vpopmail addresses, not system accounts or aliases or
SMTP relaying. I've just patched mine to handle all cases
however I don't have a patch. BTW, VRFY would be the correct
place for this, however most spam programs
OK OK. Brian had me thinking that the quota was stored in a database with
all of that talk about pw_shell and limits API calls.
I now see that (as I originally thought), the quota is actually stored in
the 'maildirsize' file. (I opened it up and looked at it
in my maildir)
It is
Howdy list,
I'm just wondering a few things about the new domain wide quotas:
Are these quotas implemented in vdelivermail?
Yes.
Or are they implemented with system quotas?
You can do that also if you wish, however you'll need to
supply your own scripts for that.
Will I
Or are they implemented with system quotas?
You can do that also if you wish, however you'll need to
supply your own scripts for that.
So, basically, no? What would I have to supply to use system
quotas?
If you wish to use system quota's, you'll need to write a
Wednesday March 05 2003 11:47, Bill Shupp wrote to All:
BS I've posted a new devel version, 5.3.19. Please help test
Still no user expiry feature?
Have you written it yet? When you write it, then you
should post the patch to the list. It would be reviewed,
tested,
I'd be curious to see if Mr. Sam accepts such patches. I personally
think that this new non-system domain quota feature is unnecessary,
when system quotas are available, easily implemented, and a better
solution. But enough people seemed to want it for some reason, and
Brian
So the domain quotas aren't stored in a file, but rather in whatever
database
backend you happen to be using?
They are stored in either the .qmailadmin-limits file, or MySQL,
if enabled.
The user quota is stored in the pw_shell attribute of the
password entry for the user.
I'd
If vpopmail stores the actual user quota in a database, and the maildirsize
file just stores the current size of the maildir (which IS a file based
system, BTW), then doesn't that mean that Maildrop has NEVER been capable
of enforcing maildir++ with vpopmail?
I guess I wasn't
Hi Anders,
Does anyone know a workaround until either vpopmail reads SSLREMOTEIP
or ucspi-ssl sets TCPREMOTEIP?
How about something like (untested):
(env TCPREMOTEIP=$SSLREMOTEIP /home/vpopmail/bin/vchkpw)
in your startup script instead of just
using vadduser not only adds the row to the table, but
creates the directory structure for vdelivermail to put
mail into. It also encrypts the password field. So
you should either use the vadduser program or the vpopmail
vadduser() API routine.
Brian
Sorry for the basic question but i
.
+Ive made the courier functions static.
+- Brian Kolaci
+ */
+ int readdomainquota(const char *dir, long *sizep, int *cntp);
+ int readuserquota(const char* dir, long *sizep, int *cntp);
+ int domain_over_maildirquota(const char *userdir);
+ int user_over_maildirquota(const char *dir, const
On Wednesday 26 February 2003 17:33, Brian Kolaci wrote:
using vadduser not only adds the row to the table, but
creates the directory structure for vdelivermail to put
mail into. It also encrypts the password field. So
you should either use the vadduser program
qmail is probably not passing them on to vpopmail
for delivery. Make sure you remove your domainname
from the qmail control/locals file, and add it to
your control/rcpthosts file.
Brian
Hi.
I am running Qmail with vpopmail successfully right now, and qmail-smtpd is
able to recieve
Hi,
Well, I don't see the need. vpopmail was made for qmail.
Qmail invokes vpopmail using vdelivermail.
What exactly would you daemonize? You would only want to
make a daemon for things that are used *very* frequently
and you need the extra speed. The only thing I see is
authentication, for
Well, I don't see the need. vpopmail was made for qmail.
Qmail invokes vpopmail using vdelivermail.
What exactly would you daemonize?
Authentication and access to vpopmail control functions. Creating users,
domains, aliases, etc...
Of coarse parts of vpopmail
Ahh, good catch. I increased limits table structure to about twice
its original size, (more items added) and since my table already existed,
I didn't encounter the buffer overflow.
Since the original create failed, you'll need to delete and
add the domain again to get the row added to the
As long as the permissions are correct, and you allow CREATE
permission to the id/password you put in vmysql.h, then the
tables will auto-create when you run the system, i.e. create
a domain.
Thanks,
Brian
I don't have any vpopmail related tables in my Mysql vpopmail database after
I've made one change to the patch below, which is the
same one I posted yesterday.
This patch makes public the following two functions
in maildirquota.c:
int readdomainquota(const char *dir, long *sizep, int *cntp);
int readuserquota(const char* dir, long *sizep, int *cntp);
These two
Since there's been alot of hype about domain quotas,
I've put my changes in the attached patch file. This
will patch vpopmail-5.3.16 (maildirquota.c and vdelivermail.c).
There's a new file vqmaillocal.c that apparently doesn't
use Maildir++ quotas, so I didn't touch that.
The CPU usage is
That's good. Haven't played with postgres lately. MySQL seemed
easy and quick enough. I've added a patch that checks the return
code from vopen_smtp_relay(). It used to be void. I changed the
interpretation such that it needs to return non-zero if the given
IP address wasn't already in the
As far as I know, roaming users doesn't work with
the courier-imap authlib, at least with authdaemond.
I've patched my version and when I get cycles planned
on submitting a patch to Mr. Sam to allow authdaemond
to have it work. The problem is that vpopmail relies
on environment variables that
There currently is no conversion program.
The latest rev (.16) enables the use of the new API
to vset, vget and vdel the _limits functions. They
allow either file or mysql tables depending on the compiled
in version (with the --enable-mysql-limits=y/n). Currently
the first (and only) program
Hi,
I've been using the mysql vlimits stuff for over 2 years.
(I supplied the patch for it). Currently, I don't know of
any migration script, but it couldn't be too difficult to
make. You need the file version of vget_limits() and the database
version of vset_limits().
I could help if you
I too had put in code to calculate real quota
based on recursively doing stat's. This seems to
chew up *alot* of resources. I have over a thousand
domains and its hasn't been an issue to have a username per
domain. In fact, it works well and better than
when the quota code was in vdelivermail.
Ken Bill,
Here's a patch that's small but has a *big* performance
change in it. This patches the 5.3.15 distribution.
Over the last few months, I've been seeing my mailserver
incur 90-99% CPU utilization during peak loads. During
that time, I was seeing between 5 10 authentications
per
The file I updated was vpgsql.c and voracle.pc
These need the extra work done to ensure that it only
returns 1 if a new IP was added to the table and not
just replaced.
Brian
the proper values if the table was updated. I've updated oracle
and pgsql to return 1 if the table was updated,
There's a feature in vget_alias...() that the domain
parameter is a char *, not a const char * so the domain
is overwritten to the master domain when you call it.
The correct behaviour would probably be to return
all the domains and specify whether they're master or
an alias.
Brian
Hi,
Try using system quotas instead. This is what I use.
Put each virtual domain under a separate unix user.
Impose a system quota on that user. Then set per-user
quotas from qmailadmin.
There's a -u option to vadddomain to set it to the specified
unix userid and setup the domains directory under
Hi Ken/Bill,
It appears that the last patch I sent through didn't
get applied. This one contains the several extra
fields as requested. I'm currently working on
qmailadmin to use the API. Shall I also update
vdelivermail to enforce the per-domain quotas?
My copy does this with real disk usage
If you're going to put this in the distribution, make
sure that you have to select an option to have the mail
delivered. I'm sure many people would *not* want this
message in their INBOX. We used to do this an about 85%
of our customers complained, so it was removed.
Brian
Hi Trey,
- Original Message -
From: Brian Kolaci [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 08, 2003 9:38 AM
Subject: Re: [vchkpw] Re: welcome message
If you're going to put this in the distribution, make
sure that you have to select an option to have
If you use system quotas (as I do), then
install qmailadmin setuid root and it all works fine.
It will switch to the userid of the system account
that is specified in the users/assign file.
Brian
Hello Ninad,
On Friday, December 13, 2002 at 12:37:56 PM you wrote:
I know about
Hi Tobias,
I've seen a similar thing recently, however I'm using MySQL
rather than files and my users have received the same error
message. I checked and found their IP in the table, however
they were still not allowed to send/relay mail.
I had to resort to manually configure static blocks of
be set to Any
Domain ?
Regards /Tobias
- Original Message -
From: Brian Kolaci [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, December 10, 2002 9:14 PM
Subject: Re: [vchkpw] relaying not allowed
Hi Tobias
authdaemond works for me, however IP Alias doesn't work since
the IP information is passed via environment variables. The
authdaemon protocol doesn't take into account any of the
environment variables set by couriertcpd, so your missing some
of the critical information. I've mentioned this on
and disabling authdaemon at compile time always fixed the problem.
What versions are you running?
On Monday 25 November 2002 12:24, Brian Kolaci wrote:
authdaemond works for me, however IP Alias doesn't work since
the IP information is passed via environment variables
20-25
authentications per second equate to for you?
Thanks.
On Monday 25 November 2002 12:58, Brian Kolaci
wrote:
You can disable it at runtime also.
Just specify it in the AUTHMODULES variable in
the .../etc/*.config files (mine is at
authvchkpw authpam
edit cdb/conf-*
and change cc to gcc (assuming you're using gcc).
Brian
Hello
I'm running vpopmail-5.2.1 and courier-imap-1.5.3 with roaming support
enabled.
/home/vpopmail/etc/open-smtp gets updated correctly with the ips
fetching mail, but
Currently I use a separate system user for each domain,
and I bundle mail web together with one quota.
I have a patched vdelivermail that enforces both per-user
and per-domain quotas, but not through maildir quotas.
I just submitted the patch for the vlimits data structure
and am currently
Hi,
Bill, if your there, you'd probably know this one off
the top of your head...
Is there a maildir function to gather the current usage
for a whole domain? I know its easy for disk based usage,
but what about maildir quotas? If not, I'll put one together
to go to the domain directory and
I've been using both the imapd and pop3d from the courier
package with my qmail/vpopmail service.
Has anyone done a comparison between these packages?
I know the courier package doesn't implement the LAST
command, which I hacked in, but I wanted to see if there
are any advantages of one over the
change what I have
to include the additional fields, however you're only
the second person to reply to this. I was hoping to get
a consensus from people as to what else is needed or
required, or find out if its overkill and to strip some.
Thanks,
Brian
Brian Kolaci writes
I've done some thinking about the many suggestions about handling
the limits and wanted to summarize some of the pros cons.
First was whether to use a generic approach that had a
table with domain, name, value which has a row for each
parameter, or to use a single row will all values per
On Wednesday, October 23, 2002, at 03:28 PM, John Johnson wrote:
ok to use mysql-limits is there a convert program to convert the
limits
I have
Or do I have to start over with them and reset them.. I guess I will
also have
To recompile vqadmin and qmailadmin for
I run system quotas and use courier-imap. After a user authenticates,
courier switches ID to that user before execing imapd or pop3d. All new
folders created are that of the authenticated user. If they're created as
root (which imapd should *not* be running as root), then there's a
problem
appear to work correctly when using it's own version of tcpserver
and ip domains (ie it's not passing the IP address to vpopmail).
I'll take a closer look and see what I can find.
Regards,
Rick
- Original Message -
From: Brian Kolaci [EMAIL PROTECTED
To: Brian Kolaci
Cc: [EMAIL PROTECTED]
Subject: Re: [vchkpw] patch for vpopmail 5.3.8 for .qmailadmin-limits
Excellent! I've been wanting to add this functionality to vpopmail
for a long time. Nice work, clean api.
I'll try to get them added to the next devel
I didn't know they added a boolean type to the C language.
When they do, we can easily make the change.
Brian
Hi Brian Kolaci,
you wrote.
BK to the vpopmail library. These maintain either the
BK raw file .qmailadmin-limits or will maintain the limits
BK in a MySQL database
***
*** 0
--- 1,189
+ /*
+ * vlimits.c
+ * handle domain limits in both file format
+ * Brian Kolaci [EMAIL PROTECTED]
+ */
+ #include stdio.h
+ #include stdlib.h
+ #include string.h
+ #include errno.h
+ #include unistd.h
+ #include sys/types.h
+ #include config.h
+ #include vlimits.h
Hi,
I'm using procmail to filter SPAM in qmail
and am using it as my delivery agent. Has anyone
used procmail with vpopmail?
Thanks,
Brian
r to setup to forward all mail
for a domain into a single unix account's mailbox.
Thanks,
Brian
Date: Wed, 14 Mar 2001 20:31:55 +0100
From: Gabriel Ambuehl [EMAIL PROTECTED]
To: Brian Kolaci [EMAIL PROTECTED]
CC: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re[2]: function to list
PHP is much more efficient than doing a fork/exec
on any box, no matter what language its written in.
It would be most efficient to write an apache module
in C, or use mod_perl (with caching) or PHP. For
simplicity, PHP is probably the best bet.
Port qmailadmin to PHP? Why?
Oden
I've updated my copy of qmailadmin that loads
the limits from mysql already, if interested...
Thanks,
Brian
I recommend updating the "load_limits()" function of qmailadmin
to load/maintain the "limits" from a mysql table rather than
a file. Also, an interface to maintain this
I fixed this in my copy last week...
in vmysql.c and vcdb.c, you'll need
to look for the lines:
myuid = geteuid();
if ( myuid != VPOPMAILUID myuid != 0 ) {
and change them to:
vget_assign(domain, NULL, 156, uid, gid );
myuid = geteuid();
if ( myuid
To get around this (in both courier vpopmail)
you should preceed your "configure" command with
LIBS="-R/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql" ./configure ...
(or substitute the path to your mysql libraries).
Thanks,
Brian
Mailing-List: contact [EMAIL PROTECTED]; run by
... that the user can filter on ...
Brian Kolaci wrote:
I've had the request to allow on a per-user, per-domain
basis to either bounce or allow spam through. This may
be an underlying request he had.
I've started this, but found that I just dumped the RSS ORBS
list and only went
It appears you assume that there is mail received
to attach headers to.
There is mail, if you use rblcheck instead (which is what I suggested).
Ahh, but I would like to stop the spammers before they
even get the mail through and chew up resources (memory,
disk, etc.).
I use it -- I know how it works. However, I only block RBL hosts this
way -- I allow the other messages through because of poor listings on
the RSS, etc. and would appreciate a tool that just added such a mail
header as I suggested.
I don't want to start one of the
make it static to be safe...
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Delivered-To: mailing list [EMAIL PROTECTED]
Date: Thu, 02 Nov 2000 18:25:16 -0600
From: Ken Jones [EMAIL PROTECTED]
To: Rick Morris [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: Bug
In the file vchkpw.c:
around line 386, in the function "host_in_locals(domain)"
There's a memory and file pointer leak.
OLD:
int host_in_locals(domain)
char *domain;
{
int i;
char *tmpbuf;
FILE *fs;
tmpbuf = malloc(slen(QMAILDIR) + 18 );
sprintf(tmpbuf,
Hi,
I have a quota question...
I'd like to put "per domain" quotas using
the O/S disk quotas, and use a separate uid/gid.
I noticed in vdelivermail.c that each of
the write() calls check for failure and return
a temporary failure. Shouldn't there be a check
for EDQUOT and bounce the message if
78 matches
Mail list logo