Postfix: handling undelivered/bouced emails with a script
I'm running ISPConfig3 on my server, and I'm looking into the possibility of automatically processing undelivered emails with a script, if possible PHP.
So I've been looking through the /var/vmail/ directories and the incoming mail is easy enough to detect, allright.
So I would like to run a PHP cron that looks through the mailbox and does "something".
Ideally, I would like to remove the bounced messages from the mailbox.
But I could not find any description of the mail server's (is it postfix?) behavior, and if removing a message was as simple as just deleting it from the /new directory?
Is there a description of postfix somewhere?
|
Recent comments
18 hours 8 min ago
18 hours 13 min ago
23 hours 12 min ago
1 day 5 hours ago
1 day 6 hours ago
1 day 7 hours ago
1 day 12 hours ago
1 day 18 hours ago
1 day 22 hours ago
2 days 23 min ago