Сделайте на Exchange перезапись заголовка.
"Organization  Configuration -> Hub Transport -> Transport Rules".
Сори, что это Exim не касается, но может поможет решить задачу.

Или же в Exim в rewrite (не в роутерах) попробуйте флаг "S" - " # S
rewrite at SMTP time, before the mail is handled internally".
^test@local     test@external          ES



------------------------
С уважением,
Голуб Михаил


> -----Original Message-----
> From: [email protected] [mailto:exim-users-
> [email protected]] On Behalf Of An An
> Sent: Tuesday, December 27, 2011 4:02 PM
> To: Exim MTA на русском
> Subject: Re: [Exim-users] Перезапись Return-Receipt-To
> 
> Ошибочка, имел в виду ключ "h". Решил переписать заголовки через
> роутер.
> 
> remove_header_router:
>    driver = redirect
>    domains = !+local_domains
>    condition = ${if match{$h_Return-Receipt-To:}{domain.local} {yes}{no}}
>    headers_remove = Return-Receipt-To
>    headers_add = Return-Receipt-To: $sender_address
>    data = $local_part@$domain
> 
> Теперь заголовок содержит правильный адрес. Однако проблему это не
> устранило(
> 
> 
> > Отож. Кроме того, мне ключ "S" не подходит в принципе, поскольку
> мне необходима перезапись исключительно "From"
> >
> > netgenic# cat /usr/local/etc/exim/configure | grep '*@domain.local'
> > *@domain.local                     [email protected]
Ffs
> >
> > > > From: Golub Mikhail <[email protected]>
> > >
> > > > # E       rewrite all envelope fields
> > > > # F       rewrite the envelope From field
> > > > # T       rewrite the envelope To field
> > > > # b       rewrite the `Bcc:' header
> > > > # c       rewrite the `Cc:' header
> > > > # f       rewrite the `From:' header
> > > > # h       rewrite all headers
> > > > # r       rewrite the `Reply-to:' header
> > > > # s       rewrite the `Sender:' header
> > > > # t       rewrite the `To:' header
> > >
> > > "All headers" means all of the headers listed above that can be
selected
> > > individually, plus their Resent- versions. It does not include other
> > > headers such as Subject: etc.
> > >
> > > _______________________________________________
> > > Exim-users mailing list
> > > [email protected]
> > > http://mailground.net/mailman/listinfo/exim-users
> > >
> > >
> > _______________________________________________
> > Exim-users mailing list
> > [email protected]
> > http://mailground.net/mailman/listinfo/exim-users
> >
> >
> _______________________________________________
> Exim-users mailing list
> [email protected]
> http://mailground.net/mailman/listinfo/exim-users



_______________________________________________
Exim-users mailing list
[email protected]
http://mailground.net/mailman/listinfo/exim-users

Ответить