LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 10-16-2008, 11:38 AM   #1
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 36
Configuring sendmail to use an external STMP server (I don't understand some magic)


Hi.

I have a server (server0.devel.mydomain.com) and I wanted its sendmail to send mail to our ISP MTA (mail.mydomain.com). Looking in internet and in some other LQ threads I understand that I can do this by using the smart host (DS) configuration parameter. I expected indeed a failure before modifying sendmail.cf.

With my surprise, using mailx to send a test message to myuser@gmail.com, sendmail sent the message successfully and I don't understand the magic because the DS configuration parameter was still empty on sendmail.cf.

First thing: the domainname command shows devel.mydomain.com and I don't understand exactly where it's set. There's no /etc/defaultdomain, correctly because I assume it's just for NIS(+). /etc/hosts is:
Code:
#/etc/hosts
[...]
192.168.1.50 server0 server0.devel.mydomain.com loghost
[...]

#/etc/nsswitch.conf
[...]
hosts    files dns
ipnodes  files dns
[...]
and then there's DNS running on server0 with an entry for server0 in domain devel.mydomain.com. So, which one of this is setting domain to devel.mydomain.com?

Last thing: knowing that the machine says that it's domain is devel.mydomain.com, how and why did sendmail (with an empty DS) decided to relay to mail.mydomain.com:25?

EDIT: I noticed that IP address of mail.mydomain.com and mydomain.com are the same.

Thanks in advance for pointers to some explanation.
Enrico

Last edited by crisostomo_enrico; 10-16-2008 at 07:22 PM.
 
Old 10-17-2008, 06:06 AM   #2
stuart_cherrington
Member
 
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228

Rep: Reputation: 36
On MX Records:

It comes down to MX (Mail eXchanger) records in your DNS.

Can't remember the exact syntax, but if you run nslookup/dig you can look for MX servers in your local domain and this is what Sendmail did.

SmartHosts are basically hosts are virtual IP/hostnames for several MX servers. I.e. SmartHost mail0.domain.com mayhave mail1.domain.com and mail2.mydom.com as its MX servers, this way if mail0 goes down, mail1 keeps on serving.

I Think (Don't quote me) that the Domain name settings are retrieved from DNS as well now. the /etc/domainname file is usually blank on Sol8 and above hosts, mainly becuase many companies now run one host in multiple domains and this file just confuses the poor thing!

Stuart.
 
Old 10-19-2008, 01:24 PM   #3
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Original Poster
Rep: Reputation: 36
Thanks for your information, stuart_cherrington.
Domain name seems to come from DNS configuration, indeed.

Bye,
Enrico.
 
  


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
Configuring sendmail on a non-domain server ajatiti Linux - Enterprise 4 12-07-2007 08:57 AM
Configuring sendmail for mail forwarding to server Yalla-One Slackware 16 11-02-2007 06:27 PM
configuring sendmail for external users spiderman59 Linux - Networking 3 07-06-2006 03:12 AM
sendmail and external mail server levand Linux - Networking 10 12-17-2004 09:45 AM
configuring sendmail to use external mail servers tt826 Linux - Networking 42 12-05-2003 11:13 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:57 AM.

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