$Log$
+ Revision 614.10 2004/01/27 19:56:29 ajc
+ * serv_smtp.c: HELO and EHLO responses now reply with the detected
+ IP address and reverse DNS lookup of the connecting host
+
Revision 614.9 2004/01/24 05:47:50 ajc
* Got Citadel talking to LDAP. Still requires manual creation of schema
and container entries, which I don't like; we'll have to fix that. It
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
}
if (which_command == 0) {
- cprintf("250 Greetings and joyous salutations.\r\n");
+ cprintf("250 Hello %s (%s [%s])\r\n",
+ SMTP->helo_node,
+ CC->cs_host,
+ CC->cs_addr
+ );
}
else {
- cprintf("250-Greetings and joyous salutations.\r\n");
+ if (which_command == 1) {
+ cprintf("250-Hello %s (%s [%s])\r\n",
+ SMTP->helo_node,
+ CC->cs_host,
+ CC->cs_addr
+ );
+ }
+ else {
+ cprintf("250-Greetings and joyous salutations.\r\n");
+ }
cprintf("250-HELP\r\n");
cprintf("250-SIZE %ld\r\n", config.c_maxmsglen);
cprintf("250-PIPELINING\r\n");
}
+
/*
* Implement HELP command.
*/