1

Topic: A cron script to email a list of bounced/blocked email?

==== Required information ====
- iRedMail version (check /etc/iredmail-release): .097
- Linux/BSD distribution name and version: Ubuntu
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

This may exist, but I'd love to get a daily email of emails (sender, subject) which were blocked by the system.  I'd like to exclude emials which were blocked by rule but then resent/received by the system.

Is this possible/does it exist?


Andrew

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: A cron script to email a list of bounced/blocked email?

You mean something like pflogsumm?
http://jimsun.linxnet.com/postfix_contrib.html

3

Re: A cron script to email a list of bounced/blocked email?

hws wrote:

You mean something like pflogsumm?
http://jimsun.linxnet.com/postfix_contrib.html

Maybe; I'm not sure what this does.

I would like an email each 24 hours, maybe in the form:

sender <tab> Subject

for all emails that the system didn't let through.

I just want to make sure i'm not missing important stuff - apparently the AG's office in KS couldn't send me something.  It didn't matter because they sent a letter (and the guy I complained about sent the refund).

Isn't there a log file I could parse to see this info?


Andrew

4

Re: A cron script to email a list of bounced/blocked email?

AndyInNYC wrote:

Isn't there a log file I could parse to see this info?

Check Postfix log file /var/log/maillog. And this is what "pflogsumm" does.

Note: rejected emails may not have subject left in log at all.