Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control files 1

Status
Not open for further replies.

penauroth

Programmer
Oct 30, 2001
325
US
This is the header file of an email my mail server is sending out (non production):

Code:
Delivered-To: user@hotmail.com
Received: by 10.38.163.6 with SMTP id l6cs4537rne;
        Thu, 2 Sep 2004 19:30:17 -0700 (PDT)
Received: by 10.38.1.79 with SMTP id 79mr2839790rna;
        Thu, 02 Sep 2004 19:30:17 -0700 (PDT)
Return-Path: <user@mydomain.com>
Received: from mydomain.com ([151.126.167.88])
        by mx.hotmail.com with ESMTP id 79si2452003rnc;
        Thu, 02 Sep 2004 19:30:17 -0700 (PDT)
X-SPF-Guess: fail 151.126.167.88:user@mydomain.com:mydomain.com
Received: (qmail 1872 invoked by uid 1004); 2 Sep 2004 22:30:08 -0400
[b]Received: from unknown (HELO mycomputer.mydomain.com) (192.168.20.210)[/b]
  by mycomputer.mydomain.com with SMTP; 2 Sep 2004 22:30:08 -0400
X-Originating-IP: [192.168.20.210]
From: "Test User" <user@mydomain.com>
To: user@hotmail.com
Subject: Test 10
Date: Thu, 02 Sep 2004 22:30:08 -0400
Message-ID: <20040902.RGb.21848900@mycomputer.mydomain.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
X-Mailer: AngleMail for eGroupWare ([URL unfurl="true"]http://www.egroupware.org)[/URL] v 1.0.0.004

Test again

I have the following control files in /var/qmail/control:

helohost = mailer.mydomain.com
localiphost = mailer.mydomain.com
idhost = mailer.mydomain.com

The problem is that when I send out an email I get (1) an unknown line (in bold above) in the email header, (2) the mail server name remains unchanged and (3) the local ip is not replaced. Qmail has been restarted multiple times and all files in the directory are chmod 644 and owned by root:root. Why isn't the header changing according to the control files? Thanks for your help.

Paul

Work on Windows, play on Linux.
 
Then what is the point of the control files? Do you really want the outside world to know the actual name of your mail server or the private address schema you are using on your LAN?

Paul

Work on Windows, play on Linux.
 
You should have a public, DNS-resolvable IP/name for the mail server, you should set your ID- files for the name you're trying to use. You are probably unknown to external DNS because you're trying to use a local IP for the box? I don't know. How about posting your "qmail-showctl" output?




 
So I guess to hide the private name use an alias record in DNS to direct traffic to the MX. Makes sense for smtp and pop clients but doesn't explain the purpose of the control files. I have interpreted that the helohost control file is suppose to mask the real system name of the smtp server and the localiphost is suppose to do the same to the local private IP contained in email headers. Also, how can I get rid of the unknown line in the header which is not DNS related? Information contained in the header are specific to mail servers not DNS. I need to change the data via control files. Where are these ID files (control files?)?

Code:
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 120.
subdirectory split: 23.
user ids: 1001, 1002, 1003, 0, 1004, 1005, 1006, 1007.
group ids: 1001, 1002.

badmailfrom: (Default.) Any MAIL FROM is allowed.

bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.

bouncehost: (Default.) Bounce host name is pnjserver.lucygoose.com.

concurrencylocal: (Default.) Local concurrency is 10.

concurrencyremote: Remote concurrency is 255.

databytes: (Default.) SMTP DATA limit is 0 bytes.

defaultdomain: Default domain name is lucygoose.com.

defaulthost: Default host name is mailer.

doublebouncehost: (Default.) 2B recipient host: pnjserver.lucygoose.com.

doublebounceto: (Default.) 2B recipient user: postmaster.

envnoathost: Presumed domain name is mailer.lucygoose.com.

helohost: SMTP client HELO host name is lucygoose.com.

idhost: Message-ID host name is mailer.lucygoose.com.

localiphost: Local IP address becomes mailer.lucygoose.com.

locals:
Messages for pnjserver.lucygoose.com are delivered locally.

me: My name is pnjserver.lucygoose.com.

percenthack: (Default.) The percent hack is not allowed.

plusdomain: Plus domain name is lucygoose.com.

qmqpservers: (Default.) No QMQP servers.

queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds.

rcpthosts:
SMTP clients may send messages to recipients at pnjserver.lucygoose.com.

morercpthosts: (Default.) No effect.

morercpthosts.cdb: Oops! morercpthosts.cdb exists but morercpthosts doesn't.

smtpgreeting: (Default.) SMTP greeting: 220 pnjserver.lucygoose.com.

smtproutes: (Default.) No artificial SMTP routes.

spfbehavior: (Default.) The SPF behavior is 0.

spfexp: (Default.) The SPF default explanation is: 550 See [URL unfurl="true"]http://spf.pobox.com/why.html?sender=%{S}&ip=%{I}&receiver=%{xR}.[/URL]

Thanks. Qmail can be frustrating. I am just trying to make sense of the documentation.

Paul

Work on Windows, play on Linux.
 
Paul,
You have no MX record defined in your public DNS. This *should* be the cause of the "unknown" issue. I say *should* because DJB wrote qmail to be *very* RFC compliant, so much so that a number of things can still be causing it. We'll start with your DNS being incomplete and move on from there....

Define an MX record for the domain, publish it, and see what happens. Consider checklisting your setup - for stuff like DNS issues - against Life with Qmail to make sure everything squares up.

HTH,
Dave.

 
Got it. I read the documentation and the smtp server queries the dns server for the IP address. If it cannot find the dns server, then it will indicate that the host is unknown. I installed tinydns and was able to fix the issue in the short term. I am unable to setup forwarders in tinydns which means that resolving will be slow depending on the order of dns entries in the resolv.conf file. The header is still showing the local ip address schema. Thanks Dave. You really helped me out with the dns issue. Have a star on me.

Paul

Work on Windows, play on Linux.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top