Re: how to match my relay rules against a list of IP's?

2020-03-20 Thread Thomas Bohl

arrowhead$ more /etc/mail/localhosters
[::1]/128


It looks like there is bug. The table has to start with a IPv4 address.

This works
127.0.0.1
::1

while this doesn't
::1
127.0.0.1



Re: how to match my relay rules against a list of IP's?

2020-03-20 Thread Peter J. Philipp
On Fri, Mar 20, 2020 at 08:51:50PM +0100, Thomas Bohl wrote:
> Hi
> 
> > Is this possible?
> 
> Yes
> 
> > This is what I got but it gives me an error...
> > 
> > arrowhead# smtpd -dvvv
> > /etc/mail/smtpd.conf:34: table "mylocalhosters" may not be used for from 
> > lookups
> > arrowhead# grep mylocalhosters smtpd.conf
> > table mylocalhosters file:/etc/mail/localhosters
> > match auth from src  for any action "relay"
> 
> Looks ok.
> What does your /etc/mail/localhosters look like?

arrowhead$ more /etc/mail/localhosters
[::1]/128

I also tried without the [] brackets but that did the same error.

Regards,
-peter



how to match my relay rules against a list of IP's?

2020-03-20 Thread Peter J. Philipp
Hi,

Is this possible?  This is what I got but it gives me an error...

arrowhead# smtpd -dvvv
/etc/mail/smtpd.conf:34: table "mylocalhosters" may not be used for from lookups
arrowhead# grep mylocalhosters smtpd.conf 
table mylocalhosters file:/etc/mail/localhosters
match auth from src  for any action "relay"

OS and smtpd are OpenBSD 6.6 with patches.

Regards,
-peter