postfix-3.2.2
Case in question:
transport_maps = hash:/usr/local/etc/postfix/transport,
ldap:/usr/local/etc/postfix/ldap-transport.cf
I had the (possibly erroneous) belief that Postfix searches the tables
in the order given in main.cf and that the domain part is sufficient.
What we wanted to accomplish is, in the hash table which is the first
entry above
example.com smtp:[a.host.somwhere]
postmap -q example.com returns smtp:[a.host.somwhere] but nevertheless
the mail is *not* sent to "a.host.somwhere"
If one enters an email address instead, it works
u...@example.com smtp:[a.host.somwhere]
So the question is, how can we set up the transport maps in a hash
file so that all mail for users in the example.com domain gets sent to
smtp:[a.host.somwhere] instead of the default entry which is below in
the hash file.
I have the feeling that Postfix actually combines the tables and then
stops at the first match. Anyways, if someone could shed a little
light where I'm going wrong please.
//per