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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Goofy email headers

Status
Not open for further replies.

timgerr

IS-IT--Management
Jan 22, 2004
364
US
I am new to send mail and I have installed it on a Debian box for a game server that I have. We use PHPNuke and that software needs (or likes) send mail do I created a local sendmail server. I was able to get the address to say admin@clan-sef.com but Comcast will not pass the email on. I have the headers of the email and the address still is @localhost.localhost. How can I get Sendmail to show the headers correctly?

Here is the headers
Code:
Received: from localhost.localdomain ([206.222.12.10])

        by smtp.sbcglobal.yahoo.com (Merak 8.0.3) with ESMTP (SSL) id MCF22197

        for <t@mXXXXXXX.com>; Mon, 22 May 2006 22:35:53 -0400

Received: from localhost.localdomain ([URL unfurl="true"]www-data@localhost.localdomain[/URL] [127.0.0.1])

            by localhost.localdomain (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k4NEbJf1009084

            for <t@mtgallagher.com>; Tue, 23 May 2006 10:37:19 -0400

Received: (from [URL unfurl="true"]www-data@localhost)[/URL]

            by localhost.localdomain (8.13.4/8.13.4/Submit) id k4NEbJPI009083;

            Tue, 23 May 2006 10:37:19 -0400

Date: Tue, 23 May 2006 10:37:19 -0400

Message-Id: <200605231437.k4NEbJPI009083@localhost.localdomain>

To: t@mXXXXXXXX.com

Subject: [Spam] New User Account Activation

From: admin@clan-sef.com

Reply-To: admin@clan-sef.com

X-Spam-Flag: YES

X-Spam-Status: Yes, hits=5.86 required=4.00 tests=NO_REAL_NAME,DATE_IN_FUTURE_06_12,USERNAME_IN_SUBJECT,BAYES_30,IMPRONONCABLE_2,NO_RDNS2

            version=3.0

X-Spam-Level: *****

X-Spam-Checker-Version: SpamAssassin 3.0 (1.3) on smtp.sbcglobal.yahoo.com

Again I am new with SendMail and if you look at the headers you will see that sendmail is not setup correctly. What am I doing wrong.

Thanks
-T

-How important does a person have to be before they are considered assassinated instead of just murdered?
-Need more cow bell!!!
 
In your /etc/mail directory make sure you have set-up

local-host-names
Code:
clan-sef.com
domaintable
Code:
clan-sef.com	[i]<your-servers-hostname>[/i]

M. Brooks
 
Thanks for the help so far, got a question.

What is the domaintable domaintable?

-T



-How important does a person have to be before they are considered assassinated instead of just murdered?
-Need more cow bell!!!

 
OK I do not have a domainble in /etc/mail I have :
Code:
access                     m4                    service.switch
access.db                  Makefile              service.switch-nodns
address.resolve            peers                 smrsh
aliases                    sasl                  submit.cf
aliases.db                 sendmail.cf           submit.cf_original
databases                  sendmail.cf.errors    submit.mc
helpfile                   sendmail.conf         tls
local-host-names           sendmail.mc           trusted-users
local-host-names_original  sendmail.mc_original

-How important does a person have to be before they are considered assassinated instead of just murdered?
-Need more cow bell!!!

 
First, create the domaintable file with the contents of
Code:
clan-sef.com    [i]<your-servers-hostname>[/i]
Second, add this line to your sendmail.mc
Code:
FEATURE(`domaintable', `hash MAIL_SETTINGS_DIR/domaintable.db')dnl
And finally create the necessary DBM files for Sendmail
Code:
makemap hash /etc/mail/domaintable < /etc/mail/domaintable
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

M. Brooks
 
Mr M,
Thank for all the help, I am getting a new error when I do
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

Code:
xlhost:/etc/mail# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
*** ERROR: FEATURE() should be before MAILER()
*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE() should be before MAILER()
xlhost:/etc/mail#

Do you know what this meands?

-T



-How important does a person have to be before they are considered assassinated instead of just murdered?
-Need more cow bell!!!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top