From: Ralf Hildebrandt on
On 2007-04-09, h.wulff <zuhause(a)aol.com> wrote:
> Hi!
>
> We have a postfix setup with virtual users only. Our setup includes
> policy service and content-filter. We're about to add a autorespond feature.
>
> But on testing the autoresponder feature we recognized that a mail is
> forwarded twice if the user has decided to store the mail in the mailbox
> and forward a copy.

You're probably using address rewriting BEFORE and AFTER the
content_filter (in both smtpd processes).

> This is probably a configuration error =) Can anyone give me a hint what
> are the most common configuration errors in this case... ?!

It's a common misconfiguration:

# content_filter, keine Adressmanipulation vor dem filter

smtp inet n - - - - smtpd
-o receive_override_options=no_address_mappings
-o content_filter=amavisd:[127.0.0.1]:10025
-o smtpd_authorized_xforward_hosts=127.0.0.1
-o smtpd_authorized_xclient_hosts=127.0.0.1

and the other smtpd:

#
# Reinjection smtpd, kein content_filter
# nur mynetworks darf
#

localhost:10026
inet n - - - - smtpd
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o receive_override_options=no_unknown_recipient_checks
-o content_filter=

Take a look at my receive_override_options

--
Ralf Hildebrandt (i.A. des IT-Zentrums) Ralf.Hildebrandt(a)charite.de
Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155
Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962
IT-Zentrum Standort CBF send no mail to plonk(a)charite.de
From: Ralf Hildebrandt on
On 2007-04-10, h.wulff <zuhause(a)aol.com> wrote:
> Hi!
>
> Thx, this little option did the trick. :)
>
> BTW: Are such tweaks described in your book?

Yes, German version, p.188

--
Ralf Hildebrandt (i.A. des IT-Zentrums) Ralf.Hildebrandt(a)charite.de
Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155
Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962
IT-Zentrum Standort CBF send no mail to plonk(a)charite.de