LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-29-2004, 05:29 AM   #1
MattiasLofgren
LQ Newbie
 
Registered: Jun 2004
Posts: 3

Rep: Reputation: 0
Host lookup failure with Sendmail


hi,

I have a problem with sending mail from my fileserver (named Arkiv, for LAN access only) to my mailserver (named Post, in a DMZ). I basically only want to do this to aggregate my logcheck, etc mails in one mailbox, that is also accessible from the outside.

The fileserver is separated from the mailserver by a firewall where only sendmail connections orginating from the fileserver are allowed through (as well as ssh). The fileserver is not allowed any direct contact with the Internet.

Sending mail locally between users on the fileserver works fine and when I try to "telnet post 25" to the mailserver I can manually send mail through.

The problems start when I try to send an mail in any other way between the boxes. I then get the message accepted for delivery but then the host name resolve fails for some reason.

In var/log/maillog the attemted mail submission looks like this:

Sep 29 12:18:43 arkiv sendmail[26048]: i8TAGgrX026048: from=<root@arkiv.comba-telecom.se>, size=243, class=0, nrcpts=1, msgid=<Pine.LNX.4.58.0409291216310.26047@arkiv.comba-telecom.se>, proto=ESMTP, relay=root@localhost

Sep 29 12:18:43 arkiv sm-mta[26051]: i8TAIh3h026051: from=<root@arkiv.comba-telecom.se>, size=436, class=0, nrcpts=1, msgid=<Pine.LNX.4.58.0409291216310.26047@arkiv.comba-telecom.se>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]

Sep 29 12:18:43 arkiv sm-mta[26053]: i8TAIh3h026051: to=<mattias@post.comba-telecom.se>, ctladdr=<root@arkiv.comba-telecom.se> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=30436, relay=post.comba-telecom.se., dsn=4.0.0, stat=Deferred: Name server: post.comba-telecom.se.: host name lookup failure

Sep 29 12:18:43 arkiv sendmail[26050]: i8TAGgrX026048: to=<mattias@post>, ctladdr=<root@arkiv.comba-telecom.se> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30243, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (i8TAIh3h026051 Message accepted for delivery)

Since I use my ISPs DNS, I have used /etc/hosts as a DNS for my system so far with no problem. I have not run into problems with resolving the relationship with Arkiv and Post before.

The /etc/hosts file looks like this

# For loopbacking.
127.0.0.1 localhost
192.168.11.101 arkiv.comba-telecom.se arkiv
192.168.12.2 post.comba-telecom.se post
192.168.1.1 grind.comba-telecom.se grind
# End of hosts.


I'm using the standard sendmail.cf and submit.cf on a Slackware 9.1 platform.

Any help is appreciated.

regards,
Mattias
 
Old 09-30-2004, 07:52 AM   #2
sh0
LQ Newbie
 
Registered: Nov 2003
Location: Germany
Distribution: Slackware 7.0 - 10.0
Posts: 26

Rep: Reputation: 15
Looks like you need a MX entry for your mail server as long as you use ISP DNS it won't work sorry.
 
Old 09-30-2004, 08:15 AM   #3
wes103
LQ Newbie
 
Registered: Sep 2004
Location: Eastern Pennsylvania, US
Distribution: Slackware
Posts: 21

Rep: Reputation: 15
Take a look at this and see if it helps you:

http://davespicks.com/writing/progra...upfailure.html

In particular, run that dig command on your arkiv system and see what it turns up.

Oh, and as the author says, his mailertable fix only solves the problem locally, but that might be all you need.

-Bill
 
Old 09-30-2004, 09:47 AM   #4
MattiasLofgren
LQ Newbie
 
Registered: Jun 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the help!

It solved the problem. Although it takes sometime for the mailsubmission to go through (approx 30s). I'm assuming it tries to resolve for an MX record before giving up and submitting anyway...

Is this to be the way to get sendmail to work between computers on a network without having to set up a fully fledged DNS service with MX records, etc. Or is there an alternative solution?

/mattias

Last edited by MattiasLofgren; 09-30-2004 at 10:36 AM.
 
Old 05-14-2009, 03:00 PM   #5
mirader9813
LQ Newbie
 
Registered: May 2009
Location: Seattle, Wa.
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
Should this mailertable contain the host I am using? or the host that keeps bouncing mail back with Hostname lookup failure? I have about 6 ip's that bounce mail back with either hostname lookup failure, or Timeout exceeded. All other ip's can send mail just fine. I use sendmail on slackware 12.2 and earthlink and netcom.com as well as mindspring.com keep bouncing my mail back with these errors. I run through a motorola router (DSL) and just can't seem to figure out how to send email to these certain ip's. They can send email into me, but I can't send to them. Is there anything I can do to fix this?

Last edited by mirader9813; 05-14-2009 at 03:08 PM. Reason: add more info
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Telnet : Temporary failure in name resolution : Host name lookup failure koodoo Linux - Newbie 10 02-11-2008 07:59 PM
Host name lookup failure mauroblanc Linux - Networking 2 06-16-2005 02:09 PM
DHCP: Host name lookup failure kaloyer *BSD 2 07-08-2004 11:01 AM
sendmail: host name lookup failure GabeF Linux - Networking 3 12-04-2002 08:00 AM
getting an error 0.0.0.0:Host name lookup failure udayan Programming 2 08-22-2002 11:23 PM


All times are GMT -5. The time now is 04:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration