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 Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 09:20 AM
SMTP server-denied uwagon SUN Solaris 1 02-23-2008 11:41 AM
SCO 5.0.7 Sendmail. Need help on how to configure SMTP miles556 SCO 3 02-22-2008 10:28 PM
How to configure Suse Enterprise Linux 9.0 for sending mails to smtp server...??? jumadhiya SuSE 5 08-01-2007 07:05 AM
setting SMTP server privileges jasongr Shell Programming and Scripting 0 12-19-2005 03:33 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-09-2007
chawlaaman chawlaaman is offline
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
  #2 (permalink)  
Old 08-09-2007
porter porter is offline Forum Advisor  
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.
  #3 (permalink)  
Old 08-10-2007
sumitpandya sumitpandya is offline
Registered User
  
 

Join Date: Mar 2006
Location: Ahmedabad
Posts: 125
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
  #4 (permalink)  
Old 08-10-2007
joerg's Avatar
joerg joerg is offline
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
  #5 (permalink)  
Old 08-10-2007
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
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
  #6 (permalink)  
Old 08-10-2007
chawlaaman chawlaaman is offline
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
Closed Thread

Bookmarks

Tags
sendmail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:42 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0