> Wietse Venema wrote:
> In other words, RTFM.

I'd love to say I haven't read the manual and thank you for pointing
it out to me, but my OCD is too damn high, so I always read manuals.
Unfortunately this time I can't quite get my head around it to figure
it out on my own how to correctly and sanely configure postfix to use
a different smtp delivery transports for mail destined to foreign
destinations.

I believe the below is irrelevant to issue I'm trying to solve, but
I'd to understand postfix better instead of just copy+paste or get
ready-made crafted answer.
The documentation says:

    ...
    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*:
        user+extension@domain transport:nexthop
        user@domain transport:nexthop
        domain transport:nexthop
        .domain transport:nexthop
        * transport:nexthop
    ...
    TCP-BASED TABLES
    Each lookup operation uses the entire recipient address once.
Thus, some.domain.hierarchy is not looked up via its parent domains,
nor is user+foo@domain looked up as user@domain.
    ...

As far as I can tell, in my case since I'm using sing tcp-base tables
some look ups are not performed and that's fine. But there are no
mentions to the change in the order which patterns are checked.
So am I wrong to expect to see the logs showing "get bar <at>
foreign.tld" and "get foo <at> mydomain.tld" before "get *"?
As oppose to what I see now:
get *
get *
get bar <at> foreign.tld
get foo <at> mydomain.tld



Regards, Marcus

Reply via email to