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!

sendmail do not remove "localhost" from outgoing emails !

Status
Not open for further replies.

haneo

Programmer
Jan 2, 2002
274
CA
i have sendmail 8.11.2-14(red hat 7.1)

I have the domaine MyDomaine.com
I have configurated the sendmail to send and to receive emails

The recorde in /var/named/MyDomaine.com :

NS ns.MyDomaine.com.
MX 10 ns.MyDomaine.com.
ns A IP_OF_mail_server



And in the /etc/mail/sendmail.mc

i have addedd the lines:

MASQUERADE_AS(MyDomaine.com)dnl
MASQUERADE_DOMAIN(MyDomaine.com)dnl
FEATURE(masquerade_entire_domain)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(allmasquerade)dnl
EXPOSED_USER(`root')dnl

apdated sendmail.cf with m4


I have sent an email from my Yahoo account to this server i received the email:

X-Apparently-To: Myaccount@yahoo.fr via web9205.mail.yahoo.com; 25 Mar 2002 07:15:44 -0800 (PST)

Return-Path: <admin@MyDomaine.com>

Received: from IP_OF_mail_server (EHLO ns.MyDomaine.com) (IP_OF_mail_server) by mta572.mail.yahoo.com with SMTP; 25 Mar 2002 07:15:38 -0800 (PST)

Received: (from admin@localhost) by ns.MyDomaine.com (8.11.2/8.11.2) id g2PFF4p01329 for MyAccount@yahoo.fr; Mon, 25 Mar 2002 16:15:04 +0100

Date: Mon, 25 Mar 2002 16:15:04 +0100

De: admin@MyDomaine.com | Bloquer cette adresse | Ajouter au carnet d'adresses

Message-Id: <200203251515.g2PFF4p01329@ns.MyDomaine.com>

À: MyAccount@yahoo.fr

Objet: test06

Content-Length: 6



Why i have the world :
from admin@localhost (localhost should not appear here ?!!!!)
I am meassing some thing ????

Thanks for help ;-)
 
do this.....edit /etc/sendmail.cf and under local info - under mu official domain add one line looks like
Djyourdomain.com

restart sendmail service and send email.

belive me it works.
A
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top