Re: TCP wrappers and Postfix

2021-02-20 Thread Eugene Podshivalov
hich made me think that my server was already configured with tcp-wrappers by default, but could not figure out why it was not filtering smtpd traffic. Initially I thought that compiling Postfix with tcp wrappers would mean just changing the installation configuration to authorise the higher leve

Re: TCP wrappers and Postfix

2021-02-15 Thread Wietse Venema
Viktor Dukhovni: > > On Feb 15, 2021, at 9:57 PM, Wietse Venema wrote: > > > > I just verified that TLS works when running "sendmail -bs" as user > > 'postfix' from inetd. But I agree that this mode of operation is > > suitable only for extraordinary cases. > > How was the SMTP server able to

Re: TCP wrappers and Postfix

2021-02-15 Thread Bob Proulx
Michael Orlitzky wrote: > Eugene Podshivalov wrote: > > Generic approach to system administration and access control > > reconfiguration at runtime (without service reload). > > If you want something more generic than what's already in postfix, the > next level up is probably iptables. +1. I

Re: TCP wrappers and Postfix

2021-02-15 Thread Viktor Dukhovni
> On Feb 15, 2021, at 9:57 PM, Wietse Venema wrote: > > I just verified that TLS works when running "sendmail -bs" as user > 'postfix' from inetd. But I agree that this mode of operation is > suitable only for extraordinary cases. How was the SMTP server able to load the certificate chain? The

Re: TCP wrappers and Postfix

2021-02-15 Thread Michael Orlitzky
On Tue, 2021-02-16 at 01:51 +0300, Eugene Podshivalov wrote: > Generic approach to system administration and access control > reconfiguration at runtime (without service reload). > If you want something more generic than what's already in postfix, the next level up is probably iptables.

Re: TCP wrappers and Postfix

2021-02-15 Thread Wietse Venema
Viktor Dukhovni: > > On Feb 15, 2021, at 9:03 PM, Wietse Venema wrote: > > > >> Is it by chance possible that tcp wrappers will be supported in future at > >> least as an optionally compiled feature? > > > > If you must, you can run "/usr/sbi

Re: TCP wrappers and Postfix

2021-02-15 Thread Viktor Dukhovni
> On Feb 15, 2021, at 8:51 PM, Eugene Podshivalov wrote: > > Generic approach to system administration and access control reconfiguration > at runtime (without service reload). If your max_idle and max_use are not too high, Postfix does not need to be "reloaded" to detect changes in main.cf.

Re: TCP wrappers and Postfix

2021-02-15 Thread Viktor Dukhovni
> On Feb 15, 2021, at 9:03 PM, Wietse Venema wrote: > >> Is it by chance possible that tcp wrappers will be supported in future at >> least as an optionally compiled feature? > > If you must, you can run "/usr/sbin/sendmail -bs" as user "postfix" &g

Re: TCP wrappers and Postfix

2021-02-15 Thread Wietse Venema
Eugene Podshivalov: > Is it by chance possible that tcp wrappers will be supported in future at > least as an optionally compiled feature? If you must, you can run "/usr/sbin/sendmail -bs" as user "postfix" under TCP Wrappers from inetd. I prefer to spend my limited de

Re: TCP wrappers and Postfix

2021-02-15 Thread Eugene Podshivalov
Generic approach to system administration and access control reconfiguration at runtime (without service reload). вт, 16 февр. 2021 г. в 01:24, Bob Proulx : > Eugene Podshivalov wrote: > > Is it by chance possible that tcp wrappers will be supported in future at > > least as an optionally

Re: TCP wrappers and Postfix

2021-02-15 Thread Bob Proulx
Eugene Podshivalov wrote: > Is it by chance possible that tcp wrappers will be supported in future at > least as an optionally compiled feature? One can't say something will never happen. But why would it be needed? As others have said Postfix already supports all of the same feature set but in

Re: TCP wrappers and Postfix

2021-02-15 Thread Eugene Podshivalov
Is it by chance possible that tcp wrappers will be supported in future at least as an optionally compiled feature? пн, 8 февр. 2021 г. в 23:00, Eugene Podshivalov : > Thanks, Noel! Your comments are helpful indeed. > > пн, 8 февр. 2021 г. в 22:37, Noel Jones : > >> >> On 2/8/2021 11:45 AM,

Re: TCP wrappers and Postfix

