Re: can qmail control a mail size before sending it ??

2001-08-03 Thread Lukas Beeler

At 08:14 03.08.2001 -0700, you wrote:

>Someone please correct me if I'm wrong here, but isn't databytes exactly
>what the OP does _not_ want? databytes is checked after the mail is
>spooled, no?
i don't use this function.
i thought it would decline the message on smtp level. with a 553 error 
after "data". But, i don't know it, because i never used this function.
and, the question is how:
 >I'd like to controle the mail size before sending it.
should be interpretet.. the message won't be sent to the to the other end, 
with databytes. in any case.
-- 
--/-/-- Lukas Beeler  [EMAIL PROTECTED] ---\-\--
   \ \  My HomePage: http://www.projectdream.org>  / /




Re: can qmail control a mail size before sending it ??

2001-08-03 Thread Greg White

On Fri, Aug 03, 2001 at 05:26:55PM +0200, Lukas Beeler wrote:
> At 08:14 03.08.2001 -0700, you wrote:
> 
> >Someone please correct me if I'm wrong here, but isn't databytes exactly
> >what the OP does _not_ want? databytes is checked after the mail is
> >spooled, no?
> i don't use this function.
> i thought it would decline the message on smtp level. with a 553 error 
> after "data". But, i don't know it, because i never used this function.
> and, the question is how:
>  >I'd like to controle the mail size before sending it.
> should be interpretet.. the message won't be sent to the to the other end, 
> with databytes. in any case.
> -- 
> --/-/-- Lukas Beeler  [EMAIL PROTECTED] ---\-\--
>\ \  My HomePage: http://www.projectdream.org>  / /
> 

Man, I'm not having a good month. Never did get around to implementing
databytes, as it was my understanding that its utility was limited --
the manpage never explicitly states whether the mail is actually queued
or not, and I (apparently) misread it. qmail-send never sees the mail,
and it is rejected at the SMTP level, not bounced. This appears to work
regardless of destination -- all SMTP injected mail must fit inside
databytes.

To the OP, it looks like databytes will do what you want, if the sender
is injecting via SMTP, rather than locally.

-- 
Greg White



Re: can qmail control a mail size before sending it ??

2001-08-03 Thread Charles Cazabon

Lukas Beeler <[EMAIL PROTECTED]> wrote:
> At 15:31 03.08.2001 +0100, François Philippo wrote:
> 
> >instead of sending a mail too big and have an error return
> >I'd like to controle the mail size before sending it.
> >is it possible???
> 
> yes, man qmail-control
> look for databytes

databytes/DATABYTES only work for incoming mail recieved via SMTP.  The
original poster asked about limiting the size of outgoing mail; this
cannot be done with stock qmail.

Charles
-- 
---
Charles Cazabon<[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
---



Re: can qmail control a mail size before sending it ??

2001-08-03 Thread Lukas Beeler

At 15:31 03.08.2001 +0100, François Philippo wrote:

>instead of sending a mail too big and have an error return
>I'd like to controle the mail size before sending it.
>is it possible???

yes, man qmail-control
look for databytes

-- 
--/-/-- Lukas Beeler  [EMAIL PROTECTED] ---\-\--
   \ \  My HomePage: http://www.projectdream.org>  / /