Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail 8.12.8 and error response emails?

Status
Not open for further replies.

jisoo22

Programmer
Apr 30, 2001
277
US
Hello all,

I'm running a RedHat Linux 9 box with sendmail 8.12.8. What I've been doing lately is creating web apps with Postgresql and PHP. Here's the thing that's the issue: I've created a PHP page that sends out emails through Sendmail. What I would like to do is if any emails are denied or have the wrong email and are returned, an email would be sent out to my address telling me so.

I'm guessing the first step is finding out how Sendmail knows when an email has been returned. I imagine that kind of information would contained in some sort of log file that I could parse and use to do the job? Or does Sendmail have that kind of functionality already built in?

Thanks,
Jisoo22
 
Add the header [tt]Return-Path: your@email.com[/tt] to the list of additional headers.

//Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top