diff -urN nullmailer-1.00RC5.orig/protocols/smtp.cc nullmailer-1.00RC5/protocols/smtp.cc
--- nullmailer-1.00RC5.orig/protocols/smtp.cc	Mon Oct  2 14:14:08 2000
+++ nullmailer-1.00RC5/protocols/smtp.cc	Sun Jul  8 20:31:54 2001
@@ -20,6 +20,7 @@
 // <nullmailer-subscribe@lists.em.ca>.
 
 #include "config.h"
+#include "configio.h"
 #include <stdlib.h>
 #include <unistd.h>
 #include "connect.h"
@@ -30,6 +31,7 @@
 #include "mystring/mystring.h"
 #include "protocol.h"
 
+mystring helohost;
 int port = 25;
 const char* cli_program = "smtp";
 const char* cli_help_prefix = "Send an email message via SMTP\n";
@@ -140,9 +142,11 @@
 
 int protocol_send(fdibuf* in, int fd)
 {
+  if(!config_read("helohost", helohost))
+    helohost = hostname();
   smtp conn(fd);
   conn.docmd("", 200);
-  conn.docmd("HELO " + hostname(), 200);
+  conn.docmd("HELO " + helohost, 200);
   conn.send(in);
   conn.docmd("QUIT", 200, true);
   return 0;

