The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
BL4's SMTP Server 0.1.10 (Default branch) iBot Software Releases - RSS News 0 03-24-2008 06:20 AM
SMTP server-denied uwagon SUN Solaris 1 02-23-2008 08:41 AM
SCO 5.0.7 Sendmail. Need help on how to configure SMTP miles556 SCO 3 02-22-2008 07:28 PM
How to configure Suse Enterprise Linux 9.0 for sending mails to smtp server...??? jumadhiya Linux 5 08-01-2007 03:05 AM
setting SMTP server privileges jasongr Shell Programming and Scripting 0 12-19-2005 12:33 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-09-2007
Registered User
 

Join Date: Jul 2006
Posts: 5
Configure SMTP Server for Unix

Hi,

We had an upgrade today morning and since then mailx command is not working.
I have been told to change the DNS to use host name as smtp.companyname.com instead of the IP address.
Can someone please help me out to know where can I change this on a Unix Server.

Thanks
Aman
Reply With Quote
Forum Sponsor
  #2  
Old 08-09-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Firstly tell us what kind of UNIX box it is.

Type "uname -a" and post the results.
Reply With Quote
  #3  
Old 08-09-2007
Registered User
 

Join Date: Mar 2006
Location: Ahmedabad
Posts: 120
Make sure person has passed right message

To me it seems like a communication gap between you and person who told you to use DNS server name insteed of IP Address.

Usually DNS server IP is written in "/etc/resolv.conf"
You can aslo use "/etc/hosts" for local name resolutions
Reply With Quote
  #4  
Old 08-10-2007
joerg's Avatar
Registered User
 

Join Date: Jan 2002
Location: Germany
Posts: 167
nsswitch.conf

Hi,
if you choose DNS don't forget to change the /etc/nsswitch.conf file!
regards jeorg
Reply With Quote
  #5  
Old 08-10-2007
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
I think I should summarise on information required here.

1) Which OS are you using - uname -a
2) Which MTA are you using - i.e. sendmail/postfix
3) What does your nsswitch.conf look like - grep '^hosts' /etc/nsswitch.conf
4) What does your resolv.conf look like - cat /etc/resolv.conf (please obscure the IPs and domain name, etc.)

We cannot assist without accurate and thorough information on what your current setup is.

Cheers,
ZB
Reply With Quote
  #6  
Old 08-10-2007
Registered User
 

Join Date: Jul 2006
Posts: 5
Thanks

Thanks everyone for your help.
The problem is resolved as we went to etc/inet/hosts file and changed the ip address to the new ip address after the upgrade.
This has solved our problem temporarily but I am sure it will pop up again whenever someone changes the ip address of the smtp server.

Thanks
Aman
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
sendmail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0