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 ([email protected]).
> 
> How do I relay this message to another server than example.com,
> but do set RCPT TO to [email protected] 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 [email protected] needs special
processing before it can be delivered to the example.com server)
instead of the solution (deliver one specific [email protected] to
a different server without creating a mail delivery loop).

        Wietse

Reply via email to