RE: setting quotas. . .
I think you're confused. From the man page for quotacheck: Quotacheck should be run each time the system boots and mounts non-valid file systems. This is most likely to happen after a system crash. qmail won't be running that early in the boot, so it's not an issue. Charles I'm probably confused; I've never set quotas on a Linux server before. The parts of the man page for quotacheck to which I was referring: quotacheck expects each filesystem to be checked to have quota files named aquota.user and aquota.group located at the root of the associated file system. If a file is not present, quotacheck will create it. ... It is strongly recommended to only run quotacheck with quotas turned off and the filesystem unmounted or in read-only mode, or quota corruption can occur. . . I've never set quotas on this server before so I thought that I must first run quotacheck to create the aquota.* files. Since qmail will probably dump at least one e-mail into somebody's Maildir while quotacheck is running I'm at a loss as to how to keep qmail from delivering locally while still accepting mail. Thanks much. ---Norvell Spearman
Re: setting quotas. . .
On Wed, Jun 27, 2001 at 08:07:35AM -0500, Norvell Spearman wrote: I'm probably confused; I've never set quotas on a Linux server before. Did you check out the other man pages listed in the SEE ALSO section of the quotacheck man page? If you didn't, you should have -- you would then have discovered exactly what creates the quota.{user,group} files. (Hint: They're created when you turn quotas on.) And if I read your requirements correctly, qmail already does what you want, with no special configuration needed. Read PIC.* and the relevant qmail-* man pages (in this case, qmail-queue and qmail-send) to see why. - Adrian
RE: setting quotas. . .
If the filesystem isn't mounted, then qmail isn't going to be delivering mail to it, is it? So if I umount /home while qmail is up, will qmail barf or simply wait for /home to be remounted? To run quotacheck, you should probably go to single user mode, unmount all unnecessary filesystems, etc. When you do this, you aren't going to be running any unnecessary daemons (like qmail). Charles I know single user mode would be best; I could do the quota stuff late at night. But what would happen if mail comes to the server and qmail isn't running? Does it simply bounce back to the sender, does the originating smtp server keep trying for a while, or does all that depend on how the destination mail server is configured? I'm trying to avoid having my users yell at me if they don't get an e-mail they're expecting, or if they can't send e-mail out. That's why I originally asked about whether qmail can accept mail for delivery (local and remote) while not delivering mail locally. Thanks much for any help. ---Norvell Spearman
Re: setting quotas. . .
Norvell Spearman [EMAIL PROTECTED] wrote: If the filesystem isn't mounted, then qmail isn't going to be delivering mail to it, is it? So if I umount /home while qmail is up, will qmail barf or simply wait for /home to be remounted? You still don't get it. Running quotacheck is something you do after a major system failure, etc. You do this from single user mode, before mounting other filesystems, before starting networking at all, let alone network daemons. On SysV-style systems, single user mode, where you do major system repairs and whatnot, is runlevel 1. Networking isn't enabled until you hit runlevel 3. And things like qmail-send shouldn't be started until at _least_ runlevel 2, preferably runlevel 3. This has nothing whatsoever to do with qmail. Take further questions about quotacheck to the supportl list for your OS. I know single user mode would be best; I could do the quota stuff late at night. But what would happen if mail comes to the server and qmail isn't running? It's deferred. The sender will try again later if they can't establish a connection. If you don't like that, pay someone to be a backup MX for you. Charles -- --- Charles Cazabon[EMAIL PROTECTED] GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ ---
Re: setting quotas. . .
On Wed, Jun 27, 2001 at 10:38:28AM -0500, Norvell Spearman wrote: I know single user mode would be best; I could do the quota stuff late at night. But what would happen if mail comes to the server and qmail isn't running? Does it simply bounce back to the sender, does the originating smtp server keep trying for a while, or does all that depend on how the destination mail server is configured? Unless the sending mail server is completely broken, it will queue and retry. I'm trying to avoid having my users yell at me if they don't get an e-mail they're expecting, or if they can't send e-mail out. That's why I originally asked about whether qmail can accept mail for delivery (local and remote) while not delivering mail locally. svc -d /service/qmail-send will allow qmail to accept mail via SMTP and queue it, but not deliver it. Making all possible delivery directories sticky will postpone all deliveries. IMHO, single-user mode, unmount filesystem, set up quotas, back to multiuser mode is probably your best bet. Your odds of losing any mail during this transaction are extremely low, unless the sending mail servers are totally useless... -- Greg White
RE: setting quotas. . .
Did you check out the other man pages listed in the SEE ALSO section of the quotacheck man page? If you didn't, you should have -- you would then have discovered exactly what creates the quota.{user,group} files. (Hint: They're created when you turn quotas on.) - Adrian I must be reading different man pages than yours. The quotaon man page is referred to in quotacheck's man page. This is what I read from `man quotaon`: NAME quotaon - turn file system quotas on and off . . . quotaon expects quota files to be present in the root directory of the specified file system and be named aquota.user for user quota or aquota.group for group quota. These files can be created either by converting old quota files with convertquota(8) or by quotacheck(8) which creates completely new files. ^^* Then quotacheck's man page: quotacheck expects each filesystem to be checked to have quota files named aquota.user and aquota.group located at the root of the associated filesystem. If a file is not present, quotacheck will create it. ^* . . . It is strongly recommended to only run quotacheck with quotas turned off and the filesystem unmounted or in read-only mode, or quota corruption can occur. So what creates the quota files besides quotacheck? Thanks for your help and all apologies for straying off this list's theme. . . ---Norvell __ *Annoying ASCII emphasis added by message's author
RE: setting quotas. . .
IMHO, single-user mode, unmount filesystem, set up quotas, back to multiuser mode is probably your best bet. Your odds of losing any mail during this transaction are extremely low, unless the sending mail servers are totally useless... Greg White Thanks very much. I would like to apologize to the entire list---as I have to Charles Cazabon---for any irrelevant postings and for taking up the list's time and resources. My original question had to do with setting quotas on /home and how qmail would react if /home suddenly wasn't available. But I must have worded my questions terribly. Thanks to Adrian Ho for pointing me to the PIC.* files. I will definitely RTFM more closely next time and hopefully not be a bother. ---Norvell Spearman
setting quotas. . .
Is there a way for qmail to accept mail but not deliver it temporarily (to local users)? I'd like to set quotas for the users' home directories and according the documentation I read the filesystem can't have anything writing to it while quotacheck is running. I'm running Linux-2.4.3-20 with ext2 file systems, if matters. Thanks much. ---Norvell Spearman --- ``Trouble is my business.'' ---Philip Marlowe
Re: setting quotas. . .
Norvell Spearman [EMAIL PROTECTED] wrote: Is there a way for qmail to accept mail but not deliver it temporarily (to local users)? I'd like to set quotas for the users' home directories and according the documentation I read the filesystem can't have anything writing to it while quotacheck is running. I'm running Linux-2.4.3-20 with ext2 file systems, if matters. I think you're confused. From the man page for quotacheck: Quotacheck should be run each time the system boots and mounts non-valid file systems. This is most likely to happen after a system crash. qmail won't be running that early in the boot, so it's not an issue. Charles -- --- Charles Cazabon[EMAIL PROTECTED] GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ ---
vpopmail + quotas
hello, Anyone know how to setup qmail + vpopmail with differents quotas for each user ? thanks JVino
Re: quotas
I have add a 'vmailmgrquotas' file in /var/qmail/control/ What have I to do to made qmail read this file ? whitch daemon must be restarted ? qmail-send needs to be restarted. e.g. kill -HUP 186 or kill 186 ; /var/qmail/rc - Sam 186 ?S 0:00 qmail-send
quotas
Hello, I have add a 'vmailmgrquotas' file in /var/qmail/control/ What have I to do to made qmail read this file ? whitch daemon must be restarted ? This is my ps : 176 ?S 0:00 supervise qmail 186 ?S 0:00 qmail-send 187 ?S 0:00 splogger qmail 188 ?S 0:00 unixserver -U -q /tmp/.qmail-qstat /usr/bin/qmail-qst 189 ?S 0:00 unixserver -U -q /tmp/.qmail-qread /usr/bin/qmail-qre 191 ?S 0:00 supervise vmailmgrd 198 ?S 0:00 unixserver -v -- /var/service/vmailmgrd/socket vmailm 201 ?S 0:00 multilog t /var/log/vmailmgrd 226 ?S 0:00 qmail-lspawn ./Maildir/ 227 ?S 0:00 qmail-rspawn 228 ?S 0:00 qmail-clean 182 ?S 0:00 supervise pop3d 190 ?S 0:00 tcpserver -dHRvX -c 20 -x /etc/tcpcontrol/pop-3.cdb 0 197 ?S 0:00 splogger pop3d
quotas
Hello, I have add a 'vmailmgrquotas' file in /var/qmail/control/ What have I to do to made qmail read this file ? whitch daemon must be restarted ? This is my ps : 176 ?S 0:00 supervise qmail 186 ?S 0:00 qmail-send 187 ?S 0:00 splogger qmail 188 ?S 0:00 unixserver -U -q /tmp/.qmail-qstat /usr/bin/qmail-qst 189 ?S 0:00 unixserver -U -q /tmp/.qmail-qread /usr/bin/qmail-qre 191 ?S 0:00 supervise vmailmgrd 198 ?S 0:00 unixserver -v -- /var/service/vmailmgrd/socket vmailm 201 ?S 0:00 multilog t /var/log/vmailmgrd 226 ?S 0:00 qmail-lspawn ./Maildir/ 227 ?S 0:00 qmail-rspawn 228 ?S 0:00 qmail-clean 182 ?S 0:00 supervise pop3d 190 ?S 0:00 tcpserver -dHRvX -c 20 -x /etc/tcpcontrol/pop-3.cdb 0 197 ?S 0:00 splogger pop3d
quotas?
Hi there: I'm having a very weird problem with my mail server. To be brief: I'm hosting 2 virtual domains. Have qmail + vpopmail running over FreeBSD-4.1. The problem: when somebody sends a message to one of the users of one virtual domain, the server bounces the message with the usual text: . This is a permanent error; I've given up. Sorry it didn't work out. someuser@virtualdomain: User is over quota email returned . The most strange situation is that when the message is short everything goes fine, but when it gets a little larger the above situation happens. Any help will be highly appreciated. Hugo
Mailserver quotas
Hi ALL, I don't know if this is the right place to ask this question - but is there a add-on program for qmail that allows you to limit the mailbox sizes?? Thanks Tonino
Re: Mailserver quotas
On Thu, Feb 24, 2000 at 02:34:25PM +0200, TAG wrote: Hi ALL, I don't know if this is the right place to ask this question - but is there a add-on program for qmail that allows you to limit the mailbox sizes?? Look at http://www.qmail.org. There are some scripts there. -- See complete headers for more info
Quotas and qmail: file number
Is there a patch to qmail, with which I can send a permanent error instead of a temporary error when the number of files in the Mailbox exceeds the allowed number of files (quota). The patch I found only sends a permanent error when the sum of messages exceeds the quota size. My problem is, that I have some users which never empty their mailbox, but are members of some maillists. And now this fills my queue and log files. Wolfgang
Re: Quotas and qmail: file number
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 30 Dec 99, at 10:06, Wolfgang Baumgartner wrote: Is there a patch to qmail, with which I can send a permanent error instead of a temporary error when the number of files in the Mailbox exceeds the allowed number of files (quota). The patch I found only sends a permanent error when the sum of messages exceeds the quota size. Do you have a quota set up on number of inodes? If yes, the error from the system "Quota exceeded" should cover both size and number. If setting up quota watch in .qmail file is an option for you, you might as well try something like |bouncesaying "too many files" [ `ls -l ./Maildir/new|wc -l` -ge 1000 ] -BEGIN PGP SIGNATURE- Version: PGP 6.0.2 -- QDPGP 2.60 Comment: http://community.wow.net/grt/qdpgp.html iQA/AwUBOGsxSlMwP8g7qbw/EQIB9QCguGY/vtUaHclgiYXnayQCR4ToKkAAoMjd ue9wVCfXTPymEbbQmP07ZQHp =2+a8 -END PGP SIGNATURE- -- Petr Novotny, ANTEK CS [EMAIL PROTECTED] http://www.antek.cz PGP key ID: 0x3BA9BC3F -- Don't you know there ain't no devil there's just God when he's drunk. [Tom Waits]
Re: Quotas and qmail: file number
Please go to the qmail site and use mailquotacheck.sh [perl script] It works great and is very simple to implement Shashi - Original Message - From: Wolfgang Baumgartner [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 30, 1999 2:36 PM Subject: Quotas and qmail: file number Is there a patch to qmail, with which I can send a permanent error instead of a temporary error when the number of files in the Mailbox exceeds the allowed number of files (quota). The patch I found only sends a permanent error when the sum of messages exceeds the quota size. My problem is, that I have some users which never empty their mailbox, but are members of some maillists. And now this fills my queue and log files. Wolfgang
Re: Quotas and qmail: file number
If you are using the original version of my patch there is an open() call whose return status isn't checked for quota. I have an updated patch available. Let me know if you'd like diffs against the original (virgin) qmail source files, or a patch to the patch and I'll send it on to you. -- Jeff Hayward On Thu, 30 Dec 1999, Wolfgang Baumgartner wrote: Is there a patch to qmail, with which I can send a permanent error instead of a temporary error when the number of files in the Mailbox exceeds the allowed number of files (quota). The patch I found only sends a permanent error when the sum of messages exceeds the quota size. My problem is, that I have some users which never empty their mailbox, but are members of some maillists. And now this fills my queue and log files. Wolfgang
vpopmail and quotas
Hello, I have a linux server with qmail, I have installed the vpopmail package ( version 3.4.9) and I have find the following problem: -Imagine I configure the quota for a pop user to 10Mbytes (1024 bytes) in the vpasswd file, and the size of the Maildir directory for this user is 1Mbyte . -I send a mail to this user with a size of 30Mbytes. - Vdelivermail will enter the user Maildir and add up the sizes of all the files in this directory, but the total size in this moment is 1Mbytes so the message will be deliver because the Maildir size is smaller than 10Mbytes. -Now, the size of the Maildir directory for that user is 31Mbytes, but his quota is 10Mbytes!!! .imagine if I send a mail of 1Gbyte instead one of 30Mbytes.. The problem is that vdelivermail compares: the size of the Maildir directory HARD_QUOTA limit instead of: the size of the Maildir directory + the size of the message to deliver HARD_QUOTA limit Has anybody this problem?? How It can be fixed??
Re: vpopmail and quotas
On Tue, 28 Sep 1999, Ana [iso-8859-1] Belén Santos wrote: Has anybody this problem?? How It can be fixed?? patching sources? ;) Greetings, Marcin Jaskowiak
Quotas
Hi, I have a few questions about quotas. - I use qmail for POP account, so the mail of each user is in /home/user/Mailbox. I would like to add a quota of like 10 Mb. How can I do that. Is it easy ? - If the mail received is like 15 Mb, it will be denied. But will it be denied before being sent to my SMTP server or after ? Thank you !
Re: Quotas
On Thu, 12 Aug 1999, Sam wrote: - If the mail received is like 15 Mb, it will be denied. But will it be denied before being sent to my SMTP server or after ? After. Unless you set an incoming limit using control/databytes. -- Jeff Hayward
Re: Quotas
At 07:42 12/08/99 -0500, you wrote: On Thu, 12 Aug 1999, Sam wrote: - If the mail received is like 15 Mb, it will be denied. But will it be denied before being sent to my SMTP server or after ? After. Unless you set an incoming limit using control/databytes. in /var/qmail/control/databytes ? and I only pout the # of bytes allowed ? What do you advise ? Thank you.
Re: Quotas
Jeff Hayward writes: On Thu, 12 Aug 1999, Sam wrote: - If the mail received is like 15 Mb, it will be denied. But will it be denied before being sent to my SMTP server or after ? After. Unless you set an incoming limit using control/databytes. Nope. Your server will still dutifully receive every byte of a 30 megabyte mailbomb. Qmail will stop writing to the disk when it hits the limit, and will eventually reject the message once the sender stops spewing. But still, you're gonna get the whole thing. -- Sam
Re: Quotas
On Thu, 12 Aug 1999 at 14:43:38 +0200, Dimitri SZAJMAN wrote: At 07:42 12/08/99 -0500, you wrote: On Thu, 12 Aug 1999, Sam wrote: - If the mail received is like 15 Mb, it will be denied. But will it be denied before being sent to my SMTP server or after ? After. Unless you set an incoming limit using control/databytes. in /var/qmail/control/databytes ? and I only pout the # of bytes allowed ? What do you advise ? I think so. But the result may be not what you want. It won't prevent accepting many smaller messages (each below databytes). If a user exceeds his quota, new messages won't be appended to his mailbox (or maildir) but will be filling the spool, making the situation even worse. One of the solutions is using the script named mailquotacheck, mentioned at www.qmail.org, available from http://www.tibus.net/pgregg/projects/qmail/mailquotacheck/ Though it's only effective when a user can't edit his .qmail, i.e. usually on mail servers without "shell accounts". -- Tomasz Papszun SysAdm @ TP S.A. Lodz, Poland | And it's only [EMAIL PROTECTED] http://www.lodz.tpsa.pl/ | ones and zeros.
Re: Quotas
On Thu, 12 Aug 1999, Sam wrote: Unless you set an incoming limit using control/databytes. Nope. Your server will still dutifully receive every byte of a 30 megabyte mailbomb. Qmail will stop writing to the disk when it hits the limit, and will eventually reject the message once the sender stops spewing. But still, you're gonna get the whole thing. The context of the discussion is messages on disk. Perhaps you have some other point you are making? -- Jeff
Re: Quotas
Yes, control/databytes, if present, is the maximum message size which the qmail-smtpd program will accept. Set it at least as large as your largest user quota. See 'man qmail-smtpd' for details. -- Jeff On Thu, 12 Aug 1999, Dimitri SZAJMAN wrote: At 07:42 12/08/99 -0500, you wrote: On Thu, 12 Aug 1999, Sam wrote: - If the mail received is like 15 Mb, it will be denied. But will it be denied before being sent to my SMTP server or after ? After. Unless you set an incoming limit using control/databytes. in /var/qmail/control/databytes ? and I only pout the # of bytes allowed ? What do you advise ? Thank you.
Re: Quotas
Thank you Mr. Moderator. Jeff, thank you for pointing that out. The issue of such a mailbomb is a piece of information an overworked admin installing qmail for the first time might not consider. Jeff Hayward wrote: On Thu, 12 Aug 1999, Sam wrote: Unless you set an incoming limit using control/databytes. Nope. Your server will still dutifully receive every byte of a 30 megabyte mailbomb. Qmail will stop writing to the disk when it hits the limit, and will eventually reject the message once the sender stops spewing. But still, you're gonna get the whole thing. The context of the discussion is messages on disk. Perhaps you have some other point you are making? -- Jeff -- Daemeon Reiydelle Systems Engineer, Anthropomorphics Inc. [EMAIL PROTECTED]
Maildir quotas.
About a month ago I was thinking about various possible ways to implement quotas on Maildir mailboxes without using filesystem-based quotas. In some situations, like virtual domains, filesystem quotas will not work. I've played with my original idea, and came up with a slightly different way to potentially implement something like this. This one should be much simpler to implement and use. Many thanks to the few who provided feedback the first time around: http://www.concentric.net/~mrsam/maildirpp.html
Re: Disk Quotas
On Tue, Jun 15, 1999 at 07:56:04PM -0700, [EMAIL PROTECTED] wrote: How does qmail handle users (using Maildir delivery) that have exceeded their disk quota? qmail will defer the message, and try later. It will keep trying, until the quota usage goes down so it can write the message. If the message is not delivered until timeout, it will bounce the message. We are contemplating implementing some pretty loose quota's, and that was a question i didn't have an answer to.. ;P -- Anand
Disk Quotas
How does qmail handle users (using Maildir delivery) that have exceeded their disk quota? We are contemplating implementing some pretty loose quota's, and that was a question i didn't have an answer to.. ;P Thanks! Adam -- +---+ | Adam Jacob - Cyber Trails | "A monkey screams into an| | Sr. Systems Administrator | ethernet cable, and Sendmail| | [EMAIL PROTECTED]| sends it somewhere."| +---+ Phone - (602)906-1752 Pager - (602)447-9531 Fax - (602)906-1799
Re: Qmail quotas with mailquotacheck.sh
On Fri, May 21, 1999 at 02:15:26PM -0600, Peter Janett wrote: I'm using Paul Gregg's checkpasswd setup to create pop users that are not system users. It's working great, but now I need to add mail quotas. So, I'm attempting to use his mailquotacheck.sh, from http://www.tibus.net/pgregg/projects/qmail/mailquotacheck/mailquotacheck.sh It needs to be in system path, or specified with full path/filename, but I had to quit using it when I upgraded to qmail 1.03 (unfortutnate. Worked great). I have no real idea why. It just wouldn't work anymore after installing 1.03. -- Brad Shelton On Line Exchange http://ole.net - - 810.939.7604Tech Support 810.264.7051Tech Support Fax 313.961.7100Main Office
Re: Qmail quotas with mailquotacheck.sh
Hmm, yes that is strange, since we're using it here with 1.03. Aaron Quoting Brad Shelton ([EMAIL PROTECTED]): It needs to be in system path, or specified with full path/filename, but I had to quit using it when I upgraded to qmail 1.03 (unfortutnate. Worked great). I have no real idea why. It just wouldn't work anymore after installing 1.03.
Qmail quotas with mailquotacheck.sh
I'm using Paul Gregg's checkpasswd setup to create pop users that are not system users. It's working great, but now I need to add mail quotas. So, I'm attempting to use his mailquotacheck.sh, from http://www.tibus.net/pgregg/projects/qmail/mailquotacheck/mailquotacheck.sh I can't quite get it, and have a few questions I think will help. 1) What directory should the script go in? 2) What exactly is the format of the .qmail file when using this script? A few more details. I have the script in /var/qmail/bin. My .qmail in each $HOME looks like this: |mailquotacheck ./Maildir/ I've also tried: |/var/qmail/bin/mailquotacheck.sh ./Maildir/ Should these be on the same line? Do I need the full path to the script? Should I include the ".sh". Thanks is advance, Peter Janett