Sponsored Content
Operating Systems Linux Red Hat Trying to get mailx setup and running Post 302826805 by popeye on Thursday 27th of June 2013 09:50:20 AM
Old 06-27-2013
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!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

What is your setup ??

Am looking installing Red Hat 7.2 on an AMD-K6/2 PC and after realising that I can't use my space 80G HD due to BIOS restrictions (have resorted to using a 20G HD), was wondering what setup others use. If "Other" please indicate. (5 Replies)
Discussion started by: Cameron
5 Replies

2. UNIX for Dummies Questions & Answers

mailx error message : mailx: NUL changed to @

If I use the "Mail" link instead of the "mail" link to ../mailx I get this error. Mail so-n-so @whatever.com mailx: NUL changed to @ Unknown command: "postmaster" The email still goes through but i get the error. If I use "mail" it goes thru without the error. Any ideas?? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies

3. Shell Programming and Scripting

Shell running setup in Korn ?

I am starting to code a few ideas of customization and tasks improvements on the office UNIX machine. My first script (see below) only contains ALIAS commands. But for some reason, when I execute it, the alias are not executed. I suspect it is because of the "#!/bin/ksh" not being recognized or... (4 Replies)
Discussion started by: Browser_ice
4 Replies

4. UNIX for Advanced & Expert Users

How to prevent job1 from running while job2 is running..

Hi, Please I need your expert advise on how to prevent/lock from execution job1 while job2 is still running in Unix... THanks:) (3 Replies)
Discussion started by: tikang
3 Replies

5. AIX

NIM server setup on etherchannel setup environment

I know that IBM's official stance is that NIM does not work on etherchannel environment, but has anyone able to get around it? I'm working on a p5-590 LPAR system, and the NIM master and clients are all on the same frame. Any help is appreciated. (1 Reply)
Discussion started by: pdtak
1 Replies

6. Solaris

Running from Shell Vs running from RC script

Hi, i have a script which need to do behave differently when run as a startup process from init.d/ rc2.d script and when run manually from shell. How do i distinguish whether my script is run by init process or by shell?? Will the command /proc/$$/psinfo | grep "myscript" work well???... (2 Replies)
Discussion started by: vickylife
2 Replies

7. Solaris

Running setup on a new server

I have a newly built Solaris 10 server that I want to install Sun One web server. After building the server I use FTP to copy over the web server installation files into a directory I created (/usr/local/software/JES/6.1sp8). I run ./setup and get this. bash: ./setup: Permission denied I... (7 Replies)
Discussion started by: gsander
7 Replies

8. Shell Programming and Scripting

Mailx: How to send a attachment using mailx command

Hi All, Can anyone please provide the command for sending an mail with attachment using mailx command. Thanks in Advance :) Regards, Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies

9. Shell Programming and Scripting

Running Total Running Wild

Hi. A shell scripting newbie here. I am trying to write a script that will create a running total of Sales, and increment a counter for each Sales entry, but when I executed the program it never stopped. counter=0 Sales=0 echo "enter sales price" read sales while do let counter=counter+1... (6 Replies)
Discussion started by: Ccccc
6 Replies

10. HP-UX

Mailx command running successfully but no mails received.

Hi, I am working on a HP-UX box. Mailx command running successfully but no mails received. Here is what I am doing rocfm@comhp73 - mailx -s "subject" abc@gmail.com < abc.txt Null message body; hope that's ok rocfm@comhp73 - echo $? 0 rocfm@comhp73 - echo "something" | mailx -v -s... (1 Reply)
Discussion started by: Sunayna
1 Replies
SCRIPT-EMAIL(8) 					  System Administration Commands					   SCRIPT-EMAIL(8)

NAME
script-email - Amanda script to send email notifications DESCRIPTION
script-email is an Amanda script implementing the Script API. It should not be run by users directly. It sends a notification email to the addresses specified in the MAILTO property. PROPERTIES
This section lists the properties that control script-email's functionality. See amanda-scripts(7) for information on the Script API, script configuration. MAILTO List of email addresses that will receive an email on command execution. It is a multi-valued property: property "MAILTO" "amanda@domain.com" "sysadmin@domain.com" "amandauser@domain.com" EXAMPLE
In this example, script-email is scheduled to be run before the DLE, on the server. The unqualified email address amanda will be passed to the email system unchanged. The script is then attached to a dumptype, which can then be specified for any DLEs which require notification. define script-tool pre-email { comment "email me before this DLE is backed up" plugin "script-email" execute-on pre-dle-backup execute-where server property "mailto" "amanda" } define dumptype user-tar-email { user-tar script "pre-email" } SEE ALSO
amanda(8), amanda.conf(5), amanda-client.conf(5), amanda-scripts(7) The Amanda Wiki: : http://wiki.zmanda.com/ AUTHORS
Jean-Louis Martineau <martineau@zmanda.com> Zmanda, Inc. (http://www.zmanda.com) Dustin J. Mitchell <dustin@zmanda.com> Zmanda, Inc. (http://www.zmanda.com) Amanda 3.3.3 01/10/2013 SCRIPT-EMAIL(8)
All times are GMT -4. The time now is 03:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy