Sending mail in the dead.letter file


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Sending mail in the dead.letter file
# 1  
Sending mail in the dead.letter file

Sorry for this one ladies and gents, it's probably very easy but I don't know how to, sound familiar :-)

I'm using sendmail on a web server that sends some mail through forms, not many.

I've got sendmail configured to use our networks relay host and everything was working well.

The power went off on the weekend, and when I came in I noticed that all mail was bouncing, the reason being that I hadn't configured the networking settings properly and the FQDN of the web server was not being recognised by the mail server and not allowing the mail to go through it.

I've sorted that out now, and I can send mail through the relay again.

Question is how do I send the emails that are in the dead.letter file?

mailq is empty

:-(

Any help or tips will be gratly appreciated.
# 2  
dead.letter is the result when the message could not even enter the mail queue.

Personally I would simply alert the users to this problem and suggest they review their dead.letter files for messages they really want to send. Chances are there are duplicates and triplicates which they were sending while you were wondering what was up with the mail.

I guess dead.letter is a standard mbox file so the formail manual (if you have that) should be helpful.
era
# 3  
If i do not want any of the email - can i just simply delete the dead letter file from the directory?
# 4  
Yes, you can delete it if you don't want to keep it. It's basically just a mechanism for recovering lost messages in case there was a bug in the mail software or something. It will probably reappear if you use buggy mail software, but at least now you know what it's for.
# 5  
Thanks - will delete it and save disk space!
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #848
Difficulty: Medium
The IEEE standardized Bluetooth as IEEE 802.15.1, but IEEE no longer maintains the Bluetooth standard.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Reading a file and sending mail by shell scripting?

hi I need help urgently...i need to write a shell script which can solve the following problem....its urgent plz help me out coz m totally newbie in shell scripting.... the problem is: Suppose I have a folder called logs. whenever some error occurs some correspondence error file is generated. I... (4 Replies)
Discussion started by: sukhdip
4 Replies

2. Emergency UNIX and Linux Support

Send mail from dead.letter

Hi, Can someone pls tell me how do i mail the contents of my dead.letter to my mail id. The problem is that the content is a multi-part message in MIME format. How do i get the original message mailed to me. i used uuencode, but that does not work, says "uuencode not found" Any help... (7 Replies)
Discussion started by: raghu_shekar
7 Replies

3. Shell Programming and Scripting

mailx -s not sending the file to mail address

Hi All, OS:Red Hat Linux 4 86x64 Below is my shell script which is not sending mail to the mail recipient: #!/bin/bash export MAILLIST="xyz@yahoo.com" cd <path_to_the_script_perf_report.sql> sqlplus / as sysdba @perf_report.sql if then cat <path_to_the_script/*MONTHLY*REPORT*.lst... (6 Replies)
Discussion started by: a1_win
6 Replies

4. Shell Programming and Scripting

Sending email message in colour and bold letter

The code echo -e "\033[34m Test \033[0m Mail" when i execute this command line i get proper output but when i mail the output of this command through sendmail it doesn't appear. Basically I want to send email message in diffrent colours, bold letter using shell script. (2 Replies)
Discussion started by: baps
2 Replies

5. Shell Programming and Scripting

dead.letter issue

Hi, I have created a script that has some sql queries in it. It seem to work fine and e-mails me the output file but when i use this command 'col email format a20' it creates a dead.letter file and i never get the e-mail I am using mailx -s command to send out the e-mail. Any help would... (0 Replies)
Discussion started by: shawnk
0 Replies

6. UNIX for Advanced & Expert Users

Reading a file and sending mail based on content of the file

Hi Gurus, I am having an requirement. i have to read a list file which contains file names and send mail to different users based on the files in the list file. eg. if file a.txt exists then send a mail to a@a.com simillary for b.txt,c.txt etc. Thanks for your help, Nimu (6 Replies)
Discussion started by: nimu1979
6 Replies

7. Shell Programming and Scripting

what is dead.letter ??

Hi all can you please help me what is dead.letter file ? when it is created ? for the first time i have seen this file getting created in my current directory? I am using SunOs. Any IDEA ?? (2 Replies)
Discussion started by: jambesh
2 Replies

8. UNIX for Dummies Questions & Answers

spooled file getting distorted when sending through unix mail

Hi Folks, I'm spooling a file through sqlplus and sending using mailx but the output got distorted in MS-outlook. Thanks in advance (2 Replies)
Discussion started by: chgopi
2 Replies

9. Shell Programming and Scripting

Need to attach a txt file while sending mail

Hi, I need to attach a txt file while sending mail thru Unix. Please help me out in this.. -Charan. (9 Replies)
Discussion started by: charan81
9 Replies

10. UNIX for Dummies Questions & Answers

dead.letter

HI, I am pretty new to Unix...but here is 1 serious problem...atleast for me..:-) now..the dead.letter file in /var/tmp has been growin continuously..n i dont know why..I ve even killed the sendmail process..but the dead.letter file keeps on increasin..Can anyone tell me where do I start... (6 Replies)
Discussion started by: unisam
6 Replies

Featured Tech Videos