Silmar A. Marca wrote:

I try to use "return_path" in transport, but the redirect is in "router". I try
to insert header "X-Return-path" and change the return_path if it exist, but no
sucess...
I need to this to change return_path on redirect messages to external sites on
external aliases...

Example:
- my domain is grupogsn.com.br.
- have a [EMAIL PROTECTED] to external server (ex: [EMAIL PROTECTED]).
- have a [EMAIL PROTECTED] to internal server (ex: [EMAIL PROTECTED]).

If i send email from external server ([EMAIL PROTECTED]) to
[EMAIL PROTECTED], the email is resendo to [EMAIL PROTECTED] But the
return_path continue [EMAIL PROTECTED] If GMAIL use SPF and force check, the
@domainspf.com not autorize my server to send messages and message is block!  I
need to rewrite return_path to "[EMAIL PROTECTED]" in this case to validate
"SPF clause".

If send email from internal domain to alias@ or alias2@, ok! The server not need
to verify spf address...
If send email from external domain to alias2@ ok! The server not need to verify
spf address...


Hi,

You could have two routers, but have them call different transports. The local_smtp transport don't set return_path, the remote_smtp transport sets return_path.

Yours,

Gary


Citando Gary Palmer <[EMAIL PROTECTED]>:

Silmar A. Marca wrote:

I need to rewrite "MAIL FROM" in redirect driver to send mail not in my
local
domains. But, the "erros_to" not show variables, only fixed address... The
header_add is ok!

virtual_aliases:
driver                = redirect
errors_to             = [EMAIL PROTECTED]  <- Not run
headers_add           = "X-Envelope-To: [EMAIL PROTECTED]"

virtual_aliases:
driver                = redirect
errors_to             = [EMAIL PROTECTED]  <- Run OK!
headers_add           = "X-Envelope-To: [EMAIL PROTECTED]"

I need to rewrite the sender address in "Mail from" to external out email
because the SPF block these redirects... The SRS is not easy to use... I try
to
use $address_data and result is equal...


I am not sure why errors_to is not working for you, but have you tried
using the

return_path

setting on the transport?  I have that working with expansion here.

Gary









--
## List details at http://www.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to