[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postfix-users
Subject:    Re: Postfix gateway with per relayed host outgoing IP
From:       Wietse Venema <wietse () porcupine ! org>
Date:       2020-05-29 15:53:48
Message-ID: 49YTd81XRvzJrNv () spike ! porcupine ! org
[Download RAW message or body]

Matus UHLAR - fantomas:
> >Matus UHLAR - fantomas:
> >> >> how?
> >> >>
> >> >> if you define different smtp transports with different smtp_bind_address
> >> >> defined in master.cf, the sender_dependent_default_transport_maps should
> >> >> do
> >> >> what you want.
> >>
> >> On 29.05.20 15:17, George wrote:
> >> >Thanks for your response. My problem is that I do not know what to use in
> >> >the file where sender_dependent_default_transport_maps is defined.
> >> >
> >> >Do I set it like this:
> >> >@domain1_from_webserver1.com mastercf_transport1:
> >> >@domain2_from_webserver1.com mastercf_transport1:
> >> >@domain1_from_webserver2.com mastercf_transport2:
> >> >@domain1_from_webserver2.com mastercf_transport2:
> >>
> >> do you have mastercf_transport1 and mastercf_transport2 defined in
> >> master.cf?
> >>
> >> >Or is there any way for me to define the incoming webserver IP in
> >> >sender_dependent_default_transport_maps?
> >>
> >> http://www.postfix.org/postconf.5.html#sender_dependent_default_transport_maps
> >>
> >> The tables are searched by the envelope sender address and @domain.
> >>
> >> so you can only configure sending user and sending domain there...
> 
> On 29.05.20 09:44, Wietse Venema wrote:
> >It is possible to use the 'filter' command for this.
> >
> >/etc/postfix/main.cf
> >    smtpd_client_restrictions =
> >	check_client_access hash:/etc/postfix/client_access
> >
> >/etc/postfix/client_access:
> >    1.2.3.4	filter smtp-for-4:
> >    1.2.3.5	filter smtp-for-5:
> >
> >/etc/postfix/master.cf:
> >    smtp-for-4 .. .. .. .. .. .. smtp
> >	-o smtp_bind_address=x.x.x.x
> >    smtp-for-5 .. .. .. .. .. .. smtp
> >	-o smtp_bind_address=y.y.y.y
> 
> But this avoids local processing, doesn't it? 
> wouldn't this cause troubles if the mail was to be delivered locally?

It is not needed for an outbound-only relay.

To receive mail for their domains, they would need a second MTA.
That MTA would also receive mail from the outbound-only relay.

Each MTA needds a unique myhostname setting.

	Wietse
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic