/* $Id$ */
+
+#define SMTP_PORT 2525
+
#include "sysdep.h"
#include <stdlib.h>
#include <unistd.h>
char buf[256];
if (strncasecmp(argbuf, "login", 5) ) {
- cprintf("500 We only support LOGIN authentication.\n");
+ cprintf("550 We only support LOGIN authentication.\n");
return;
}
char *Dynamic_Module_Init(void)
{
SYM_SMTP = CtdlGetDynamicSymbol();
- CtdlRegisterServiceHook(25,
+ CtdlRegisterServiceHook(SMTP_PORT,
smtp_greeting,
smtp_command_loop);
return "$Id$";
* thread that the &readfds needs to be refreshed with more
* current data.
*/
- if (FD_ISSET(rescan[0], &readfds)) {
+ if (!time_to_die) if (FD_ISSET(rescan[0], &readfds)) {
read(rescan[0], &junk, 1);
goto SETUP_FD;
}