Mail delivered successfully?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Mail delivered successfully?
# 1  
Old 08-22-2006
Mail delivered successfully?

Hi
Is there any way I can know whether my mail has been delivered successfully or not....?
I am using a shellscript which configures the header and the message body and also includes configurations for attachments. I use 'sendmail' to send the mails....
I have to resend the failed emails after 24 hrs again to my client as a reminder...How do I get to know which emails bounced back ?? and How do I resend them again ?

Thanks
Amruta Pitkar
# 2  
Old 08-22-2006
Quote:
Originally Posted by Amruta Pitkar
Hi
Is there any way I can know whether my mail has been delivered successfully or not....?
I am using a shellscript which configures the header and the message body and also includes configurations for attachments. I use 'sendmail' to send the mails....
I have to resend the failed emails after 24 hrs again to my client as a reminder...How do I get to know which emails bounced back ?? and How do I resend them again ?
When they bounce back, you get an email back saying it bounced.
# 3  
Old 08-22-2006
As Corona688 said, the only way is to poll the postmaster mailbox for bounce messages. As mail are sent from a queue and sent asynchronously, your script will only know that it is accepted for delivery by sendmail, that puts the mail into the queue, but it doesn't mean it can be sent. Worse still, if the recipient machine has problems, even though a mail has been received by the receiving server it may not actually deliver the message.
# 4  
Old 08-22-2006
Hi Guys

Thanks.....
But the bounced back email will be stored where? what location ?

Amruta.
# 5  
Old 08-22-2006
You may be able to find it in the mbox file /var/spool/mail/root. I will probably find a library to open the mailboxes if I am to do it, as I don't bother to write these all myself.

Actually, I think your task is just too complex to do by shell scripting. You may consider using a language with more libraries of this kind of libraries available, such as Perl, or Python.
# 6  
Old 08-22-2006
Thanks.....Again.

Amruta
# 7  
Old 08-22-2006
vi $HOME/.forward file as root user.
Add in your email address in the .forward file

You will get the bounced mail
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Mail not getting delivered

Hi I seem to have a problem in my solaris 10server, when I type mailx the following pop up: mailx mailx version 5.0 Type ? for help. "/var/mail//moneta": 109 messages 1 new 109 unread U100 Mail Delivery Subs Thu Sep 17 04:34 133/5631 Warning: could not send m U101 moneta ... (2 Replies)
Discussion started by: fretagi
2 Replies

2. Shell Programming and Scripting

Did my script execute successfully ?

Hi, I have two scripts viz and I am running them in background. I wish to know if both the scripts completed execution successfully. So this is what I have done /tmp/commet/bin/connectdb1.sh & condb1=$? /tmp/commet/bin/connectdb2.sh & condb2=$? However, I am getting error... (7 Replies)
Discussion started by: mohtashims
7 Replies

3. Shell Programming and Scripting

How to inform the target that a file was delivered to the FTP directory?

Hi, I have a FTP server and a directory location where i will be FTPing the flat file. My requirement is After the flat file was generated to the location, i need to write some trigger file or something to inform them that the file was delivered to them. Please let me know how i can do... (2 Replies)
Discussion started by: srikanth_sagi
2 Replies

4. UNIX for Advanced & Expert Users

Mail not getting delivered to user

Hi, There is a unix box in production from which mails will be sent to user/group. From this box, many mails will be sent. But only for one mail which is sent from the box, it is showing a message like "Deferred: 421 Microsoft ESMTP MAIL Service, Version: 6.0.3790.4675 ready at Service not... (2 Replies)
Discussion started by: trichyselva
2 Replies

5. UNIX for Dummies Questions & Answers

Cannot successfully execute .sh: su - <name> -c

Hi All, First time poster, I hope I have the basics covered. I am trying to execute a .sh but finding I am getting inconsistent results. A fresh set of eyes would be great. I am using Solaris 10 zones. So I am trying to execute a script but I am getting different results between... (2 Replies)
Discussion started by: att01
2 Replies

6. Shell Programming and Scripting

script has been executed successfully or not??

Guys, How can we know whether a script has been executed successfully or not ? We dont have any log directories, and we are not given a chance to modify the script. Could someone help me out with this Thanks (2 Replies)
Discussion started by: bobby1015
2 Replies

7. Shell Programming and Scripting

Storing a log file of delivered mails

Hi, I have a program which creates some report and sends it to the users. There are around 15000 users . I guess because of this huge number the mail exchange server is unable to deliver all the mails. So i want to create a log to see who are all the user to whom the report was delivered. I am... (2 Replies)
Discussion started by: gnagendr
2 Replies

8. AIX

Alert on successfully logins

Hi, How difficult would it be to configure an alert on AIX that will inform me every time someone logs into the system? (1 Reply)
Discussion started by: bbbngowc
1 Replies

9. UNIX for Dummies Questions & Answers

Successfully Installed Solaris 8 after all.

Hello There, Aftar all i successfully installed Solaris 8 on my Primary Slave 2nd Hard disk. Here what i did. I kept my first hard disk (Windows Me) on primary Master and put my new 2nd hard disk on Primary Slave, CDROM is on Secondary slave. When i install solaris8 it ask me two... (0 Replies)
Discussion started by: abidmalik
0 Replies
Login or Register to Ask a Question