Bug 1381871 - postfix documentation is ambiguous about precedence order of canonical maps
Summary: postfix documentation is ambiguous about precedence order of canonical maps
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: postfix
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jaroslav Škarvada
QA Contact: Alois Mahdal
URL:
Whiteboard:
Depends On:
Blocks: 1298243 1420851 1549614
TreeView+ depends on / blocked
 
Reported: 2016-10-05 08:52 UTC by Ondřej Lysoněk
Modified: 2019-12-16 06:59 UTC (History)
5 users (show)

Fixed In Version: postfix-2.10.1-7.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-30 09:34:56 UTC
Target Upstream Version:


Attachments (Terms of Use)
patch (9.55 KB, patch)
2016-10-05 08:52 UTC, Ondřej Lysoněk
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3085 0 None None None 2018-10-30 09:35:13 UTC

Description Ondřej Lysoněk 2016-10-05 08:52:28 UTC
Created attachment 1207498 [details]
patch

Description of problem:
Suppose you have two lookup tables listed in canonical_maps and each of these tables uses all three pattern types (user@domain, user, @domain). Then Postfix looks for a match when rewriting addresses in the following order:
Look for a match of:
  - user@domain in the first table
  - user@domain in the second table
  - user in the first table
  - user in the second table
  - @domain in the first table
  - @domain in the second table

However, the documentation could be misunderstood and one might think the search order is the following:
Look for a match of:
  - user@domain in the first table
  - user in the first table
  - @domain in the first table
  - user@domain in the second table
  - user in the second table
  - @domain in the second table 


I'm attaching a patch (taken from upstream), which fixes the documentation.

Comment 9 Alois Mahdal 2018-08-19 00:31:08 UTC
VERIFIED with postfix-2.10.1-7.el7.x86_64

The patch has applied successfully.

Comment 11 errata-xmlrpc 2018-10-30 09:34:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3085


Note You need to log in before you can comment on or make changes to this bug.