On Thu, Mar 25, 2010 at 7:45:14PM -0400, /dev/rob0 wrote:

> On Thu, Mar 25, 2010 at 12:48:33PM -0400, Damon Miller wrote:
> > Hello.  I've configured Postfix to relay mail from a specific
> > address to a remote MTA through 'sender_dependent_relayhost_maps'
> > and that works fine.  I now want to BCC an address for messages
> > sent by this same user.  The most obvious option seemed
> > 'recipient_bcc_maps', but unfortunately I'm not receiving the BCCs.
> 
> Why is this obvious?
>       recipient_bcc_maps :: BCC maps indexed by RECIPIENT address
>       sender_bcc_maps :: BCC maps indexed by SENDER address
> Sounds to me like you might have wanted the latter.

Quite right.  Either sender- or recipient-based BCC is ok for my use case
so I arbitrarily chose recipient_bcc_maps.  I then promptly forgot which
one I chose and tested the wrong one.  Thanks very much for the reminder.

> 
> > # postconf -n
> 
> I was going to skip the rest of this, but this caught my eye:
> 
> > relay_domains = $mydestination,cloudswitch.com,hotmail.com
> 
> This is very wrong, unless you are a MX host for cloudswitch.com and
> hotmail.com. You probably need to unset this.
>       relay_domains =
> References:
>       http://www.postfix.org/ADDRESS_CLASS_README.html#relay_domain_class
>       http://www.postfix.org/postconf.html#relay_domains

That one, at least, was intentional:  I populated the recipient_bcc_maps
table with a Hotmail address for testing purposes so I needed Postfix
to temporarily relay messages to that domain.  This is an internal
machine intended solely for testing so I was never relaying for the
Internet.  Regardless, now that I've proven the configuration works
I've removed the entry from relay_domains.


Thank you again for your quick response and insight.  I'm in good shape!


Regards,

Damon

Reply via email to