Re: Regex in db table

2021-09-01 Thread mimerunner
Maybe if I had sent you the proper diff it would have worked... Index: table_db.c === RCS file: /cvs/src/usr.sbin/smtpd/table_db.c,v retrieving revision 1.22 diff -u -p -r1.22 table_db.c --- table_db.c 23 Jan 2021 16:11:11 -

Re: Regex in db table

2021-09-01 Thread gilles
September 1, 2021 1:01 PM, mimerun...@gmx.de wrote: >> Care to try the following diff ? >> --- table_db.c.orig.txt 2021-08-28 15:50:28.0 +0200 >> +++ table_db.c 2021-08-28 15:50:10.0 +0200 >> @@ -42,7 +42,9 @@ static char *table_db_get_entry_match(vo >> >> struct table_backend tab

Re: Regex in db table

2021-09-01 Thread mimerunner
Care to try the following diff ? --- table_db.c.orig.txt 2021-08-28 15:50:28.0 +0200 +++ table_db.c 2021-08-28 15:50:10.0 +0200 @@ -42,7 +42,9 @@ static char *table_db_get_entry_match(vo struct table_backend table_backend_db = { "db", - K_ALIAS|K_CREDENTIALS|K_DO

Re: Regex in db table

2021-09-01 Thread mimerunner
Thank you all very much for the suggestions! I didn't know about smtpctl update table .  I'm going to stick with text files for now.

Re: Regex in db table

2021-08-28 Thread gilles
August 25, 2021 9:43 AM, "Jack" wrote: > Hello list, > Hello, > I already posted this on the bug tracker of OpenSMTPD, but maybe I'm > doing something wrong in the config and you can help me: > > I'm using OpenSTMPD 6.8 portable and want to filter on DNS names or HELO > strings with regular

Re: Regex in db table

2021-08-27 Thread Edgar Pettijohn
On 8/26/21 6:25 AM, Jack wrote: Could you resend with proper line breaks. This is difficult to read. Sorry, the line breaks got messed up. I'm using OpenSTMPD 6.8 portable and want to filter on DNS names or HELO strings with regular expressions. Therefore I created the following minified co

Re: Regex in db table

2021-08-26 Thread Thomas Bohl
Question: How can I use regular expressions in db files? Don't know, but Text files don't seem to be an option, because they are only read on startup so I cannot update them on the fly. # smtpctl update table helotable File is recommended over db: https://www.mail-archive.com/misc@opensmt

Re: Regex in db table

2021-08-26 Thread Jack
Could you resend with proper line breaks. This is difficult to read. Sorry, the line breaks got messed up. I'm using OpenSTMPD 6.8 portable and want to filter on DNS names or HELO strings with regular expressions. Therefore I created the following minified config:

Re: Regex in db table

2021-08-25 Thread Edgar Pettijohn
On 8/25/21 2:43 AM, Jack wrote: Hello list, I already posted this on the bug tracker of OpenSMTPD, but maybe I'm doing something wrong in the config and you can help me: I'm using OpenSTMPD 6.8 portable and want to filter on DNS names or HELO strings with regular expressions. Therefore I crea

Regex in db table

2021-08-25 Thread Jack
Hello list, I already posted this on the bug tracker of OpenSMTPD, but maybe I'm doing something wrong in the config and you can help me: I'm using OpenSTMPD 6.8 portable and want to filter on DNS names or HELO strings with regular expressions. Therefore I created the following minified config: