help sending mail on linux server


 
Thread Tools Search this Thread
Operating Systems Linux help sending mail on linux server
# 1  
Old 01-22-2009
help sending mail on linux server

Hi,
I coded a bash script.I m trying to use this command in the script

mail -s "test" user@abc.com

I tried this command on prompt.however it hangs.I check /var/log/maillog/

stat=Deferred: Connection timed out with mail.rdmedia.com.
sendmail[14303]: n0M8lscO014303: localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA

I was emailing but since last month I couldnot.
what might be problem?

Kind Regards
# 2  
Old 01-25-2009
It may be waiting for you to type the body of the email.
Try this:
Code:
echo test | mail -s test user@abc.com

# 3  
Old 01-26-2009
Hi
I think server was blocked on the network by router or switch.
Thanks a lot.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sending mail with attachment(image) using sendmail in Linux(ksh)

Hi guys, I am trying to send a mail with below command which is working fine. $FilePath_mail have To,From and other information along with mail body which is in HTML format. I want to have image(logo) in the body. So just wanted to send it as an an attachment. /usr/sbin/sendmail -t <... (1 Reply)
Discussion started by: balakrishnaps
1 Replies

2. Shell Programming and Scripting

Issues sending emails using PostFix Mail Server

I'm unable to send email from my Linux server despite SMTP port 25 Active and Listening. # hostname TechX I checked the mail log ( /var/log/maillog ) and found the below error. I'm sharing all the ".cf" files seen in the error log. 1. # more /etc/postfix/main.cf # postfix... (0 Replies)
Discussion started by: mohtashims
0 Replies

3. Shell Programming and Scripting

Mail sending with multiple attachement(pdf and csv) with html content from Linux

Hi, We have a requirement to send multiple attachment(pdf and csv) along with html content in a single mail. For that we are using uuencode. It is working for single pdf attachment and html content. But we are unable to send both pdf and csv attachment with html content. Below is the script.... (5 Replies)
Discussion started by: dholea
5 Replies

4. Shell Programming and Scripting

php code - Sending mail with external SMTP server

Here is the code: <?php //new function function loadini($path) { $fp = fopen($path, "r"); $fpcontents = fread($fp, filesize($path)); fclose($fp); return $fpcontents; } $to = "test@test.com"; $nameto = "notme"; $from = "test"; $namefrom = "Who From"; ... (0 Replies)
Discussion started by: galford
0 Replies

5. Programming

Mail sending from VFP9 through internal postfix esmtp server.

hi all, please help me in this regard. I am VFP 9 programmer. I want to send the mail from within VFP 9 application. I have used CDO of microsoft which is working fine. however to be able to send the mail i have to setup the router gateway on user machine which enable him to surf through the... (0 Replies)
Discussion started by: choudharidl
0 Replies

6. Programming

Sending mail in C/C++ in unix server

Hi Frnds, I have a task in my project wherein i have to send out a mail from my C++ code.With some file attachements.Please help me in this. At a higher level wat i can tell is my code generated 3 csv file and i have to send these files as attachement. My code is executed in unix... (6 Replies)
Discussion started by: electroon
6 Replies

7. UNIX for Advanced & Expert Users

uuencode: command not found when sending mail in LINUX

HI all, When i run this command below i get this error: (cat /root/body.txt ; uuencode -m Summaryfile.zip) | mailx -s "completed" sandeep@help.com bash: uuencode: command not found Does anyone know why this is happening? Or is there any alternative to send mail with an... (2 Replies)
Discussion started by: bsandeep_80
2 Replies

8. UNIX for Advanced & Expert Users

sending email via mail server

hi everyone i am facing one problem. there is one unix server in our organisation which stores daily routine backup, and one mail server which is on windows 2k3, they are on one intranet. now i want that a mail should be generated and sent to the e-mail id of employees like nitin@hotmail.com... (1 Reply)
Discussion started by: parmeet
1 Replies

9. HP-UX

Sending msg From Unix Server to an E-mail Address

Dear Brothers in Unix I would like to change some HP-UX settings in order that the system send a message to root it should be copied to my e-mail address in Microsoft Exchange Server. Please can you help me. Best Regards and thanks in advance Gege (2 Replies)
Discussion started by: cgege
2 Replies

10. UNIX for Dummies Questions & Answers

block certain domain from sending mail to server

hi currently i have a server that is able to send out and receive mail. is there a way to configure the server such that mails can be sent to a certain domail like abc@yahoo.com but block mails from this domain abc@yahoo.com. the server is running on solaris 10. thanks in advance :) (2 Replies)
Discussion started by: legato
2 Replies
Login or Register to Ask a Question