Gentoo Archives: gentoo-server

From: kashani <kashani-list@××××××××.net>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] Postfix: Can I insert a custom header to incoming mail?
Date: Thu, 07 Jul 2011 23:06:36
Message-Id: 4E16324B.7080904@badapple.net
In Reply to: [gentoo-server] Postfix: Can I insert a custom header to incoming mail? by Paul Hartman
1 On 7/7/2011 2:50 PM, Paul Hartman wrote:
2 > The idea:
3 >
4 > Assuming I can't do anything about how Postfix handles the
5 > Delivered-To header, I'd like to insert a new header entry
6 > (X-Originally-To: or something like that) into incoming mail before it
7 > hits the catchall forward, so I can know to whom the email was
8 > originally addressed... but i don't really know where to begin.
9 >
10 > The question:
11 >
12 > Are there any postfix gurus out there who can point me in the right
13 > direction? Thanks in advance for any tips or advice (or if you want to
14 > tell me that I'm doing it all wrong).
15
16 It should already be there at least in 2.7.4 which is stable unless
17 you've really tweaked your main.cf. I'd run a postconf | grep
18 enable_orig and see if it's not set to yes.
19
20 kashani
21
22 http://www.postfix.org/postconf.5.html
23
24 enable_original_recipient (default: yes)
25
26 Enable support for the X-Original-To message header. This header is
27 needed for multi-recipient mailboxes.
28
29 When this parameter is set to yes, the cleanup(8) daemon performs
30 duplicate elimination on distinct pairs of (original recipient,
31 rewritten recipient), and generates non-empty original recipient queue
32 file records.
33
34 When this parameter is set to no, the cleanup(8) daemon performs
35 duplicate elimination on the rewritten recipient address only, and
36 generates empty original recipient queue file records.
37
38 This feature is available in Postfix 2.1 and later. With Postfix
39 version 2.0, support for the X-Original-To message header is always
40 turned on. Postfix versions before 2.0 have no support for the
41 X-Original-To message header.

Replies

Subject Author
Re: [gentoo-server] Postfix: Can I insert a custom header to incoming mail? Paul Hartman <paul.hartman@×××××.com>