PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > comp.mail.sendmail > Re: localhost.localdomain in message headers
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

Re: localhost.localdomain in message headers

Réponse
 
LinkBack Outils de la discussion
Vieux 05/09/2006, 17h13   #1
zburnham@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: localhost.localdomain in message headers

Alton Yu wrote:
> zburnham@gmail.com wrote:
> > Mail that I'm sending from a local machine is having its messages
> > heavily filtered due to the appearance of localhost.localdomain in the
> > headers, like so:
> >
> > Received: from localhost (localhost [127.0.0.1])
> > by my.isp.com (Postfix) with SMTP id 27EA22BA82
> > for <user@my.isp.com>; Wed, 30 Aug 2006 16:58:28 -0400
> > (EDT)
> >
> > then later on
> >
> > Received: from dev.gspx.com (unknown [70.91.140.234])
> > by my.isp.com (Postfix) with ESMTP id D4C132BA3F
> > for <user@my.isp.com>; Wed, 30 Aug 2006 16:58:27 -0400
> > (EDT)
> > Received: from localmachine.mydomain.tld (localhost.localdomain
> > [127.0.0.1])
> > by localmachine.mydomain.tld (8.13.7/8.13.7) with ESMTP id
> > k7UL5mcg030013
> > for <user@my.isp.com>; Wed, 30 Aug 2006 17:05:48 -0400
> > Received: (from myusername@localhost)
> > by localmachine.mydomain.tld (8.13.7/8.13.7/Submit) id
> > k7UL5mF8030012
> > for user@my.isp.com; Wed, 30 Aug 2006 17:05:48 -0400
> >
> > In searching the archives I've seen that localhost.localdomain issues
> > can be caused by an improperly configured /etc/hosts. My /etc/hosts
> > now looks like this (the above headers came from a message sent when
> > localhost.localdomain was still in the 127.0.0.1 line):
> >
> > # Do not remove the following line, or various programs
> > # that require network functionality will fail.
> > 127.0.0.1 localhost
> > 10.1.10.140 localmachine.mydomain.tld localmachine
> >
> > This machine sits behind a NAT router which is assigned a static IP.
> > There is an A record set up in DNS to point to the IP assigned to the
> > router, represented here by "localmachine.mydomain.tld".
> >
> > Sendmail can see the domain name, as attested to by the following:
> >
> > $ sendmail -bt -d0 </dev/null
> > Version 8.13.7
> > Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
> > MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET
> > NETINET6
> > NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP
> > STARTTLS
> > TCPWRAPPERS USERDB USE_LDAP_INIT
> >
> > ============ SYSTEM IDENTITY (after readcf) ============
> > (short domain name) $w = localmachine
> > (canonical domain name) $j = localmachine.mydomain.tld
> > (subdomain name) $m = mydomain.tld
> > (node name) $k = localmachine.mydomain.tld
> > ================================================== ======
> >
> > I'm a real newbie when it comes to sendmail, so any would be
> > greatly appreciated.
> >

>
> It's just what's set in your /etc/hosts file.


What is what's set in my /etc/hosts?

I'm sorry I don't understand. Should I not have an entry for
localhost.localdomain? Should I modify what is in there? Should I put
my router's external IP in /etc/hosts as well?

  Réponse avec citation
Vieux 05/09/2006, 17h24   #2
J.O. Aho
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: localhost.localdomain in message headers

zburnham@gmail.com wrote:
> Alton Yu wrote:


>>> I'm a real newbie when it comes to sendmail, so any would be
>>> greatly appreciated.
>>>

>> It's just what's set in your /etc/hosts file.

>
> What is what's set in my /etc/hosts?


cat /etc/hosts
and post the result here

> I'm sorry I don't understand. Should I not have an entry for
> localhost.localdomain?


Of course you should.


//Aho
  Réponse avec citation
Vieux 05/09/2006, 19h25   #3
Evil Otto
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: localhost.localdomain in message headers


J.O. Aho wrote:
> zburnham@gmail.com wrote:
> > Alton Yu wrote:

>
> >>> I'm a real newbie when it comes to sendmail, so any would be
> >>> greatly appreciated.
> >>>
> >> It's just what's set in your /etc/hosts file.

> >
> > What is what's set in my /etc/hosts?

>
> cat /etc/hosts
> and post the result here
>
> > I'm sorry I don't understand. Should I not have an entry for
> > localhost.localdomain?

>
> Of course you should.
>
>
> //Aho


$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
10.1.10.140 localmachine.domain.tld localmachine

Obviously obfuscated. The machine is behind a NAT router and does not
contact the Internet correctly.

  Réponse avec citation
Vieux 06/09/2006, 09h35   #4
Kari Hurtta
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: localhost.localdomain in message headers

"J.O. Aho" <user@example.net> writes:

> > I'm sorry I don't understand. Should I not have an entry for
> > localhost.localdomain?

>
> Of course you should.


Well traditionally

127.0.0.1 is localhost NOT localhost.localdomain

Only linux puts localhost.localdomain on here ...

  Réponse avec citation
Vieux 06/09/2006, 15h44   #5
Sylvain Robitaille
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: localhost.localdomain in message headers

Kari Hurtta wrote:

> 127.0.0.1 is localhost NOT localhost.localdomain
> Only linux puts localhost.localdomain on here ...


I would make a point to specify that only some Linux distributions use
"localhost.localdomain"; not all do. (Slackware doesn't.) (admittedly
not relevant to the topic ...)

--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca

Systems and Network analyst Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h00.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11029 seconds with 13 queries