Re: [exim] Redirect and errors_to variables

Etusivu
Poista viesti
Vastaa
Lähettäjä: Silmar A. Marca
Päiväys:  
Vastaanottaja: Gary Palmer
Kopio: exim-users
Aihe: Re: [exim] Redirect and errors_to variables
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 alias@??? to external server (ex: user@???).
- have a alias2@??? to internal server (ex: user@???).

If i send email from external server (user@???) to
alias@???, the email is resendo to user@???. But the
return_path continue user@???. 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 "alias@???" 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...

Cordialmente, Silmar A. Marca
------------------------------------------------------------
Se algo nao lhe faz mal (fisico, moral ou psicologicamente),
experimente! O maximo e voce perder tempo! E tempo, e
o que voce tem a vida toda pra perder.....
Mais vale um instante de prazer que uma eternidade futil!
------------------------------------------------------------






Citando Gary Palmer <exim-users@???>:

> 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             = ${local_part}@${domain}  <- Not run
> >  headers_add           = "X-Envelope-To: ${local_part}@${domain}\n"

> >
> >virtual_aliases:
> >  driver                = redirect
> >  errors_to             = fix@???  <- Run OK!
> >  headers_add           = "X-Envelope-To: ${local_part}@${domain}\n"

> >
> >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
>
>
>