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?

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Christian Science Programming: "Let God Debug It!".

Reply via email to