Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to Troubleshoot the mail sending problem? Post 302917904 by kannansoft1985 on Friday 19th of September 2014 07:23:40 AM
Old 09-19-2014
How to Troubleshoot the mail sending problem?

I am trying to send a mail through terminal from last week still now I can't able to send it.If there is any resolution Please help me out of this problem.It is very urgent .

mail -s "check" upload.xxx@example.com < /root/mail.txt
Code:
 [root@edms032 ~]# tail -15 /var/log/maillog
  Sep 19 16:52:04 edms032 sendmail[12616]: My unqualified host name (edms032) unknown; sleeping for retry
  Sep 19 16:52:28 edms032 sendmail[12624]: My unqualified host name (edms032) unknown; sleeping for retry
  Sep 19 16:52:36 edms032 sendmail[12604]: unable to qualify my own domain name (edms032) -- using short name
  Sep 19 16:53:24 edms032 sendmail[12616]: unable to qualify my own domain name (edms032) -- using short name
  Sep 19 16:53:41 edms032 sendmail[12643]: My unqualified host name (edms032) unknown; sleeping for retry
  Sep 19 16:53:48 edms032 sendmail[12624]: unable to qualify my own domain name (edms032) -- using short name
  Sep 19 16:53:56 edms032 sendmail[12604]: s8JBMaZP012604: from=root, size=58, class=0, nrcpts=1, msgid=<201409191122.s8JBMaZP012604@edms032>, relay=root@localhost
  Sep 19 16:53:56 edms032 sendmail[12604]: s8JBMaZP012604: to=upload.tirunelveli@licindia.com, delay=00:01:20, mailer=esmtp, pri=30058, dsn=4.4.3, stat=queued
  Sep 19 16:54:44 edms032 sendmail[12616]: s8JBNOuJ012616: from=root, size=73, class=0, nrcpts=1, msgid=<201409191123.s8JBNOuJ012616@edms032>, relay=root@localhost
  Sep 19 16:54:44 edms032 sendmail[12616]: s8JBNOuJ012616: to=upload.tirunelveli@licindia.com, delay=00:01:20, mailer=esmtp, pri=30073, dsn=4.4.3, stat=queued
  Sep 19 16:55:01 edms032 sendmail[12643]: unable to qualify my own domain name (edms032) -- using short name
  Sep 19 16:55:08 edms032 sendmail[12624]: s8JBNm1s012624: from=root, size=75, class=0, nrcpts=1, msgid=<201409191123.s8JBNm1s012624@edms032>, relay=root@localhost
  Sep 19 16:55:08 edms032 sendmail[12624]: s8JBNm1s012624: to=upload.tirunelveli@licindia.com, delay=00:01:20, mailer=esmtp, pri=30075, dsn=4.4.3, stat=queued
  Sep 19 16:56:21 edms032 sendmail[12643]: s8JBP1JT012643: from=root, size=60, class=0, nrcpts=2, msgid=<201409191125.s8JBP1JT012643@edms032>, relay=root@localhost
  Sep 19 16:56:21 edms032 sendmail[12643]: s8JBP1JT012643: to=eof, ctladdr=root (0/0), delay=00:01:20, xdelay=00:00:00, mailer=relay, pri=60060, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

I have a problem in sending mail

Hi, I have a problem in sending mail ...... #!/usr/bin/perl -w $file_length = `cat file.txt | wc -l`; if ( $file_length == 0) {} else { `mail -s "Tool" <mymailid> < file.txt`; } Eventhough i have used `uuencode Mailfile$App_Server$line | mail <mymailid>`;... (1 Reply)
Discussion started by: vijaysabari
1 Replies

2. UNIX for Advanced & Expert Users

I have a problem in sending mail

Hi, I have a problem in sending mail ...... #!/usr/bin/perl -w $file_length = `cat file.txt | wc -l`; if ( $file_length == 0) {} else { `mail -s "Tool" <mymailid> < file.txt`; } Eventhough i have used `uuencode Mailfile$App_Server$line | mail <mymailid>`;... (2 Replies)
Discussion started by: vijaysabari
2 Replies

