The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Command line/Script to send E-mail with HTML body and binary attachment G-Man AIX 3 04-18-2007 10:30 PM
Line Count & MAil Issues Remi UNIX for Dummies Questions & Answers 3 12-02-2006 11:15 PM
command line send mail ejbrever UNIX for Dummies Questions & Answers 1 08-29-2006 08:30 PM
Mail attatchment line length brown_b UNIX for Advanced & Expert Users 5 11-05-2003 11:56 AM
E-Mail from command line for UNIX and Perl?? jy2728 Shell Programming and Scripting 4 11-26-2002 05:02 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-05-2008
VijayakumarN VijayakumarN is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 6
Quote:
Originally Posted by era View Post
Does "it didn't worked" mean you got command not found or that it looked like it sent a message, but you never received it? You really need to be a bit more specific.

(Annihilannic: it's Mail Transport Agent fwiw.)
What operating system are you using exactly? - " Fedora 8 "

I'm using mutt for sending a mail with attachment. It doesn't gave any error and also the message is not yet recieved.

" mutt -s "hi subject" mail_id@sample.com -a sample.pdf < message_mail.txt "

the message_mail.txt contain the boby of the mail
  #2 (permalink)  
Old 09-05-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
If you telnet localhost 25 do you get a greeting banner identifying your MTA? (Type quit and press enter to terminate.)

Does mailq -v print anything?
  #3 (permalink)  
Old 09-07-2008
VijayakumarN VijayakumarN is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 6
hi
This is message i got when i tried with the telnet
[root@home ~]# telnet localhost 25
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
[root@home ~]#
  #4 (permalink)  
Old 09-07-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
Quote:
Originally Posted by era View Post
Does mailq -v print anything?
You forgot to answer this one.
  #5 (permalink)  
Old 09-10-2008
VijayakumarN VijayakumarN is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 6
hi era

I apologize for my poor response.

Here is the message which i got in with mailq -v
/var/spool/mqueue (13 requests)
-----Q-ID----- --Size-- -Priority- ---Q-Time--- --------Sender/Recipient--------
m7C3q2oI020832 2789 1022684 Aug 12 09:22 MAILER-DAEMON
(host map: lookup (fedoratest): deferred)
<root@fedoratest>
m7BNq2oI020408 2841 1382874 Aug 12 05:22 MAILER-DAEMON
(host map: lookup (fedoratest): deferred)
<root@fedoratest>
m7BMvjoH020313 883 1471464+Aug 12 04:28 <root@fedoratest>
(host map: lookup (fedoratest): deferred)
<root@fedoratest>
m7B3q2pp017778 2789 3182684 Aug 11 09:22 MAILER-DAEMON
(host map: lookup (fedoratest): deferred)
<root@fedoratest>
m7ANq2pp017354 3489 3543522 Aug 11 05:22 MAILER-DAEMON
(host map: lookup (fedoratest): deferred)
<root@fedoratest>
m7AMvjpo017259 883 3631464+Aug 11 04:28 <root@fedoratest>
(host map: lookup (fedoratest): deferred)
<root@fedoratest>
m7A8q2pn015286 2436 4892476 Aug 10 14:22 MAILER-DAEMON
(host map: lookup (fedoratest): deferred)
<root@fedoratest>
m7A3q2pn014756 2957 5342852 Aug 10 09:22 MAILER-DAEMON
(host map: lookup (fedoratest): deferred)
<root@fedoratest>
m79Mvkpm008828 1051 5791632+Aug 10 04:28 <root@fedoratest>
(host map: lookup (fedoratest): deferred)
<root@fedoratest>
m793q2Aw006186 3710 7503608 Aug 9 09:22 MAILER-DAEMON
(host map: lookup (fedoratest): deferred)
<root@fedoratest>
m78MvkAv005667 1809 7952389+Aug 9 04:28 <root@fedoratest>
(host map: lookup (fedoratest): deferred)
<root@fedoratest>
m78Cq25l004093 3637 8853542 Aug 8 18:22 MAILER-DAEMON
(host map: lookup (fedoratest): deferred)
<root@fedoratest>
m788OZ5k003617 1944 9302316+Aug 8 13:54 <root@fedoratest>
(host map: lookup (fedoratest): deferred)
<root@fedoratest>
Total requests: 13
  #6 (permalink)  
Old 09-10-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
It can't find a host named fedoratest and so can't deliver to it.

Can you resolve it from the command line? Look into /etc/resolv.conf and related stuff. If it's a local, static host, maybe you just want to put its IP address in /etc/hosts
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




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


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0