Am 2013-11-21 17:26, schrieb Manuel Bieling:
On 2013.11.21 16:42:10 +0100, Michael Storz wrote:
I am trying to configure a fixed destination for a smtp transport in
master.cf instead of confguring the destination in a transport_map.
Since smtp has no special command-line option for this I suppose I
have to specify a generic Postfix daemon option via -o. However,

You specify command line options for the smtp daemon via '-o'.
All options are well documented in

    http://www.postfix.org/smtp.8.html

The question is, which of these options I could use.


since all relevant commands in main.cf like default_transport
include a transport field, but transport has already been choosen
when the email arrives at my smtp transport, I have no idea how to
configure this in the correct way.

'default_transport' is an option for the trivial-rewrite daemon [1] and
trivial-rewrite is queried by the qmgr daemon [2].


Correct, default_transport cannot be used because to is to late. What I need is a smtp option which would be evaluated when the email arrives at the smtp transport and which would overwrite the destination already calculated by qmgr.


    [1]: http://www.postfix.org/trivial-rewrite.8.html
    [2]: http://www.postfix.org/ADDRESS_REWRITING_README.html

Thus one solution is to manage multiple postfix instances.

    http://www.postfix.org/MULTI_INSTANCE_README.html

Michael

Reply via email to