Email failure notice not displayed.


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Email failure notice not displayed.
# 1  
Old 09-21-2011
Email failure notice not displayed.

I am using mailx command to send emails from the Unix command prompt. Whenever email is not sent it is not giving me any message "Email not sent" or failure delivery notice for the wrong email addresses. When I give correct email address I am able to receive them correctly.

Can anyone please help me.
# 2  
Old 09-21-2011
You can't tell if an address is incorrect until you get a bounce -- which can take anything from minutes to days. mailx can't tell at all, because it does send successfully, and fails 4 or 5 mail servers down the chain.

So there's not really any help for it. That's just the way email works.

Last edited by Corona688; 09-21-2011 at 05:03 PM..
# 3  
Old 09-21-2011
I gave a wrong email address but it is a valid email address according to RFC 822 standards. When I try with my gmail, I get a mailer failure deamon notice. but when I give the same wrong email address on Unix, I am not getting the failure notice.

If not mailx, can you please tell me what Unix command should I use.

Thanks for you help.
# 4  
Old 09-21-2011
Quote:
Originally Posted by szc0025
When I try with my gmail, I get a mailer failure deamon notice. but when I give the same wrong email address on Unix, I am not getting the failure notice.
The same thing happens both times.

1) mail client sends the email.
2) mail server A accepts the message. The client disconnects.

What happens afterwards isn't detected by the mail clilent.

3) server A passes to mail server B.
...
n) server Y passes to server Z.
n+1) Destination mail server reached.
n+2) Whoops! There's nobody here by that name!
n+3) Send a bounce email to server Y.
n+4) Server Y passes bounce to server X.
...
m) Server B passes bounce to server A.
m+1) Server A receives the bounce.
m+2) Server A receives bounce email, stores it in the users' inbox.

This process can take minutes or days. Something along the chain might decide to wait and retry a couple times.

gmail does not know you're sending to an invalid email address.

gmail does not know the email didn't get through.

gmail just receives a bounce message, long after the fact, like everything else.



So there's not really any help for it. That's just the way email works. You need to start pawing through received mail to get bounces, and how to do that depends on 1) whether your server receives email at all, 2) how it does so and what it does with it.

Last edited by Corona688; 09-21-2011 at 05:18 PM..
# 5  
Old 09-21-2011
Thanks for you help.

Is there any way that I can receive a failure delivery notice using Unix commands ?
# 6  
Old 09-21-2011
You need to start pawing through received mail to get bounces, and how to do that depends on 1) whether your server receives email at all, 2) how it does so and what it does with it.

So, this needs more information on your server.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Shell script to execute Oracle procedure and trigerring email on success and failure

Here is the shell script which need to trigger a stored procedure and when the record count is 0 then it should capture in the log that 0 duplicate records are found and if it's more than 0 then log with no of records. Also if there is any sqlerror then it should write the same in the log file and... (17 Replies)
Discussion started by: senmng
17 Replies

2. UNIX for Dummies Questions & Answers

boot up failure unix sco after power failure

hi power went out. next day unix sco wont boot up error code 303. any help appreciated as we are clueless. (11 Replies)
Discussion started by: fredthayer
11 Replies

3. Shell Programming and Scripting

Format of content displayed in the attachment of email

Hi, I'm facing a problem in mailing attachments using uuencode in mailx. I got to attach a couple of flatfiles. I'm able to attach and mail the files successfully. But there is a problem in the format of the flatfiles when they are received as an attachemnt. For Example : Consider... (0 Replies)
Discussion started by: Sindhuap
0 Replies

4. UNIX for Dummies Questions & Answers

How to get failure notice message when email is not sent.

I am using mailx command to send emails from the Unix command prompt. Whenever email is not sent it is not giving me any message "Email not sent" or failure delivery notice for the wrong email addresses. When I give correct email address I am able to receive them correctly. Can anyone please... (0 Replies)
Discussion started by: szc0025
0 Replies

5. UNIX for Advanced & Expert Users

Delivery Failure notice when aliase has added

Hi Team, Mails are coming proper on my server. But when i added a sendmail(/etc/mail/aliases) alias to redirect mails to a script, Its started giving delivery failure for the same id. Can you tell me what can be the possible reason for this?and how can we sort it out. Its very urgent for me... (3 Replies)
Discussion started by: mindtee_abhi
3 Replies

6. UNIX for Dummies Questions & Answers

short notice

Im getting stumped on one of my unix problems. Im a college student taking unix and for one of my assignments I am to write a few programs. I done the programs but on one of them I have to modify it by using sed instead of a while do loop. here's the while loop while do ... (2 Replies)
Discussion started by: gummiworm
2 Replies

7. UNIX for Advanced & Expert Users

NOTICE:Cha

Pls can u help me diagnosed this Notice l receive during booting of my openserver 5.0.4 unix from the kernel. NOTICE:cha:SCSI bus has been reset ha=0 Attached SCSI peripherals will retunr to power up state (ChaN04) NOTICE:cha:SCSI command timed out ha=0... (2 Replies)
Discussion started by: kayode
2 Replies

8. Post Here to Contact Site Administrators and Moderators

Anybody Notice a Speed Increase?

Hi. I moved this site to a T3 facility and wanted to know if any of the long time users noticed a performance improvement? Thanks, Neo. (5 Replies)
Discussion started by: Neo
5 Replies
Login or Register to Ask a Question