|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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? |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
"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 ... |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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 ---------------------------------------------------------------------- |
|
![]() |
| Outils de la discussion | |
|
|