On Sun, 13 Jun 2004 01:45:15 -0700
Ask Bj�rn Hansen <[EMAIL PROTECTED]> wrote:
> On Jun 13, 2004, at 1:38 AM, Matt Sergeant wrote:
> 
> > It requires a core patch. I wonder if a new return code might not be > > useful 
> > here, so you could do:
> >
> >   return CUSTOM, 501, "Syntax error in EHLO argument";
> I think I'd rather see an extension so if the second part of the > return result is 
> a three digit number we'll pass that back as the code
> and use the third part as the message.
> 
> Does that make sense?
In addtition you could also add an alias for RFC errors at the end of 
Qpsmtpd::Constants:

  use constant RFC_ERROR => (DENY, 501);

So plugin writers can just write
  return(RFC_ERROR, "Syntax error in HELO argument");

(I guess this answer implies "Yes" to Ask's question ;-))

Hanno

Reply via email to