[Mimedefang] limit Recipients for auth user

Benoit Panizzon benoit.panizzon at imp.ch
Fri Nov 27 06:01:26 EST 2015

Hi Roman

> my $recipient_to_count = ??;
> my $recipient_cc_count = ??;
> my $recipient_bcc_count = ??;

I just re-read your email. I guess you want to distinguish the
different types of recipient (to,cc and bcc).

No, unfortunately this is not possible in filter_recipient as this
processes the rcpt to: commands from the MTA.

It would somehow unreliably be possible in filter or filter_end when
you get the message body. But you should not find BCC: Lines in the
body. Or the email client used to send that email is just broken and
discloses the BCC recipients.

So never trust the content of the email body regarding recipients.

Hmm, I should try adding this recipient to my email bodies :-)

To: ';drop database email;' <Mr.Evil at example.com>

-Benoît Panizzon-
I m p r o W a r e   A G    -    Leiter Commerce Kunden

Zurlindenstrasse 29             Tel  +41 61 826 93 00
CH-4133 Pratteln                Fax  +41 61 826 93 01
Schweiz                         Web  http://www.imp.ch

More information about the MIMEDefang mailing list