case c_ehlo : //EHLO SMTP protocol
proceed=doehlo(contact,line);
break;
+ case c_noop : //No Operation
+ (void) transmit(contact,"%d 2.0.0 OK, %s",
+ CMDOK,contact->mainsesid);
+ break;
case c_quit : //QUIT SMTP protocol
(void) transmit(contact,"%d 2.0.0 Bye, closing connection %s",
QUITOK,contact->mainsesid);
break;
}
break;
- case c_unknown : //uknown keyword
- (void) rou_alert(0,"Command <%s> from [%s] is unknown (config?)",
+ case c_unknown : //unknown keyword
+ (void) rou_alert(0,"SMTP Command <%s> from [%s] is unknown (config?)",
line,contact->peerip);
- (void) transmit(contact,"%d-5.5.1 command <%s> is unknown",CMDBAD,line);
- (void) transmit(contact,"%d 2.0.0 Bye, closing connection %s",
- QUITOK,contact->mainsesid);
- status=-1; //remote is a trouble maker
- proceed=false;
+ (void) transmit(contact,"%d-5.5.1 Unrecognized command, see RFC 5321",CMDBAD);
+ (void) transmit(contact,"%d-5.5.1 https://www.rfc-editor.org",CMDBAD);
+ (void) transmit(contact,"%d 5.5.1 session %s is still running",
+ CMDBAD,contact->mainsesid);
break;
default :
(void) rou_alert(0,"Unable to find keyword for <%s> (Bug?)",OPEP,line);
+ (void) transmit(contact,"%d 2.0.0 Bye, closing connection %s",
+ QUITOK,contact->mainsesid);
+ status=-1; //remote is a trouble maker
status=-3;
proceed=false;
break;
char *line;
line=X509_NAME_oneline(X509_get_subject_name(peer),0,0);
- (void) rou_alert(2,"Certificate subject=<%s>",line);
+ (void) rou_alert(4,"Certificate subject=<%s>",line);
line=rou_freestr(line);
line=X509_NAME_oneline(X509_get_issuer_name(peer),0,0);
- (void) rou_alert(2,"Certificate issuer=<%s>",line);
+ (void) rou_alert(4,"Certificate issuer=<%s>",line);
line=rou_freestr(line);
}
break;