public inbox for gentoo-server@lists.gentoo.org
 help / color / mirror / Atom feed
From: kashani <kashani-list@badapple.net>
To: gentoo-server@lists.gentoo.org
Subject: Re: [gentoo-server] Postfix: Can I insert a custom header to incoming mail?
Date: Thu, 07 Jul 2011 15:25:15 -0700	[thread overview]
Message-ID: <4E16324B.7080904@badapple.net> (raw)
In-Reply-To: <CAEH5T2PXj00d3SEO=CuzRkU=WDK8fQWrj+1ObVd3y5k79N7=MQ@mail.gmail.com>

On 7/7/2011 2:50 PM, Paul Hartman wrote:
> The idea:
>
> Assuming I can't do anything about how Postfix handles the
> Delivered-To header, I'd like to insert a new header entry
> (X-Originally-To: or something like that) into incoming mail before it
> hits the catchall forward, so I can know to whom the email was
> originally addressed... but i don't really know where to begin.
>
> The question:
>
> Are there any postfix gurus out there who can point me in the right
> direction? Thanks in advance for any tips or advice (or if you want to
> tell me that I'm doing it all wrong).

It should already be there at least in 2.7.4 which is stable unless 
you've really tweaked your main.cf. I'd run a postconf | grep 
enable_orig and see if it's not set to yes.

kashani

http://www.postfix.org/postconf.5.html

enable_original_recipient (default: yes)

     Enable support for the X-Original-To message header. This header is 
needed for multi-recipient mailboxes.

     When this parameter is set to yes, the cleanup(8) daemon performs 
duplicate elimination on distinct pairs of (original recipient, 
rewritten recipient), and generates non-empty original recipient queue 
file records.

     When this parameter is set to no, the cleanup(8) daemon performs 
duplicate elimination on the rewritten recipient address only, and 
generates empty original recipient queue file records.

     This feature is available in Postfix 2.1 and later. With Postfix 
version 2.0, support for the X-Original-To message header is always 
turned on. Postfix versions before 2.0 have no support for the 
X-Original-To message header.



  reply	other threads:[~2011-07-07 23:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-07 21:50 [gentoo-server] Postfix: Can I insert a custom header to incoming mail? Paul Hartman
2011-07-07 22:25 ` kashani [this message]
2011-07-07 23:59   ` Paul Hartman
2011-07-08  0:41     ` kashani
2011-07-08  2:35       ` Paul Hartman
2011-07-15 17:18       ` Paul Hartman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E16324B.7080904@badapple.net \
    --to=kashani-list@badapple.net \
    --cc=gentoo-server@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox