In case anyone else hits this problem, my issue was as follows:

1.  'owner_request_special' was enabled (by default)

2.  My MySQL-based 'alias_maps' succeeded for all addresses, including
those with an 'owner-' prefix.  This was by design, as the query is
dynamic--intended to parse addresses and convert them into a command
used by our trouble ticketing system, Request Tracker.

I was using 'local_recipient_maps' to control the addresses accepted by
Postfix but I was not aware of the check done for 'owner-' addresses
even though they aren't explicitly in the local_recipient_maps table.

After setting 'owner_request_special' to 'no', everything the 'owner-'
prefixes are gone.

Damon

--

Damon T. Miller
Director of Application Services
Thinking Phone Networks
da...@thinkingphones.com 
617-649-1388 (Office)


> -----Original Message-----
> From: owner-postfix-us...@postfix.org [mailto:owner-postfix-
> us...@postfix.org] On Behalf Of Damon Miller
> Sent: Wednesday, February 04, 2009 4:23 PM
> To: postfix-users@postfix.org
> Subject: Guidance on "owner-" prefix added to From and Return-Path
> 
> Hi all,
> 
> I'm having a difficult time understanding why one of my machines is
showing
> modified "Return-Path" and "From" headers while another is not.
> I'm hoping someone can point me in the right direction.  Here's the
> environment:
> 
> Two CentOS 4 servers, both running the same version of Postfix
(2.2.10).
> This was installed via binary RPM so I'm certain the Postfix build is
> identical.
> 
> 
> 
> My issue is this:  When mail is sent to one of the servers ('cam-d3'),
the
> "From" header is modified to have "owner-" prefixing the actual
address
> from which it was sent.  Similarly, "Return-Path" is updated to
include an
> "owner-" prefix.  This is not happening on the other server
> ('imps') and I have no idea why.
> 
> 
> 
> I don't know what information would be relevant here so here are some
> selected data points (taken from root's 'mbox' and live configuration
> data).  First, I've attached an example of a message sent to an
address on
> the machine which adds "owner-".  Here are abbreviated headers showing
the
> "From" and "Return-Path" changes:
> 
> From owner-dtmtest-...@helpdesk.thinkingphones.com  Wed Feb  4
14:35:04
> 2009
> Return-Path: <owner-dtmtest-...@helpdesk.thinkingphones.com>
> X-Original-To: dtmtest-...@helpdesk.thinkingphones.com
> Delivered-To: r...@helpdesk.thinkingphones.com
> 
> [cut -- see attached "cam-d3.txt" for full headers]
> 
> From: "Damon Miller" <da...@thinkingphones.com>
> To: <dtmtest-...@helpdesk.thinkingphones.com>
> X-OriginalArrivalTime: 04 Feb 2009 19:35:08.0941 (UTC)
> FILETIME=[B04D53D0:01C986FF]
> Status: RO
> 
> The address is an alias to root and the "owner-" prefix is added
regardless
> of source address.
> 
> 
> 
> Contrast this with a message sent to an address on the other machine:
> 
> From testacco...@gmail.com  Wed Feb  4 09:30:44 2009
> Return-Path: <testacco...@gmail.com>
> X-Original-To: thinkingphones-supp...@thinkingphonenetworks.com
> Delivered-To: r...@thinkingphonenetworks.com
> 
> [cut -- see attached "imps.txt" for full headers
> 
> From: Damon Miller <testacco...@gmail.com>
> To: thinkingphones-supp...@thinkingphonenetworks.com
> Content-Type: multipart/alternative;
> boundary=0015174bdfd82a282d046218a2f3
> Status: RO
> 
> 
> 
> I'm quite confused by this.  The "owner-" prefix is similar to a VERP
> address, but I can't find any VERP-related configuration settings
enabled
> on either server.
> 
> 
> 
> I also dumped the full configs on both servers via 'postconf' and
diff'ed
> them.  There are three differences:
> 
> 1.  alias_maps on the server adding "owner-" contains an additional
MySQL-
> based alias_maps entry, but since I'm using a hash-based entry for my
test
> this should not be hit.  (Testing confirms this.)
> 
> -alias_maps = hash:/etc/postfix/maps/hash/aliases
> +alias_maps = hash:/etc/postfix/maps/hash/aliases,
> mysql:/etc/postfix/maps/mysql/mysql-alias-maps.cf
> 
> 
> 2.  local_recipient_maps is using a hash instead of a MySQL for
> local_recipient_maps.  (MySQL isn't installed on one of the hosts.)
The
> content is identical between the hash file and the MySQL table.
> 
> -local_recipient_maps = proxy:unix:passwd.byname
> hash:/etc/postfix/maps/hash/local-recipient-maps
> +local_recipient_maps = proxy:unix:passwd.byname
> mysql:/etc/postfix/maps/mysql/mysql-local-recipient-maps.cf
> 
> 
> 3.  'mydomain', 'myhostname', and 'mynetworks' differ since the
servers are
> listening serving different domains, have different hostnames, and are
on
> different networks.  These all match the OS-level configuration data.
> 
> 
> 
> Any guidance would be much-appreciated.
> 
> 
> Regards,
> 
> Damon

Reply via email to