T:(feed20) Testing double connectopm
R:220 mailleur.example.com, ESMTP (cleartext) mailleur...
#====================================================
-S:HELO example.com
-R:250 mailleur.example.com, link (cleartext) ready,...
-C:ORGN: 185.242.226.23
-R:220 mailleur.example.com, ESMTP (cleartext) mailleur...
-C:WAIT 5 #wait 5 sec
-S:QUIT
-R:221 2.0.0 Bye, closing connection...
#-------------------------------------------------------------------------
case c_ehlo : //EHLO SMTP protocol
proceed=doehlo(contact,line);
break;
+ case c_help : //HELP SMTP protocol
+ (void) eml_transmit(contact,true,"%d-2.0.1 see https://datatracker.ietf.org"
+ "/doc/html/rfc5321",
+ GOTHELP);
+ (void) sleep(1); //avoiding abuse
+ break;
case c_noop : //No Operation
(void) eml_transmit(contact,true,"%d 2.0.0 OK, %s",
CMDOK,contact->mainsesid);
{c_data,"DATA"},
{c_ehlo,"EHLO"},
{c_helo,"HELO"},
+ {c_help,"HELP"},
{c_mail,"MAIL FROM:"},
{c_noop,"NOOP"},
#if MODEDEBUG
#define MXMSIZE "52428800" //52 Megabytes
#define CRLF "\r\n" //EOL within SMTP protocol
+#define GOTHELP 214 //Help message (A response to the HELP command)
#define SIGNON 220 //signon information
#define QUITOK 221 //status on quit
#define IDOK 235 //Authentication ID OK
c_data, //DATA email contents transfer request
c_ehlo, //EHLO command
c_helo, //Basic Helo command
+ c_help, //HELP command
c_mail, //'mail from:' sequence detected
c_noop, //No Operation request
#ifdef MODEDEBUG