2021-02-08 Thread Eugene Podshivalov
Thanks, Noel! Your comments are helpful indeed. пн, 8 февр. 2021 г. в 22:37, Noel Jones : > > On 2/8/2021 11:45 AM, Eugene Podshivalov wrote: > > Thanks for the explanation, Wietse. > > > > Probably the issue is just with the logging levels. > > My current configuration already has > > > >

Re: TCP wrappers and Postfix

2021-02-08 Thread Noel Jones
On 2/8/2021 11:45 AM, Eugene Podshivalov wrote: Thanks for the explanation, Wietse. Probably the issue is just with the logging levels. My current configuration already has smtpd_client_restrictions=reject_unknown_client_hostname and the log file is flooded with message like this

Re: TCP wrappers and Postfix

2021-02-08 Thread Wietse Venema
Eugene Podshivalov: > Thanks for the explanation, Wietse. > > Probably the issue is just with the logging levels. > My current configuration already has > > > smtpd_client_restrictions=reject_unknown_client_hostname > > and the log file is flooded with message like this > > > connect from

Re: TCP wrappers and Postfix

2021-02-08 Thread Eugene Podshivalov
Thanks for the explanation, Wietse. Probably the issue is just with the logging levels. My current configuration already has > smtpd_client_restrictions=reject_unknown_client_hostname and the log file is flooded with message like this > connect from unknown[ x.x.x.x] > NOQUEUE: reject: CONNECT

Re: TCP wrappers and Postfix

2021-02-08 Thread Wietse Venema
Eugene Podshivalov: > Have read through the postscreen documentation closely and got it setup and > running already, but could not find the three major possibilities provided > by the tcp wrappers: > 1. block by hostname > 2. block clients with unknown hostname > 3. block clients with invalid

Re: TCP wrappers and Postfix

2021-02-08 Thread Eugene Podshivalov
Do you mean with the help of reject_unknown_client_hostname and check_sender_access params? пн, 8 февр. 2021 г. в 16:37, Matus UHLAR - fantomas : > On 08.02.21 16:27, Eugene Podshivalov wrote: > >Have read through the postscreen documentation closely and got it setup > and > >running already,

Re: TCP wrappers and Postfix

2021-02-08 Thread Matus UHLAR - fantomas
On 08.02.21 16:27, Eugene Podshivalov wrote: Have read through the postscreen documentation closely and got it setup and running already, but could not find the three major possibilities provided by the tcp wrappers: 1. block by hostname 2. block clients with unknown hostname 3. block clients

Re: TCP wrappers and Postfix

2021-02-08 Thread Eugene Podshivalov
Have read through the postscreen documentation closely and got it setup and running already, but could not find the three major possibilities provided by the tcp wrappers: 1. block by hostname 2. block clients with unknown hostname 3. block clients with invalid address<->name mapping The last two

Re: TCP wrappers and Postfix

2021-02-08 Thread Eugene Podshivalov
I'm new to postscreen and it's what I was looking for. Thanks a lot for the answers! пн, 8 февр. 2021 г. в 11:22, Dominic Raferd : > On 08/02/2021 08:04, Eugene Podshivalov wrote: > > There are a bunch of spiders and spammers nowadays which are knocking > > the service every hour or so every

Re: TCP wrappers and Postfix

2021-02-08 Thread Dominic Raferd
On 08/02/2021 08:04, Eugene Podshivalov wrote: There are a bunch of spiders and spammers nowadays which are knocking the service every hour or so every day. Postfix has a really powerful access control system to protect itself but it becomes a bit hard to read the log file flooded by the

Re: TCP wrappers and Postfix

2021-02-08 Thread Eugene Podshivalov
those out by UFW but dynamic addresses make it quite inefficient. Regards, Eugene пн, 8 февр. 2021 г. в 04:01, Viktor Dukhovni : > On Mon, Feb 08, 2021 at 02:17:46AM +0300, Eugene Podshivalov wrote: > > > Are there any reasons not to have Postfix compiled with TCP wrappers? > >

Re: TCP wrappers and Postfix

2021-02-07 Thread Viktor Dukhovni
On Mon, Feb 08, 2021 at 02:17:46AM +0300, Eugene Podshivalov wrote: > Are there any reasons not to have Postfix compiled with TCP wrappers? Because that would likely be entirely redundant. Postfix already has IP-based access controls (local tables, RBL lookups, postscreen(8), ... and can a

TCP wrappers and Postfix

2021-02-07 Thread Eugene Podshivalov
Hi all, Are there any reasons not to have Postfix compiled with TCP wrappers? Regards, Eugene