Jaime Montoya
Jaime Montoya

Reputation: 7711

Where in the Linux directory tree can I find the email delivery status reports and tracking reports of emails sent using PEAR::Mail?

I am using this code to send emails and it is working correctly even for sending thousands of emails:

....
require_once "/.../ea-php70/root/usr/share/pear/Mail.php";
$params['sendmail_path'] = '/usr/lib/sendmail';
$mail_object =& Mail::factory('sendmail', $params);
$timeoutSet = set_time_limit(18000); // set script time out to 5 hours 
...
for ($i = 1; $i <= 2000; $i++) {
    ...
    $_mail = $mail_object->send($recipients, $headers, $sendContent); 
    ....
}
....

Where in the Linux directory tree can I find the email delivery status reports and tracking reports of emails sent using PEAR::Mail? I will need to write a script to analyze these files to track and act on bounces. So I am trying to find those files first. Do you know where they are?

Upvotes: 0

Views: 77

Answers (1)

Jaime Montoya
Jaime Montoya

Reputation: 7711

I found the files. The mail logs are reported under /var/log/exim_mainlog for the general messages however, bouncebacks are tracked under /var/log/exim_rejectlog on the server.

Upvotes: 0

Related Questions