--- qmail-1.03.original/qmail-smtpd.c 1998-06-15 11:53:16.000000000 +0100 +++ qmail-1.03/qmail-smtpd.c 2004-03-12 22:27:09.000000000 +0000 @@ -75,6 +75,10 @@ { smtp_greet("221 "); out("\r\n"); flush(); _exit(0); } +void smtp_nohttp() +{ + out("221 I am not an HTTP server. (#5.5.5)\r\n"); flush(); _exit(0); +} char *remoteip; char *remotehost; @@ -402,6 +406,9 @@ , { "helo", smtp_helo, flush } , { "ehlo", smtp_ehlo, flush } , { "rset", smtp_rset, 0 } +, { "get", smtp_nohttp, flush } +, { "post", smtp_nohttp, flush } +, { "head", smtp_nohttp, flush } , { "help", smtp_help, flush } , { "noop", err_noop, flush } , { "vrfy", err_vrfy, flush }