coercive / maillog
Coercive Utility MailLog
Installs: 379
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/coercive/maillog
Requires
- php: >=7
This package is auto-updated.
Last update: 2025-09-29 01:59:34 UTC
README
#(IN WORKS)
MailLog
Rejected email detection for Exim4 and Postfix
Exim4
$exim = new EximBL('/var/log/exim_log_file'); echo "<pre>"; var_dump($exim->get()); var_dump($exim->getEmails()); var_dump($exim->getNb()); echo "</pre>";
Postfix
# Example of config $postfix = new PostfixBL( '/var/log/mail.log', 'localhost.localdomain[127.0.0.1]', 'name0123' ); # Set your search client $postfix->search('no-reply\@my-domain\.email', PostfixBL::DAEMON_PICKUP); # Parse options $postfix->parse('bounced', true, 0, 10); echo "<pre>"; var_dump($postfix->getIds()); var_dump($postfix->getDatas()); var_dump($postfix->getEmails()); # Distinct emails var_dump($postfix->getEmails(true)); echo "</pre>";