Re: [exim] Received for header not added to subsequant local…

Top Page
Delete this message
Reply to this message
Author: Todd Lyons
Date:  
CC: exim-users
Subject: Re: [exim] Received for header not added to subsequant local addreses
On Wed, Oct 8, 2014 at 5:34 AM, krakastan <eximusers.list@???> wrote:
>
> how would i add a header for each received email to include the recipient
> of the email ( not necessarily the To/cc etc, but rather the actual
> delivery address), when the email is a local delivery
> or


In your router which handles the local delivery:
headers_add = X-Delivered-To: $local_part@$domain

Then you always know that header will indicate who your mail server
thought it was delivering mail for.

> how would i make emails for local delivery go via the smtp route.


The question doesn't make sense. Local delivery means NOT using smtp.
The only instance I can think of that doesn't apply is if you have
front end mail servers which handle spam/virus scanning, and backend
mail servers which actually have storage for the users' Maildir's.
But even then, you'd typically use LMTP instead of SMTP to get from
the frontend to the backend.

> Is there another option to achieve have the "delivery address" added to a
> header for local emails
> basically - I need a way to track the email routing.


I don't understand the question I guess. This is the Received header
for an email that was delivered locally from an external source:

Received: from exprod7og114.obsmtp.com ([64.18.2.215]
helo=mail-qg0-f43.google.com)
        by m.ivenue.com with smtp (Exim 4.84)
        (envelope-from <harestad@???>)
        id 1XR2F0-0002l3-Op
        for nina@???; Mon, 08 Sep 2014 16:56:39 +0000


This header says quite plainly who the email was destined for. What
use case do you have that the above information is not accurate or
sufficient?

...Todd
--
The total budget at all receivers for solving senders' problems is $0.
If you want them to accept your mail and manage it the way you want,
send it the way the spec says to. --John Levine