From owner-freebsd-questions Sat Jun 10 10:27:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from nscache2.x-treme.gr (mail1.x-treme.gr [212.120.196.23]) by hub.freebsd.org (Postfix) with ESMTP id 4575637B633 for ; Sat, 10 Jun 2000 10:27:42 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (pat47.x-treme.gr [212.120.197.239]) by nscache2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with ESMTP id UAA21812; Sat, 10 Jun 2000 20:27:27 +0300 Received: (from charon@localhost) by hades.hell.gr (8.10.2/8.10.2) id e5BGdRa17911; Sun, 11 Jun 2000 19:39:27 +0300 (EEST) Date: Sun, 11 Jun 2000 19:39:27 +0300 From: Giorgos Keramidas To: "Alexandre E. Derevyanko" Cc: freebsd-questions@freebsd.org Subject: Re: How to limit sendmail -q processing only messages <= N kb ? Message-ID: <20000611193927.A17803@hades.hell.gr> References: <393E486D.6407C7B9@rusig.ru> <000501bfd085$e2bba7c0$858c8c96@win2000.cc.ceid.upatras.gr> <393F32D1.713AAF8F@rusig.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <393F32D1.713AAF8F@rusig.ru>; from der@rusig.ru on Thu, Jun 08, 2000 at 09:44:49AM +0400 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Jun 08, 2000 at 09:44:49AM +0400, Alexandre E. Derevyanko wrote: > > It is correct, and works nice, but it is not my problem. Really, I > already run fetchmail with --limit option. The problem is sendmail, > that queue outgoing mail. I need to queue all mail and send at daytime > only mail smaller than some limit. It is vital to deliver small > messages fast - really, it is office configuration, not home. At home > I can deliver mail only at night without limits. I don't know of any way to force sendmail to process only messages up to a certain size. Thoughts about a script that stops sendmail and splits an existing queue into two different queues, which are then processed separately come to mind, though. I haven't tested what I'm suggesting here, it's only what I could come up with until now. You can leave sendmail put it's jobs in /var/spool/mqueue by default, and have a cron job run through the queue files, and split them in two other queues, say /var/spool/mqueue.0 and /var/spool/mqueue.1 depending on the size of the dfXXX files. Then, you can periodically call # sendmail -q -OQueueDirectory=/var/spool/mqueue.0 to run through the queue of `small' messages, and once a day run through the queue of large messages with # sendmail -q -OQueueDirectory=/var/spool/mqueue.1 Care should be taken when moving files between queues, though. But, I'm sure you do not need to be told about this :-) Ciao. -- Giorgos Keramidas, < keramida @ ceid . upatras . gr > For my public key: finger keramida@ceid.upatras.gr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message