On Mon, Nov 23, 2015 at 07:29:18PM -0500, Wietse Venema wrote:

> > I have the following configuration for passing email to OpenDKIM for 
> > processing:
> > 
> > [127.0.0.1]:10030 inet n - n - - smtpd
> >     -o local_recipient_maps=
> >     -o virtual_mailbox_maps=
> >     -o virtual_alias_maps=
> >     -o relay_recipient_maps=
> >     -o smtpd_restriction_classes=
> >     -o smtpd_delay_reject=no
> >     -o smtpd_milters=inet:localhost:8465
> >     -o smtpd_client_restrictions=permit_mynetworks,reject
> >     -o smtpd_sender_restrictions=
> >     -o smtpd_helo_restrictions=
> >     -o smtpd_recipient_restrictions=permit_mynetworks,reject
> >     -o smtpd_reject_unlisted_sender=no
> >     -o smtpd_relay_restrictions=
> >     -o smtpd_data_restrictions=
> >     -o smtpd_end_of_data_restrictions=
> >     -o syslog_name=postfix/dkimmilter
> >     -o content_filter=smtp-amavis:[127.0.0.1]:10032
> > 
> > Since this was implemented, we've had an issue where when emails with a 
> > large number of recipients are processed, the result is that the recipients 
> > get duplicates of the email.  We found one workaround to this was to 
> > default_destination_recipient_limit to large value.
> 
> Why did that make a difference?
Well, of course I would change only "smtp-amavis_recipient_limit",
but the difference is that otherwise the default limit delivers at
most 50 recipients at a time to the content filter.  This reduces
opportunities for duplicate elimination (across lists), especially
with the default "enable_original_recipient = yes".

I've always (since ~2001) used large recipient limits with filter
transports, this also improves efficiency, no need to scan the same
content multiple times.

-- 
        Viktor.

Reply via email to