Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Filter "deleted without being read" messages

285 views
Skip to first unread message

Denis BUCHER

unread,
Aug 12, 2010, 12:09:21 PM8/12/10
to
Dear all,

Due to bugs in Microsoft Outlook sending "your message was deleted
without being read" even when this function is disabled, I need to
filter these messages in postfix.

The problem is how to be sure to filter only these messages ?

1. It will be very slow if I filter the *body* of all messages on "was
deleted without being read on " or "Disposition:
automatic-action/MDN-sent-automatically; deleted" ?

2. Therefore does someone know if I can filter something based on a
header ? I only found this header that looks interesting :

Content-Type: multipart/report;
boundary="----_=_NextPart_001_01C9C7DF.11F1ACA6";
report-type=disposition-notification

But how to specify this in postfix ? And if it is not necessary, is
there a way to say "if this header is present then check the body" ?

3. And on postfix side, I think I have to use header_checks ?

Thank a lot in advance for any help, I hope my question is clear ;-)

Denis

Noel Jones

unread,
Aug 12, 2010, 12:18:24 PM8/12/10
to


# main.cf
header_checks = regexp:/etc/postfix/header_checks

# header_checks
# (beware wrapping: this is one line)
~^Disposition: automatic-action/MDN-sent-automatically;
deleted~ REJECT bogus deleted notification

-- Noel Jones

Ralf Hildebrandt

unread,
Aug 12, 2010, 2:20:31 PM8/12/10
to
* Denis BUCHER <dbuc...@hsolutions.ch>:

> Dear all,
>
> Due to bugs in Microsoft Outlook sending "your message was deleted
> without being read" even when this function is disabled, I need to
> filter these messages in postfix.
>
> The problem is how to be sure to filter only these messages ?
>
> 1. It will be very slow if I filter the *body* of all messages on
> "was deleted without being read on " or "Disposition:
> automatic-action/MDN-sent-automatically; deleted" ?

No, since postfix doesn't scan all the body

> Content-Type: multipart/report;
> boundary="----_=_NextPart_001_01C9C7DF.11F1ACA6";
> report-type=disposition-notification
>
> But how to specify this in postfix ? And if it is not necessary, is
> there a way to say "if this header is present then check the body" ?

via header_checks

--
Ralf Hildebrandt
Geschäftsbereich IT | Abteilung Netzwerk
Charité - Universitätsmedizin Berlin
Campus Benjamin Franklin
Hindenburgdamm 30 | D-12203 Berlin
Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
ralf.hil...@charite.de | http://www.charite.de

0 new messages