Jump to content


Photo

Sendmail diagnostics


  • Please log in to reply
2 replies to this topic

#1 Dave_L

Dave_L

    Advanced Member

  • Membera
  • PipPipPip
  • 111 posts

Posted 21 March 2006 - 11:54 AM

A PHP scri_pt on a Linux (Redhat) web server that I maintain sends email for various types of notifications: new user registrations, replies to forum posts, etc. Most of these notifications are received, but some are reported as not being received, and I'm trying to figure out why. I've looked at the sendmail log (/etc/maillog), and can't find any errors. I don't have access to the logs on the receiving side. Sendmail has a zillion configuration parameters. most of which I don't understand. Is there a way of getting sendmail to produce a more detailed log, maybe showing the low-level "HELO" type messages?

#2 technion

technion

    Member

  • Members
  • PipPip
  • 23 posts

Posted 24 March 2009 - 12:20 AM

Is there a way of getting sendmail to produce a more detailed log, maybe showing the low-level "HELO" type messages?

Not sure about an answer to the direct question- but many errors in this sort of situation will return error when calling your mail function from PHP.

I would recommend checking return values, and logging the result, this is quite likely to lead you to the error quicker.

#3 Wazoo

Wazoo

    What Life?

  • Forum Admin
  • 13,195 posts

Posted 24 March 2009 - 04:07 AM

Most of these notifications are received, but some are reported as not being received, and I'm trying to figure out why.

Please define "reported as not being received" .... based on your next comment, one must assume you are talking about 'user complaints' .. but not sure

I've looked at the sendmail log (/etc/maillog), and can't find any errors. I don't have access to the logs on the receiving side.

Is this server actually handling the e-maiil transfer end-to-end or is there yet another server in the mix? The point being that there is no 'error' recoded on this server because the outgoing was handed off to your upstream with no errors generated, but the upstream server ran into a delivery issue and added that 'problem situation' to its own logs, but not seeing the 'need' to pass that data back to your server.

Sendmail has a zillion configuration parameters. most of which I don't understand.

Is there a way of getting sendmail to produce a more detailed log, maybe showing the low-level "HELO" type messages?

First reference I stumbled on in a rather simple Google search //sendmail +log// was Configuring and Reading the sendmail Log .. actually sliding down a bit to the section titled Setting Log Levels .... looks like you're wanting at least Level 12, but having to guess/note that this is going to end up with absolutely huge log files.

Also having to note that you may not have looked at any issues involved in the transactions between your PHP scri_pt and the Sendmail application itself .... does the PHP scri_pt include any error handling code, log files, etc.?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users