Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

Saving Recipient Before Rewriting Recipient

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


exim.users at exim1

Feb 1, 2010, 9:57 PM

Post #1 of 3 (484 views)
Permalink
Saving Recipient Before Rewriting Recipient

I rewrite RCPT in the Rewrite section of exim.conf using flag T.

I would like to store the original RCPT value before the Rewrite wipes
it out.

The manual states the RCPT can not be changed in Transports which is the
other place headers can be rewritten.

The earliest one can add a header is in ACL MAIL (using warn add_header)
but at that stage $recipients has been changed and $local_part and
$domain are empty.

Please does anyone have suggestions ?

Thank you.

Paul.

--



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


hs at schlittermann

Feb 1, 2010, 11:55 PM

Post #2 of 3 (449 views)
Permalink
Re: Saving Recipient Before Rewriting Recipient [In reply to]

Hello Paul,

everything stated below should be read as „should“, because I'm not very
sure about it. But probably it's some hint for further reading
(.spec.txt, section 31.2 for the 4.68 specs)

Always Learning <exim.users [at] exim1> (Di 02 Feb 2010 06:57:28 CET):
> I rewrite RCPT in the Rewrite section of exim.conf using flag T.

If you rewrite during SMTP time, your original recipient is „lost“.

> I would like to store the original RCPT value before the Rewrite wipes
> it out.

„Normal“ rewriting occures as soon as all header lines are received, so
probably you could add some X-Original-Recipient header.

> The manual states the RCPT can not be changed in Transports which is the
> other place headers can be rewritten.

True. During transport it's to late to change the recipient (envelope).

> The earliest one can add a header is in ACL MAIL (using warn add_header)
> but at that stage $recipients has been changed and $local_part and
> $domain are empty.

You should not use SMTP rewriting (the „S“ flag forces rewriting at SMTP
time).

Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
--
SCHLITTERMANN.de ---------------------------- internet & unix support -
Heiko Schlittermann HS12-RIPE -----------------------------------------
gnupg encrypted messages are welcome - key ID: 48D0359B ---------------
gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B -
Attachments: signature.asc (0.19 KB)


exim.users at exim1

Feb 2, 2010, 7:06 AM

Post #3 of 3 (445 views)
Permalink
Re: Saving Recipient Before Rewriting Recipient [In reply to]

Hallo Heiko,

> „Normal“ rewriting occures as soon as all header lines are received, so
> probably you could add some X-Original-Recipient header.

Thanks. I experimented and added in ACL RCPT

warn add_header = X-testing-1: $local_part@$domain

and the original RCPT value has been saved.

> > The earliest one can add a header is in ACL MAIL (using warn add_header)
> > but at that stage $recipients has been changed and $local_part and
> > $domain are empty.

I was wrong about this 'earliest' opportunity. Headers can be added in
ACL RCPT.

> You should not use SMTP rewriting (the „S“ flag forces rewriting at SMTP
> time).

The flag I am using is 'T' to change only the SMTP destination.


Viele Grüße aus England

Paul
(A European Englishman nicht Englisch European).

--



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

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.