I am not aware of anything like this.  But patching qmail-smtpd.c so
that it supports this SMTP SIZE should be quite trivial.  I just took
a quick glance to qmail-smtpd.c:

One idea would be the following (in qmail-smtpd.c):

  ......
  if (control_readint(&databytes,"control/databytes") == -1) die_control();
  x = env_get("DATABYTES");
  if (x) { scan_ulong(x,&u); databytes = u; }
  if (!(databytes + 1)) --databytes;
  ......

So, if /var/qmail/control/databytes has the databytes, then the SMTP
SIZE gives the size contained therein, otherwise, it just uses a
default, sendmail has 10 MB if I recall correctly.

Then, all you need to do is to write a simple

void smtp_size(arg) char *arg;

and have it spit out the SMTP SIZE stuff.. and have it called in void
setup().

I may look into this this afternoon, if I don't have any further
interruptions.  Had to scramble to get a production web server on line
which went down a while ago (caused by a bad memory module :(

Regards,

Chin Fang
[EMAIL PROTECTED]


> Are there any patches available that will make qmail support the RFC 1870
> SMTP SIZE extension?
> 
> (I tried searching the ORNL list archive but since the word "size" is
> returned with every response, my search was useless and returned tons of
> irrelevant responses. :(  )
> 
> Thanks.
> 
> 

Reply via email to