Hi,

have you ever got an email containing lots of email addresses including your
own in the TO or CC field or somewhere else in the mail body?

I think, this happens for different reasons:

- people sending emails to many recipients don't know or don't care how
to do that
  properly
- people dont' know abount BCC
- people forgot to use BCC instead of CC
- email/calendar programs like outlook/exchange send invitations without
  the senders interaction including all invitees in the to/cc as well
  as in the text/calendar mime-body part containung an icalendar event
- people replying to all header recipients after receiving such mails

I don't like that and have thought about a solution:

- use a postfix serve as an outgoing smarthost
- use header_checks to identify mails with to much CC/TO recipients
- use body_checks to identify mails containing a text/calendar mime part
- use a special transport <transport> to process these mails
- use <transport>_destination_recipient_limit 1 in the postfix config
  to split the mail and process the mail one by one recipient
- the deamon accepting the redirected mails will:
  - unpack the mail recursively
  - shorten CC and TO headers to the (single) recipient plus some maybe
    white listed recipients plus '....undisclosed recipients'
  - eventually remove tons of other useless mail headers (configurable)
  - unpack the ical part and remove all invitees but the current recipient
  - create a new ical part with only one single invitee
  - compose a new mail and send it to the current recipient feeding it
back to postfix
- I'm not sure, if it's necessary to split the mail, because the daemon
could also
  unpack once and create many new mails out of it. I have to understand
better how
  postfix's internal mail flow works exactly.

Is this really a good idea?

Is there anybody out there interested in it and want's to give it a try?

I have sort of an alpha-version in perl running and would share it on
gitlab after some additional work on it if somebody is looking for
a solution like this and want's to discuss about or comment on it.

\Magnus


-- 
Dr. Magnus Harlander
Mail: har...@harlan.de
Web: www.harlan.de
Stiftung: www.harlander-stiftung.de
Ceterum censeo bitcoin esse delendam!

Reply via email to