Mailx command timeout Issue


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Mailx command timeout Issue
# 1  
Old 05-23-2013
Mailx command timeout Issue

Hi All,

I have a situation where we need to send out mails from our Unix server to different mailing ids inside our scripts.The mails are working fine.But we have occasional issues where we are getting time out errors from the SMTP server while sending out mails.

Command that we are using here:

Code:
( cat /tmp/body.txt
   uuencode /tmp/testfile.txt /tmp/testfile.txt) | mailx -s "Result run of the script checking the timeout issue " abc@gmail.com



Error Message:

r4A86TDJ44958032 5798072 Fri May 10 01:06 abc@gmail.com (Deferred: Connection timed out with app2-smtp-****)

I am sure there must be an option to increase the time out for the mailx command.Tried to go through the man pages but unable to find any solution.

Has anyone faced a similar issue and please help me out??

Last edited by vbe; 05-23-2013 at 07:20 PM..
# 2  
Old 05-23-2013
Most versions of mailx send through sendmail.
So you should look for sendmail.cf.
The following is needed in sendmail.cf:
Code:
O SuperSafe=True

There are also many Timeout values, but I wouldn't touch them...I would rather look for the root cause!
# 3  
Old 05-23-2013
Thanks for your reply!!!.

I found this option as well.But we work in a Shared environment and a lot of people will start shouting if we change something that impacts their process.Can we do something that I can implement at command line level rather than changing the .cf file?
# 4  
Old 05-23-2013
There is a serious problem with connection to your SMTP server.
Search for the root cause, and get it fixed!
A work-around might have drawbacks.
After reading "man sendmail" I have to add that sendmail when invoked by mailx will use submit.cf, that by defaults connects to localhost, connecting to the sendmail daemon (that uses sendmail.cf).
If your server admins modified submit.cf or sendmail.cf or decided to not run the sendmail daemon at all, they need to do the root cause analysis.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Mailx Email Issue

Hello, I am facing an issue with email in Linux. I am using mailx command to send email. When I give invalid domain address then it is taking both sender and recipient as sender email and trying to send email. Below is my command echo -e "${EMAIL_TEXT}" | mailx -v -s "${SUBJECT}" -r... (5 Replies)
Discussion started by: yuvi
5 Replies

2. Shell Programming and Scripting

Issue with Mailx command

Hi, I am trying to send an email using mailx command in Linux terminal. Though I give invalid address it is giving response as Recipient ok and sent message. My command is here. Not sure what is wrong. Can anyone please assist? echo -e 'New User'| mailx -v -s 'New User' y@gggg.com ... (1 Reply)
Discussion started by: yuvi
1 Replies

3. Shell Programming and Scripting

Mailx command issue

Hi All, Im facing a problem with sending tar file via mailx command. Your help would be much appreciated. Im trying to tar a set of CSV files in a folder using the below command tar cvf Report.tar.gz *_03172016.CSV and sending this tar file using mailx command as mentioned below ... (2 Replies)
Discussion started by: anijan
2 Replies

4. HP-UX

[SOLVED] Telnet timeout issue

I have telnet configured in /etc/inetd.conf as below: telnet stream tcp6 nowait root /usr/lbin/telnetd telnetd -b /etc/issue -n20 When i restart the service telnetd shows with only the -b option: ps -ef|grep telnetd|grep -v grep root 24397 1 0 10:42:35 pts/ta 0:00... (1 Reply)
Discussion started by: Tommyk
1 Replies

5. Shell Programming and Scripting

Mailx issue

Hi guys I am trying to send an email using mailx function and want the message body to appear on different lines. My code is : WT=`echo "Tapes are : $x Holder are : $y" ` echo $WT|mailx -s "Alert" xyx@abc.com I want to receive the email like this: Tapes are :2 Holders are... (2 Replies)
Discussion started by: Junaid Subhani
2 Replies

6. IP Networking

TFTP Server Timeout issue

Hi, I'm running CentOS 5 as guest using VMware player. My host is Windows Xp. I'm running tftp server in CentOS. I have disabled firewall in both windows and CentOS. I use two different networks with different netmasks on CentOS. I'm able to ping the Centos (tftp server) from another Linux machine... (1 Reply)
Discussion started by: suryaemlinux
1 Replies

7. 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

8. Shell Programming and Scripting

mailx issue -

Hi, I am sending mail inside my script based on various conditions. Here is the problem, when there are more than one condion at a time, the mailx adds the messages into one ( at the time of the second mail) example: inner_fn () { if ; then echo "inner function mail" | mailx... (3 Replies)
Discussion started by: shellwell
3 Replies

9. Shell Programming and Scripting

KSH script SQL timeout issue

Hi all, I have a KSH script which is kicking off an sql scripts as follows: /usr/local/installs/instantclient_10_2/sqlplus -s username/password @$sql_path/sql_query.sql > $tmp_path/sql_query_results The problem I have is that sometimes the 10g Oracle Database spits out an error saying... (4 Replies)
Discussion started by: Donkey25
4 Replies

10. Shell Programming and Scripting

SQL scripts not running, possible timeout issue?

I am a novice Unix scripter and need a little advice/help on a script I've written that's causing some problems. We are using Solaris 9 on a Sun box and the script is invoked with the korn shell. I have a two-part question: I wrote a shell script that calls and executes 3 separate sql scripts,... (3 Replies)
Discussion started by: E2004
3 Replies
Login or Register to Ask a Question

Featured Tech Videos