LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-07-2009, 11:24 AM   #1
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221

Rep: Reputation: 31
Sendmail not working because of absence of DNS Server


Folks,

I am trying to send a mail through sendmail to a remote machine.

"MSP" & "MTA" programs are running on both the local and the remote machine. Also I am being able to send the mail locally.

Sending mail on to remote machine is showing following message in "/var/log/maillog"

Quote:
Feb 7 22:45:49 station6 sendmail[7061]: n17Fx1en002609: to=<root@station5.cosec.com>, ctladdr=<root@station6.cosec.com> (0/0), delay=01:16:48, xdelay=00:00:00, mailer=esmtp, pri=390334, relay=station5.cosec.com., dsn=4.0.0, stat=Deferred: Name server: station5.cosec.com.: host name lookup failure
/etc/hosts file is properly configured and so as the /etc/nsswitch

My question to all:
Has anybody ever configured Sendmail to send the email remotely without configuring DNS?

Little Googly shows it can't be done:
http://linuxgazette.net/issue31/tag_maildns.html
 
Old 02-07-2009, 04:49 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,167
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
I haven't test it but it may work if you want to send email to just one box.
You can define that box as a smarthost to your sendmail, so any non local mail will be forwarded to that smarthost. At smarthost the mail is local so it gets delivered to the mailboxes. Please note that the IP of the remote box should be enclosed in brackets:
Code:
DS[1.2.3.4]
 
  


Reply



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
why my DNS server is not working?? rajronju Linux - Newbie 2 01-18-2008 01:21 PM
Sendmail Relay server no longer working. PLEASE HELP! Hotchips Linux - Server 11 05-18-2007 05:05 AM
dns with 2 sendmail server probelm !!! ravi_foru Linux - Networking 0 07-01-2005 12:08 PM
DNS Server not working on Linux Router Trano Linux - Networking 5 04-21-2005 01:41 PM
DNS from DHCP server not working mikegorb Linux - Networking 1 10-25-2004 03:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:51 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration