I'm doing a new setup of qmail on a new box (my last setup was years ago 
so I've grown rusty), and I ran into a problem with the Received: from 
header.

Return-Path: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 16367 invoked from network); 10 Jul 2001 06:24:44 -0000
Received: from localhost (HELO hoser) (127.0.0.1)
  by 0 with SMTP; 10 Jul 2001 06:24:44 -0000

(this is from a hand-jobbed telnet localhost 25)

The "Received: from" header has "by 0" instead of "by 
starnie.harrison.org".  Looking in qmail-smtpd.c, I can see where it 
gets assigned:

  local = env_get("TCPLOCALHOST");
  if (!local) local = env_get("TCPLOCALIP");
  if (!local) local = "unknown";

so I'm guessing those env vars arent' being set correctly by ucspi. 
 This is the first time I've used ucspi and daemontools (before I always 
used inetd).  I'm following the LWQ text, and I think I messed up the 
step where:

    echo '127.:allow,RELAYCLIENT=""' >>/etc/tcp.smtp
    qmailctl cdb

you are supposted to add a rule to the tcp.smtp file.  I did a > instead 
of a >>, and I'm wondering if I overwrote an existing rule that was 
there by default that was setting TCPLOCALHOST.

My /etc/tcp.smtp currently is:
127.:allow,RELAYCLIENT=""

I've applied several patches (bigdns, bigtodo, bigconcur, 
tarpit+relayfrom, datelocaltime, localbind).

Any help would be appreciated.

-Trevor


Reply via email to