Re: [Exim] how to insert aliases into the 'Received' header?

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Philip Hazel
日付:  
To: jeff
CC: exim-users
題目: Re: [Exim] how to insert aliases into the 'Received' header?
On Fri, 18 Aug 2000, jeff wrote:

> This doesn't seem to be the case. I have tested it on my local system
> by sending a message with no CC or BCC and only one address (one of my
> aliases) on the To line. The only place where the alias shows up is in
> the To line.


I did say that it appeared that Debian had changed the
received_header_text option (because it had the word "Debian" in it).
You can change it back to the default if you want.

> But even if that did work, I would like to figure out a way to make it
> work in cases where there are multiple recipients. Yes, it would be a
> confidentiality exposure if it showed all of the BCC recipients but
> that's not what I am trying for. What I want is for it to put some
> indication in the header whenever it resolves an alias to a local
> address.


Ah! You want a different header for each recipient. You can't have a
different Received: header for every recipient, at least not the one
that Exim generates automatically. However, you can stick

headers_add = anything you like

on your aliasfile director, which will add a header line as the address
goes through. So you could put

headers_add = "X-Alias-Was: $local_part"

for example. You *could* even stuff in a non-standard Received: if you
wanted to be confusing.

> I guess I should say a little more about my real goal: When I get spam
> on one of my aliases, I want to know which one it is so that I can
> figure out where the spammer got my address and also so I can turn the
> alias off or redirect it to another mailbox.


Aha! It always helps to state the *real* problem. envelope_to_add will
record the envelope for you.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.