default_transport in master.cf

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

default_transport in master.cf

Dave
Hi, I'm trying to change the default_transport directive in master.cf
but it doesn't work:

1.2.3.4:smtp      inet  n       -       n       - -       smtpd
     -o default_transport=smtp_redir

smtp_redir      unix  -       -       n       -       - smtp
     -o smtp_bind_address=4.3.2.1

I have multiple smtpd instances on different IPs and I need to use
different outbound IP address for some of them. I know I can use
multiple Postfix instances but I'd rather avoid that - I realy need to
change just the IP addresses.

Thanks,

Dave.

Reply | Threaded
Open this post in threaded view
|

Re: default_transport in master.cf\

Wietse Venema
[hidden email]:
> Hi, I'm trying to change the default_transport directive in master.cf
> but it doesn't work:
>
> 1.2.3.4:smtp      inet  n       -       n       - -       smtpd
>      -o default_transport=smtp_redir

As documented, default_transport IS NOT an smtp(8) property.

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: default_transport in master.cf

Noel Jones-2
In reply to this post by Dave
On 5/3/2017 3:57 PM, [hidden email] wrote:

> Hi, I'm trying to change the default_transport directive in
> master.cf but it doesn't work:
>
> 1.2.3.4:smtp      inet  n       -       n       - -       smtpd
>     -o default_transport=smtp_redir
>
> smtp_redir      unix  -       -       n       -       - smtp
>     -o smtp_bind_address=4.3.2.1
>
> I have multiple smtpd instances on different IPs and I need to use
> different outbound IP address for some of them. I know I can use
> multiple Postfix instances but I'd rather avoid that - I realy need
> to change just the IP addresses.
>
> Thanks,
>
> Dave.
>

default_transport is a property of the trivial-rewrite service, not
smtpd.
http://www.postfix.org/qmgr.8.html
http://www.postfix.org/trivial-rewrite.8.html
http://www.postfix.org/smtpd.8.html

If your output IP depends on the input IP, multiple postfix
instances is the only reasonable solution.



  -- Noel Jones