Wiebe Cazemier:
> Hi, 
> 
> In a bash script, I have: 
> 
> - an e-mail message with full headers in a tmp file.
> - A from address (to use for -f with 'sendmail')
> - a recipient (u...@example.com).
> 
> How do I relay this message to another server than example.com,
> but do set RCPT TO to u...@example.com when relaying to that other
> server?
>
> One option I can think of is using a transport entry in transport
> maps, but because this runs on the server example.com, I can't set
> another transport for example.com.

Transport maps can be per-recipient.

If that does not answer the question, please describe the problem
that you are trying to solve (some u...@example.com needs special
processing before it can be delivered to the example.com server)
instead of the solution (deliver one specific u...@example.com to
a different server without creating a mail delivery loop).

        Wietse

Reply via email to