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!

can't configure host in sendmail 1

Status
Not open for further replies.

shantec

Technical User
Oct 20, 2002
29
TR
although i have changed the name in etc/hosts file, i still can't change the host name in the mail header.

my config at the moment is like
servername.domain.com, where i want it as domain.com

as all my pop accounts are accessible under mydomain.com.

........at the moment i get these messages..........

"domain of sender adress ..... does not resolve "
"envelope sender domain must exist"


and my emails are bouncing from some isp's.

where are the exact locations to specify the host name ?


thank you.
shann

 
First try the "hostname" command to set your hostname,
# hostname mail.domain.com OR
# hostname domain.com

and also add your hostname into /etc/mail/local-host-names file.

restart the sendmail,
# /etc/init.d/sendmail restart,
Then
# telnet xxx.xxx.xxx.xxx 25

to see if your hostname is changed to the one you wanted.

There is one more thing important,
The error message that you gave may NOT be resolved by doing these, because there are some DNS issues going on.
If your DNS servers are being hosted in your ISP you need to call them and ask if they can set the reverse DNS for your domain to the hostname you've been trying to set.

Basicly what happens is, some mail servers ( generally university mail systems) does not want to deal with spam too much, so they're setting their mail servers to look for the reverse DNS of the incoming mail. Which in this case if the mail is coming from root@foo.com and reverse lookup shows hqcntr.isp.domaintest.com then the mail will not be accepted. In order to get the mail accepted the foo.com must match the reverse lookup results.

 

thank you for your reply!!!i appreciate it.


after matching the reverse dns lookup,now i have the correct domain name in my email header as, domain.com,
instead of host.domain.com

but i can't get to change the following.


how can i change this- in the mail header?

to someuser@mydomain.com
--instead of----

Received: (from apache@localhost)
Return-Path: <apache@domain.com>

shann
 
Could you post the header of the mail?
I'll take a look at it..
 
Are you using a webmail program? Apache has nothing to do with sendmail otherwise.
 
this is my mail header, that i send out.
how can i replace the &quot;apache&quot; & &quot;localhost&quot;,terms ?


thank you.
shann

---------------------------------------
Return-Path: <apache@e-zbanner.com>
Received: from [212.58.4.177] (HELO e-zbanner.com)
by doruk.net.tr
with ESMTP id 6066304 for cerdil@digitiy.com; Tue, 22 Oct 2002 10:44:25 +0300
Received: (from apache@localhost)
by e-zbanner.com (8.11.6/8.11.6) id g9M7ivG10799;
Tue, 22 Oct 2002 10:44:57 +0300
Date: Tue, 22 Oct 2002 10:44:57 +0300
Message-Id: <200210220744.g9M7ivG10799@e-zbanner.com>
To: cerdil@digitiy.com
Subject: test
From: &quot;new campaign&quot; <info@e-zbanner.com>
Reply-To: returns@ezb1.com
Content-Type: text/html;charset=iso-8859-9
-------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top