Hi, hope that is the right list for that, if not, please hit me not to
strong :-)
perhaps someone need it for virtual SMTP hosting on one machine.
If applied, the greeting hostname will be changed to the name of the
connected local IP address
virtual-greeting-patch.diff
--- qmail-smtpd.c.orig Mon Jun 15 12:53:16 1998
+++ qmail-smtpd.c Wed Feb 23 21:46:39 2000
@@ -59,13 +59,18 @@
void err_vrfy() { out("252 send some mail, i'll try my best\r\n"); }
void err_qqt() { out("451 qqt failure (#4.3.0)\r\n"); }
+char *remoteip;
+char *remotehost;
+char *remoteinfo;
+char *local;
+char *relayclient;
stralloc greeting = {0};
void smtp_greet(code) char *code;
{
substdio_puts(&ssout,code);
- substdio_put(&ssout,greeting.s,greeting.len);
+ substdio_put(&ssout,local, strlen(local));
}
void smtp_help()
{
@@ -75,12 +80,6 @@
{
smtp_greet("221 "); out("\r\n"); flush(); _exit(0);
}
-
-char *remoteip;
-char *remotehost;
-char *remoteinfo;
-char *local;
-char *relayclient;
stralloc helohost = {0};
char *fakehelo; /* pointer into helohost, or 0 */