Re: inet_interfaces & smtp_bind_address behavior on multiple interfaces

2022-08-01 Thread Jaroslaw Rafa
Dnia 1.08.2022 o godz. 14:55:32 post...@ptld.com pisze: > What is unclear to me is what will postfix try to use when making an > outbound connection when the server has two interfaces, first interface > only has one public IP, and the 2nd interface has only one private > (192.168.x.x) IP. Will po

Re: post queue hook/filter

2022-08-01 Thread Leandro Santiago
thank you for the idea. Will try that :-) On 8/1/22 18:27, Wietse Venema wrote: Leandro Santiago: Checking application/pgp-signature: FAILURE -- Start of PGP signed section. I'm using Postfix 3.6.4 on Debian and would like to know if it's possible to execute some custom code **after** postfix

Re: inet_interfaces & smtp_bind_address behavior on multiple interfaces

2022-08-01 Thread Viktor Dukhovni
On Mon, Aug 01, 2022 at 01:36:17PM -0400, post...@ptld.com wrote: > On a server with two network interfaces, the first interface has one > public IP, the seconds interface has one private (192.168.x.x) IP. > > inet_interfaces = all > inet_protocols = all > #smtp_bind_address = >

Re: inet_interfaces & smtp_bind_address behavior on multiple interfaces

2022-08-01 Thread Wietse Venema
post...@ptld.com: > > As you can see above, with "inet_interfaces = all" Postfix will > > LISTEN on all available IPv4 (or IPv6) interface addresses, and it > > will NOT BIND to a specific IPv4 (or IPv6) address. > > Sorry if I'm being slow. > Yes postfix will listen to ALL and bind to 0.0.0.0:25

Re: inet_interfaces & smtp_bind_address behavior on multiple interfaces

2022-08-01 Thread postfix
> As you can see above, with "inet_interfaces = all" Postfix will > LISTEN on all available IPv4 (or IPv6) interface addresses, and it > will NOT BIND to a specific IPv4 (or IPv6) address. Sorry if I'm being slow. Yes postfix will listen to ALL and bind to 0.0.0.0:25 What is unclear to me is what

Re: inet_interfaces & smtp_bind_address behavior on multiple interfaces

2022-08-01 Thread Wietse Venema
Wietse Venema: > post...@ptld.com: > > Just to clarify my understanding: > > > > On a server with two network interfaces, the first interface has one public > > IP, the seconds interface has one private (192.168.x.x) IP. > > > > inet_interfaces = all > > inet_protocols = all > > #smt

Re: inet_interfaces & smtp_bind_address behavior on multiple interfaces

2022-08-01 Thread postfix
>> The docs say >> >> when inet_interfaces specifies no more than one IPv4 address, >> and that address is a non-loopback address, it is automatically >> used as the smtp_bind_address > > That text was written before IPv6 wsupport was added. There should be similar > text for IPv6.

Re: inet_interfaces & smtp_bind_address behavior on multiple interfaces

2022-08-01 Thread Wietse Venema
post...@ptld.com: > Just to clarify my understanding: > > On a server with two network interfaces, the first interface has one public > IP, the seconds interface has one private (192.168.x.x) IP. > > inet_interfaces = all > inet_protocols = all > #smtp_bind_address = > #smtp_bin

Re: inet_interfaces & smtp_bind_address behavior on multiple interfaces

2022-08-01 Thread Durga Prasad Malyala
On Tue, 2 Aug 2022 at 00:04, wrote: > > >> No, the gateway is left blank on that interface. The private interfaces > >> are just cabled together via a switch. > > > Then Postfix should not make any attempt to deliver mail using the > > private address since it doesn't have a network route to deli

Re: inet_interfaces & smtp_bind_address behavior on multiple interfaces

2022-08-01 Thread postfix
>> No, the gateway is left blank on that interface. The private interfaces are >> just cabled together via a switch. > Then Postfix should not make any attempt to deliver mail using the > private address since it doesn't have a network route to deliver the > mail through that interface anyways. >

Re: inet_interfaces & smtp_bind_address behavior on multiple interfaces

2022-08-01 Thread Durga Prasad Malyala
On Mon, 1 Aug 2022 at 23:33, wrote: > > > Hi, > > Does your Private address 192.168.x.x have a default gateway as well? > > Rgds/DP > > No, the gateway is left blank on that interface. The private interfaces are > just cabled together via a switch. > > In systemd: > [ipv4] > address1=192.

Re: inet_interfaces & smtp_bind_address behavior on multiple interfaces

2022-08-01 Thread postfix
> Hi, > Does your Private address 192.168.x.x have a default gateway as well? > Rgds/DP No, the gateway is left blank on that interface. The private interfaces are just cabled together via a switch. In systemd: [ipv4] address1=192.168.0.200/24 may-fail=true method=manual

Re: post queue hook/filter

2022-08-01 Thread Kenneth Irving
¿procmail? Kenneth I'm using Postfix 3.6.4 on Debian and would like to know if it's possible to execute some custom code **after** postfix successfully delivers an email (postfix/smtp status=sent). The reason is that for a given host there are some important bits of information in the destin

Re: inet_interfaces & smtp_bind_address behavior on multiple interfaces

2022-08-01 Thread Durga Prasad Malyala
On Mon, 1 Aug 2022 at 23:07, wrote: > > Just to clarify my understanding: > > On a server with two network interfaces, the first interface has one public > IP, the seconds interface has one private (192.168.x.x) IP. > > inet_interfaces = all > inet_protocols = all > #smtp_bind_address

inet_interfaces & smtp_bind_address behavior on multiple interfaces

2022-08-01 Thread postfix
Just to clarify my understanding: On a server with two network interfaces, the first interface has one public IP, the seconds interface has one private (192.168.x.x) IP. inet_interfaces = all inet_protocols = all #smtp_bind_address = #smtp_bind_address6 = With the following co

Re: post queue hook/filter

2022-08-01 Thread Wietse Venema
Leandro Santiago: Checking application/pgp-signature: FAILURE -- Start of PGP signed section. > I'm using Postfix 3.6.4 on Debian and would like to know if it's > possible to execute some custom code **after** postfix successfully > delivers an email (postfix/smtp status=sent). > > The reason i

Re: post queue hook/filter

2022-08-01 Thread Matus UHLAR - fantomas
On 01.08.22 17:36, Leandro Santiago wrote: I'm using Postfix 3.6.4 on Debian and would like to know if it's possible to execute some custom code **after** postfix successfully delivers an email (postfix/smtp status=sent). The reason is that for a given host there are some important bits of in

post queue hook/filter

2022-08-01 Thread Leandro Santiago
I'm using Postfix 3.6.4 on Debian and would like to know if it's possible to execute some custom code **after** postfix successfully delivers an email (postfix/smtp status=sent). The reason is that for a given host there are some important bits of information in the destination server response