This is a discussion on postmaster report tagging within the mailing.postfix.users forums, part of the Mail Servers and Related category; Being a bit of a control freak I use=20 notify_classes =3D bounce,delay,policy,protocol,resource,software and I ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Being a bit of a control freak I use=20 notify_classes =3D bounce,delay,policy,protocol,resource,software and I get a lot of postmaster notifies, a few thousand per week where roughly 3/4 are "unknown user". I already depend heavily on MUA filtering, and while wading through these notifies I thought. "How to I differentiate notifies so that I can sort them even more cleverly?". I would like to filter out all notifications that ONLY contain "User unknown in relay recipient table" errors.=20 Although I havn't seen notifications with both "User unknown.." and some other error, I assume that can happen.=20 One possible way to do it is to add a tag somewhere, in the headers, subject or body of the notification.=20 Let's say we tag it with a binary string, "NOTIFY:00000001001" where each bit corresponds to a certain text string, and, if set, that this text string occurs somewhere in the notification. This would let me sort the notifications in my MUA, and let it perform the appropriate action. Another, probably better, way is to control the source of the notifies; When Postfix sends notifications. Would it be possible to add features to get finer control over which notifications are sent and which are not? Perhaps a regexp matching 400/500 messages determining if this notification should be/not be sent?=20 I havn't thought that much about it yet, this is more like thinking aloud to all of you. Please feel free to comment.=20 /Kristian |