Configure SMTP Server for Unix


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Configure SMTP Server for Unix
# 1  
Old 08-09-2007
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  
Old 08-09-2007
Firstly tell us what kind of UNIX box it is.

Type "uname -a" and post the results.
# 3  
Old 08-10-2007
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  
Old 08-10-2007
nsswitch.conf

Hi,
if you choose DNS don't forget to change the /etc/nsswitch.conf file!
regards jeorg
# 5  
Old 08-10-2007
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  
Old 08-10-2007
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Configure sendmail with SMTP

Hello, I'm trying to configure sendmail with SMTP authentication on a SunOS 5.11 operating system. I have been read various documentation / tutorials and unfortunately is not working. I need help from someone who has configured smtp on this operating system. When I try to send a mail, I have... (2 Replies)
Discussion started by: d4rkm4nx99
2 Replies

2. Solaris

Configure network in unix with dynamic ip on my DHCP server?

can anyone tell me how can i configure network in unix with dynamic ip on my DHCP server?? (7 Replies)
Discussion started by: Reham.Donia
7 Replies

3. UNIX for Dummies Questions & Answers

Can't configure sendmail to send mails to external SMTP Server

Hi all,I know, that this is very common issue, but I can't find where is the problem... I have Solaris 10 installed.I want to send mail to external SMTP server, like:echo "letter body"| mailx -s "subject" test@test.comBut I donno what kind of changes I have to do in /etc/hosts and sendmail.cf or... (5 Replies)
Discussion started by: nypreH
5 Replies

4. UNIX for Dummies Questions & Answers

how to check SMTP server details on Unix

Hi All, I am trying to figure out how to check SMTP server details on Unix enviornment? I tried using echo "hello" | sendmail -v abc@xyz.com and got following error: -bash: sendmail: command not found -bash: echo: write error: Broken pipe Any help will be much appreciated regarding... (2 Replies)
Discussion started by: palak08
2 Replies

5. Fedora

How to setup an smtp server on a UNIX machine !!!

How to setup an smtp server on a unix-based machine. For example ubuntu, mac os x, fedora. (4 Replies)
Discussion started by: 14opsrc
4 Replies

6. Linux

Configure SMTP service in linux 5.2

Hi All, How to configure SMTP service in linux 5.2? Please provide me the steps. Thanks Jack (5 Replies)
Discussion started by: jack00423
5 Replies

7. IP Networking

Configure router to allow smtp traffic

Hello all, I have installed ubuntu hardy and for some testing I have configured sendmail on it. I have a router facing the internet and I am having hard time configuring the router to allow traffic on port 25 to my server. I have a BCM96338 ADSL Router. I have set iptable rules to allow the... (0 Replies)
Discussion started by: h3llh0l3
0 Replies

8. UNIX for Advanced & Expert Users

How to configure Linux box with my SMTP mail server

Hi all, I need to send mail to a particular email id using a local mail server.This mail shall contain the content of a file. I don't have any idea how to do it. Can anyone guide me ,where to start proceeding for it. Any guide or study material would appreciated. (1 Reply)
Discussion started by: amit_kv1983
1 Replies

9. SCO

SCO 5.0.7 Sendmail. Need help on how to configure SMTP

Did anyone know or can provide some instructions on how to setup smtp for sendmail. All I need to do is email files from sco thru my ISP smtp provider. please help (3 Replies)
Discussion started by: miles556
3 Replies

10. SuSE

How to configure Suse Enterprise Linux 9.0 for sending mails to smtp server...???

Hi All, I have a system running with Suse Enterprise Linux 9.0. xyz# uname -a Linux xyz 2.4.21-291-smp #1 SMP Tue May 24 14:07:45 UTC 2005 i686 unknown I would like to configure postfix on this system for sending mails as a root user using "mail" command to smtp server (Windows System)... (5 Replies)
Discussion started by: jumadhiya
5 Replies
Login or Register to Ask a Question