On Mon, 11 May 1998, Jack Killpatrick wrote:
> I would like to have a way to check the emails that have been sent via
> sendmail against the ones in the database so I can spot any errors that may
> have occurred in the sendmail process. For example, let's say sendmail fails
> for some reason (some loose and crazy process that stymies the system so
> that sendmail is rendered useless, while perl and msql continue to
> function). I'd like to compare a record of sent mail to the records in the
> database, using the index as a key. Then I could spot any submissions that
> were not sent out by sendmail.
>
> I'm not familiar with the interworkings of sendmail and the files it keeps.
> If anyone out there is, and would like to offer ideas, I'd be grateful. At
> the very least, can anyone say whether it can or can't be done with Perl:
> I'm not a C coder.
I'd check two places:
1) the mail log, which records every message sent or received
/var/maillog on FreeBSD
2) the mail queue
try /var/spool/mqueue for this one
Use the sender to find the correct entries in the log, check the disposition,
and (for those that were neither sent nor bounced) match the message id with
the contents of the queue. There will be a log entry for every retry as
well, so mail that simply disappears can still be noted.
---------------------------------------
Mike Bresina ([EMAIL PROTECTED])
System Administrator
Intellicom Customer Service Center
http://www.vsat.net/
v. (715) 720-1760
f. (715) 720-1762
---------------------------------------
____________________________________________________________________
--------------------------------------------------------------------
Join The Web Consultants Association : Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------