On 4/22/2009 12:17 PM, Mark Martinec wrote:
Jeff,

One more thing I noticed today also.  All messages which have the "+" in
the e-mail are sent to Dovecot's Deliver twice.  So, I receive the
message twice in the folder.  All other messages are only sent to
Deliver once.  Any idea what I have configured wrong for the message to
be sent twice?
It probably has to do with where you implemented recipient_bcc_maps,
along with a post-queue content filter which sends a checked message
back to Postfix for delivery - so recipient_bcc_maps could be
invoked twice.
Aw, that makes sense.  I have Amavis configured.  I must have done
something wrong with that.  Here is a copy of my master.cf file.  Would
you be able to tell me what I have set wrong?
127.0.0.1:10025 inet n    -       n       -       -     smtpd
    -o content_filter=
[...]
    -o receive_override_options=no_header_body_checks,
         no_unknown_recipient_checks,no_milters
You can add 'no_address_mappings' to the list in receive_override_options.
It turns off automatic BCC, among other things. See:

   http://www.postfix.org/postconf.5.html#receive_override_options

It this option is too strong (e.g. you don't want recipient_bcc_maps
on port 10025, yet you do want canonical or virtual alias map expansion
after a content filter), then you need to use a more complicated
solution with two cleanup services (or two Postfix instances).

See:
   http://www.ijs.si/software/amavisd/README.postfix.html
   ->  Multiple cleanup service architecture


I did some research and added the following line to main.cf and removed the "-o receive_override_options=no_address_mappings" from the smtp section of the master.cf file.

receive_override_options = no_address_mappings

Everything seems to be working ok. I am no longer getting duplicate messages when I forward mail via recipient_bcc. Am I hurting myself at all doing the receive_override in main.cf instead of in master.cf?

Thanks,
Jeff

Reply via email to