3. Shell Programming and Scripting

problem sending mail to outlook

i'm a avid fan of making the output of my scripts look pretty. so as a result i put in my scripts a lot of lines that are formed by either ****** or ======= now, outlook seems to have a problem with that. it always removes something that it calls "line breakers" from the emails my scripts send... (5 Replies)
Discussion started by: Terrible
5 Replies

4. UNIX for Advanced & Expert Users

Problem while sending mail with attachements

Hi All, I am using mailx command in shell script to send mail with output files as attachment to my email id. When my colleague is running the shell script (script code mentioned below), he is getting the mail but without attachment. Attachment is appeared as junk characters in mail... (4 Replies)
Discussion started by: nishant_pathak_
4 Replies

5. AIX

Problem sending mail

Everytime i try sending mails using the command line have a reply form the daemon saying : ? 1 Message 1: From MAILER-DAEMON Wed Apr 25 10:42:36 2007 Date: Wed, 25 Apr 2007 10:42:36 -0500 From: Mail Delivery Subsystem <MAILER-DAEMON> To: malarie MIME-Version: 1.0 Content-Type:... (0 Replies)
Discussion started by: Netghost
0 Replies

6. UNIX for Dummies Questions & Answers

Problem with sending E-Mail

Im having trouble with sending a file with attachment. The attach file wasn't sent to to the recepient. We tested this manually and it works but with the script it doesn't work. I'm thinking there is a problem with the script. Here is the code: mailto=`/dir/dir2/dir3/GET_EMAIL_ADDR.sh... (9 Replies)
Discussion started by: Iq_zero
9 Replies

7. Shell Programming and Scripting

problem in sending mail to a group

I am calling a unix script in oracle to send a mail to outlook group using mailx. The cmd looks like this: mailx -s "AA_BBB_" APPostServices@xyz.com APPostServices@xyz.com isa group but the mail is not sent but when i send mail to another group it works fine. What are the things that i... (1 Reply)
Discussion started by: petervuksich
1 Replies

8. UNIX for Advanced & Expert Users

problem in sending mail to a group

I am calling a unix script in oracle to send a mail to outlook group using mailx. The cmd looks like this: mailx -s "AA_BBB_" APPostServices@xyz.com APPostServices@xyz.com isa group but the mail is not sent but when i send mail to another group it works fine. What are the things that i... (1 Reply)
Discussion started by: petervuksich
1 Replies

9. Shell Programming and Scripting

Problem in Sending mail as an attachment

Hi, I need to send a email as a txt file and i used the commands, (echo `echo $EMAIL_MSG` ; uuencode "file.txt" "file.txt" ) | mailx -s "$EMAIL_SUBJECT" "$EMAIL_ID" I received email with a attachment with all data but i get all of them in one row. For example: If file.txt contains value... (1 Reply)
Discussion started by: skcvasanth
1 Replies

10. Shell Programming and Scripting

Problem in sending mail with attachment

Hi Team, I have written the following code snippet to send mail with attachment to recipient. But I am getting mail with attachment. But the file is empty. All the 3 Attachment* size is more than 80KB. Not sure what is wrong in the command. MSG_BODY1="hi" LOG_FILE="a/b/c/log1.log"... (2 Replies)
Discussion started by: kmanivan82
2 Replies
from(1B)					     SunOS/BSD Compatibility Package Commands						  from(1B)

NAME
from - display the sender and date of newly-arrived mail messages SYNOPSIS
/usr/ucb/from [-s sender] [username] DESCRIPTION
The from utility prints out the mail header lines in your mailbox file to show you who your mail is from. If username is specified, user- name's mailbox is examined instead of your own. OPTIONS
The following option is supported: -s sender Only display headers for mail sent by sender. USAGE
See largefile(5) for the description of the behavior of from when encountering files greater than or equal to 2 Gbyte ( 2^31 bytes). FILES
/var/mail/* ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWscpu | +-----------------------------+-----------------------------+ SEE ALSO
biff(1B), mail(1B), attributes(5), largefile(5) SunOS 5.11 28 Jan 2004 from(1B)
All times are GMT -4. The time now is 12:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy