On 2012-05-31 6:00 AM, Wietse Venema <wie...@porcupine.org> wrote:
If this alias is a mailing list, you set the envelope sender
accordingly (like any mailing list).
No, these are simply aliases I have set up in my virtual alias maps.
There are two different uses for these aliases...
1. We have (currently) 3 accounts that I need to forward all incoming
mail to a gmail account (for archiving)...
2. We have (currently) 4 email addresses set up for non-employees that
we are working closely with that are aliased to their personal
(external) email addresses.
Currently, when an email comes in from outside for any of these
addresses, when postfix attempts to send the email on to the external
target address, postini rejects these as an external relay attempt -
because the original sender is an external address, they refuse to relay
it to an outside/external address. Manually forwarding using a normal
MUA works fine, because the sender is an internal address.
So, for these specific recipient addresses (the alias' external target
address), I need to relay through my ISP relayhost (which is our
fallback relayhost)... all other outbound messages should be relayed
through the relayhost set in main.cf...
Looking more closely at the docs, it appears I can simply use per
recipient transport maps to achieve this...
So, would this work?
main.cf
...
relayhost = [outbounds6.obsmtp.com]
...
then in my transport map, just have:
externaltarg...@example.com :[smtp.myisp.com]
externaltarg...@example.com :[smtp.myisp.com]
...
this would then result in *only* these addresses using the alternate
transport, and the rest would use the one defined in main.cf?
I would just test it, but this is a live system, so would prefer at
least a 'that should work as desired' from someone who has done
something similar before...
Thanks,
--
Best regards,
Charles