LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SMTP mailer bounce handler.. (https://www.linuxquestions.org/questions/linux-newbie-8/smtp-mailer-bounce-handler-917909/)

conflicker 12-09-2011 09:45 AM

SMTP mailer bounce handler..
 
Anybody has the experience on handling the bounce mail in php?
I'm working with a mailer using smtp and I need to come up with a feature of handling the bounce mail..

Please help..


Regards,

--
Eric

Doc CPU 12-11-2011 04:50 AM

Hi there,

Quote:

Originally Posted by conflicker (Post 4545921)
Anybody has the experience on handling the bounce mail in php?
I'm working with a mailer using smtp and I need to come up with a feature of handling the bounce mail.

I guess you've got a problem.
From a technical point of view, a bounce mail is nothing else than an e-mail sent to your originating address. So, to catch the bounce mails, you need a receiving mailbox in the first place. Second, you need a handler that invokes a PHP script of yours each time an e-mail has been received. You then have a chance to examine that message and decide whether it's a bounce mail or something else, and react appropriately.
As you can see, things get pretty sophisticated, because you need full control over your own incoming mail server.

All that would be much easier if all mail servers were configured properly, so that they refuse an e-mail while the sender is trying to deliver it. Then the sender would get a distinct error condition, instead of assuming the delivery was okay and getting a bounce mail later.

[X] Doc CPU


All times are GMT -5. The time now is 02:57 PM.