Discussion:
order of execution - transport vs local vs virtual user?
(too old to reply)
Carl Brewer
2016-07-25 20:37:06 UTC
Permalink
G'day,
Quick one, while I migrate a bunch of users from an old sendmail server
to a new postfix one.

What gets carried out first? transport maps, local or virtual users?
I'd like to over-ride some, but am not sure of the order that they get
carried out. Can anyone here point me at the relevant doco? I've not
been able to find it. Postfix 2.11

thank you,
Carl
Noel Jones
2016-07-25 21:28:54 UTC
Permalink
Post by Carl Brewer
G'day,
Quick one, while I migrate a bunch of users from an old sendmail
server to a new postfix one.
What gets carried out first? transport maps, local or virtual users?
I'd like to over-ride some, but am not sure of the order that they
get carried out. Can anyone here point me at the relevant doco?
I've not been able to find it. Postfix 2.11
thank you,
Carl
http://www.postfix.org/transport.5.html

The transport_maps parameter overrides all other default routing
decisions, which are listed in the man page.



-- Noel Jones
Viktor Dukhovni
2016-07-25 22:15:31 UTC
Permalink
Post by Noel Jones
Post by Carl Brewer
What gets carried out first? transport maps, local or virtual users?
I'd like to over-ride some, but am not sure of the order that they
get carried out. Can anyone here point me at the relevant doco?
I've not been able to find it. Postfix 2.11
http://www.postfix.org/transport.5.html
The transport_maps parameter overrides all other default routing
decisions, which are listed in the man page.
A more complete answer is in

http://www.postfix.org/ADDRESS_REWRITING_README.html#overview

Canonical rewriting, masquerading and virtual alias rewrites happen
just once while the message is being received and are "frozen" in
the queue file. Transport lookups happen on every delivery attempt,
local(8) aliases(5) rewriting and smtp(8) generic(5) mapping happen
during delivery. Local delivery will requeue mail to remote
recipients, or when expanding an alias with an "owner-" address,
or when delivering a ":include:" recipient list.
--
Viktor.
Loading...