Trying to get mailx setup and running | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

Trying to get mailx setup and running

Red Hat


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-27-2013
popeye's Avatar
popeye popeye is offline
Registered User
 
Join Date: Mar 2008
Last Activity: 11 July 2014, 11:24 AM EDT
Posts: 84
Thanks: 16
Thanked 1 Time in 1 Post
Trying to get mailx setup and running

Ive kind of been left on my own to get things working on a production linux box. Im happy because it gives me some true admin experience. But theres alot I dont know ...

Im trying to get mailx running. I can create an email, but it never gets delivered to my external email account.

I am running
Centos 6.4 Linux

Heres what Ive done/checked so far ..


server> mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
F09841A260F* 784 Thu Jun 27 07:11:51 popeye@server.localdomain
popeye@mydomain.com

B3FF31A2476* 784 Thu Jun 27 07:09:36 popeye@server.localdomain
popeye@mydomain.com

-- 1 Kbytes in 2 Requests.

++++++++++++++++++++++++++++++

I then edit /etc/nsswitch.conf to change
hosts: files dns to hosts: files

+++++++++++++++++++++++++++++++

server> mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
B3FF31A2476 784 Thu Jun 27 07:09:36 popeye@server.localdomain
(connect to xyz.mydomain.com[10.10.10.10]:25: Connection timed out)
popeye@mydomain.com

F09841A260F 784 Thu Jun 27 07:11:51 popeye@server.localdomain
(connect to xyz.mydomain.com[10.10.10.10]:25: Connection timed out)
popeye@mydomain.com

-- 1 Kbytes in 2 Requests.

+++++++++++++++++++++++++++++++




So I guess my next two part question is

1. how can I confirm that port 25 is open on the server ?
2. how can I determine that there isnt a firewall blocking port 25 ?


Thanks!
Sponsored Links
    #2  
Old 06-27-2013
rbatte1 rbatte1 is online now Forum Staff  
Moderator
 
Join Date: Jun 2007
Last Activity: 1 August 2014, 5:22 AM EDT
Location: Lancashire, UK
Posts: 1,636
Thanks: 525
Thanked 277 Times in 248 Posts
Dear popeye,

The best test would be:-
Code:
telnet server 25

Of course, it relies on the telnet client being installed. Perhaps you can:-
Code:
nmap -p 25 server

Do either of these help?

A refusal response suggest that the server is not listening, but the firewall is allowing traffic. A timeout will be firewall rules.




Robin
Liverpool/Blackburn
UK
Sponsored Links
    #3  
Old 07-08-2013
popeye's Avatar
popeye popeye is offline
Registered User
 
Join Date: Mar 2008
Last Activity: 11 July 2014, 11:24 AM EDT
Posts: 84
Thanks: 16
Thanked 1 Time in 1 Post
Seems the firewall isnt allowing 25.

Thanks for all the help !!
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Mailx: How to send a attachment using mailx command Sriram.Vedula53 Shell Programming and Scripting 3 02-19-2010 04:12 AM
Running setup on a new server gsander Solaris 7 05-02-2009 08:43 AM
NIM server setup on etherchannel setup environment pdtak AIX 1 05-28-2008 04:54 PM
Shell running setup in Korn ? Browser_ice Shell Programming and Scripting 4 08-14-2006 08:22 PM
mailx error message : mailx: NUL changed to @ BG_JrAdmin UNIX for Dummies Questions & Answers 2 12-01-2005 09:27 AM



All times are GMT -4. The time now is 05:49 AM.