That works !

Thanks to both of you. It may take the risk to irritate some postfix aficionados, but I find that the postfix documentation is very dense and you need to read it from end to end before getting the big picture. The most discouraging is that few relevant information can be found on stackoverflow or more generally with google. That is quite surprising for a project as widely used as postfix.

In any case, this mailing list is a great help.

Michel


On 2015-04-15 20:26, wie...@porcupine.org wrote:
Michel Blancard:
Hi all,

I've spent a lot of time trying to configure virtual aliases. Command
'postmap -q "whate...@i.try" /etc/postfix/virtual" always returns the
first result after just one aliasing, even if a second alias is
matching. Here is an example :
...
I think the problem is obvious for an experienced eye, however I cannot
understand why the recursion is not happening.

Different Postfix features have different query patterns.

For example, the virtual(5) manpage describes all the queries that
the virtual_alias_maps feature implements, and the access(5),
canonical(5), transport(5), etc., manpages describe other query
patterns.

The postmap command does not attempt to duplicate these patterns.
It makes one non-recursive query. You will need to use the
description in the virtual(5) manpage and follow the pattern
descriped there.



        Wietse

Reply via email to