Re: Filter trustee src bypass - syntax error

2020-04-28 Thread KJ (Klaas Jan) Schuurs

Dear Martijn en Pete,

Thank you for your help and answers.

I think Pete has nailed the problem. I'm sorry I've overlooked the fact 
that filter... bypass is not available in openbsd 6.6 release. I'll just 
have to wait till openbsd 6.7 will be out.


Thank you again for your help.
KJ (Klaas Jan) Schuurs

k...@kjenj.nl
06 1500 3207

Malvert 2301
6538AR Nijmegen

Martijn van Duren schreef op 2020-04-28 11:09:
In that case we'd need to know which version of OpenSMTPd you're 
running

and your full configuration. This was just an educated guess, but
without all the information it's impossible to help you.

On 4/28/20 11:07 AM, KJ (Klaas Jan) Schuurs wrote:

Dear Martijn,

Thank you for your answer. I've corrected my table definition to:

table trustedip file:/etc/mail/trustedip

I'm still getting syntax error on the line with:
filter trusted phase mail-from match src  bypass



KJ (Klaas Jan) Schuurs



Martijn van Duren schreef op 2020-04-28 10:45:

On 4/28/20 10:29 AM, KJ (Klaas Jan) Schuurs wrote:



***
smtpd.conf
***
table  file:/etc/mail/trustedip


This should be:
table trustedip file:/etc/mail/trustedip

Can you tell if it works with this change?





Re: Filter trustee src bypass - syntax error

2020-04-28 Thread KJ (Klaas Jan) Schuurs

Dear Martijn,

Thank you for your answer. I've corrected my table definition to:

table trustedip file:/etc/mail/trustedip

I'm still getting syntax error on the line with:
filter trusted phase mail-from match src  bypass



KJ (Klaas Jan) Schuurs



Martijn van Duren schreef op 2020-04-28 10:45:

On 4/28/20 10:29 AM, KJ (Klaas Jan) Schuurs wrote:



***
smtpd.conf
***
table  file:/etc/mail/trustedip


This should be:
table trustedip file:/etc/mail/trustedip

Can you tell if it works with this change?





Re: Filter trustee src bypass - syntax error

2020-04-28 Thread Pete
Hi,

filter ... bypass
is not a valid syntax in 6.6 release.
I assume it will be in 6.7.



> Dear all,

> Hi! This is the first time I'm posting to this mailinglist. English is
> not my native language, so if I'm not making sense, then accept my
> apologies.

> First of all I would like to tell @Gilles and others that I love
> opensmtpd. I've used it now for like two years and I like it way better
> than postfix.

> I'm trying to setup a filter bypass. I've looked at the example Gilles
> has provided on his website.

> ***
> smtpd.conf
> ***
> table  file:/etc/mail/trustedip

> filter trusted phase mail-from match src  bypass

> listen on all tls pki example.com filter { trusted check_rdns ... }
> ***

> ***
> /etc/mail/trustedip
> ***
> 192.168.1.0/24
> ***

> When I do 'smtpd -n' I get a syntax error on the line where I define the
> filter trusted.

> I'm not sure what the error is.

> I'm running openbsd 6.6 release.

> Can someone shed some light on my syntax error?

> Thank you!

> With regards,

> KJ (Klaas Jan) Schuurs





Re: Filter trustee src bypass - syntax error

2020-04-28 Thread Martijn van Duren
In that case we'd need to know which version of OpenSMTPd you're running
and your full configuration. This was just an educated guess, but
without all the information it's impossible to help you.

On 4/28/20 11:07 AM, KJ (Klaas Jan) Schuurs wrote:
> Dear Martijn,
> 
> Thank you for your answer. I've corrected my table definition to:
> 
> table trustedip file:/etc/mail/trustedip
> 
> I'm still getting syntax error on the line with:
> filter trusted phase mail-from match src  bypass
> 
> 
> 
> KJ (Klaas Jan) Schuurs
> 
> 
> 
> Martijn van Duren schreef op 2020-04-28 10:45:
>> On 4/28/20 10:29 AM, KJ (Klaas Jan) Schuurs wrote:
> 
>>> ***
>>> smtpd.conf
>>> ***
>>> table  file:/etc/mail/trustedip
>>
>> This should be:
>> table trustedip file:/etc/mail/trustedip
>>
>> Can you tell if it works with this change?
>>




Re: Filter trustee src bypass - syntax error

2020-04-28 Thread Martijn van Duren
On 4/28/20 10:29 AM, KJ (Klaas Jan) Schuurs wrote:
> Dear all,
> 
> Hi! This is the first time I'm posting to this mailinglist. English is 
> not my native language, so if I'm not making sense, then accept my 
> apologies.
> 
> First of all I would like to tell @Gilles and others that I love 
> opensmtpd. I've used it now for like two years and I like it way better 
> than postfix.
> 
> I'm trying to setup a filter bypass. I've looked at the example Gilles 
> has provided on his website.
> 
> ***
> smtpd.conf
> ***
> table  file:/etc/mail/trustedip

This should be:
table trustedip file:/etc/mail/trustedip

Can you tell if it works with this change?

> 
> filter trusted phase mail-from match src  bypass
> 
> listen on all tls pki example.com filter { trusted check_rdns ... }
> ***
> 
> ***
> /etc/mail/trustedip
> ***
> 192.168.1.0/24
> ***
> 
> When I do 'smtpd -n' I get a syntax error on the line where I define the 
> filter trusted.
> 
> I'm not sure what the error is.
> 
> I'm running openbsd 6.6 release.
> 
> Can someone shed some light on my syntax error?
> 
> Thank you!
> 
> With regards,
> 
> KJ (Klaas Jan) Schuurs
> 



Filter trustee src bypass - syntax error

2020-04-28 Thread KJ (Klaas Jan) Schuurs

Dear all,

Hi! This is the first time I'm posting to this mailinglist. English is 
not my native language, so if I'm not making sense, then accept my 
apologies.


First of all I would like to tell @Gilles and others that I love 
opensmtpd. I've used it now for like two years and I like it way better 
than postfix.


I'm trying to setup a filter bypass. I've looked at the example Gilles 
has provided on his website.


***
smtpd.conf
***
table  file:/etc/mail/trustedip

filter trusted phase mail-from match src  bypass

listen on all tls pki example.com filter { trusted check_rdns ... }
***

***
/etc/mail/trustedip
***
192.168.1.0/24
***

When I do 'smtpd -n' I get a syntax error on the line where I define the 
filter trusted.


I'm not sure what the error is.

I'm running openbsd 6.6 release.

Can someone shed some light on my syntax error?

Thank you!

With regards,

KJ (Klaas Jan) Schuurs