Re: Processing order of canonical maps

2016-09-16 Thread Todd C. Olson
As a new administrator of postfix I am not able to determine which of the two orders is correct from the existing documentation. An additional sentence would be very helpful. Perhaps, under canonical(5) section "TABLE SEARCH ORDER": "Each pattern is looked for across the entire set of tables

Re: Processing order of canonical maps

2016-09-16 Thread Ondřej Lysoněk
It just doesn't seem very clear to me. And one of our customers even got the wrong impression about the search order. I think a sentence like the following could be dropped in there somewhere: "First, a match of 'user@domain' is searched for across all the listed tables in the order the tables

Re: Processing order of canonical maps

2016-09-16 Thread Wietse Venema
canonical(5) section "TABLE SEARCH ORDER": "With lookups from indexed files such as DB or DBM, or from networked tables such as NIS, LDAP or SQL, patterns are tried in the order as listed below:" That really does what it says: try the first query. Try the second query. And so o

Re: Processing order of canonical maps

2016-09-16 Thread Ondřej Lysoněk
Thank you! The documentation seems a bit ambiguous on this topic. After reading canonical(5) and the canonical_maps section of postconf(5), I think it's not clear which of the processing orders, mentioned in the first email, it actually uses. Would you like me to write a patch for this? Ondr

Re: Processing order of canonical maps

2016-09-15 Thread Wietse Venema
Ond?ej Lyson?k: > Hi, > > I need some help configuring canonical maps. > > Suppose you have two lookup tables listed in canonical_maps and each of > these tables uses all three pattern types (user@domain, user, @domain). > Now from what I see Postfix looks for a match when rewriting addresses