Re: [exim] My first exim configuration

Etusivu
Poista viesti
Vastaa
Lähettäjä: Phil Pennock
Päiväys:  
Vastaanottaja: Maxi Cooper - EGS
Kopio: exim-users
Aihe: Re: [exim] My first exim configuration
On 2014-01-23 at 13:29 -0200, Maxi Cooper - EGS wrote:
> Now I need to modify the "From" and "Cc" and I'm lost on how to start. Been
> browsing for hours but I'm obviously lacking the basics. Emails sent from
> Google Groups come with the following headers:
>
> From: group_name@???
> To: group_name@???
> Cc: some@??? (the actual legitimate destinatary of the message)


Which recipient address is the one which is resulting in you getting one
of the two copies of the outbound mail?

> and I need them to be:
>
> From: another@??? (a different domain which I own and manage from
> this VPS)
> To: some@???
> Bcc: group_name@???
>
> So, is this possible to achive? If so, could someone please point me in the
> right direction on how to address this?


You're after address _rewriting_, where most of Exim focuses on
redirection and delivery, so it's a little buried in the manual unless
you already know the distinction.

http://www.exim.org/exim-html-current/doc/html/spec_html/ch-address_rewriting.html

It's not clear though whether or not you want to _add_ the delivery to
the Bcc, or just add it as a header. Normally Bcc: headers are not
explicitly added.

You need to draw a distinction between the RFC5322 headers, which you
have shown, and the RFC5321 routing envelope, which is what's in use for
deciding where one particular copy of a mail is sent. By the time
you've gotten the mail, the From/To/Cc/Bcc headers are not used for
routing at all, you're only getting one of the two (or more) copies sent
out originally, and you need to decide both what should be in the
routing envelope (passed to/from SMTP as MAIL FROM and RCPT TO commands)
and the display headers (which were probably used during initial
submission to derive those routing addresses, but not thereafter).

Regards,
-Phil