Re: Quotas
Dimitri SZAJMAN writes: > - 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 ? It's easy if you set filesystem quotas for your users. > > - 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. -- Sam
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]
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
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