Re: PATCH: Wildcard key and inline-maps

2015-07-29 Thread Wietse Venema
Wietse Venema: > Dominik Chilla: > > As Wietse already pointed out, postconf doesn?t cover this case yet: > > /usr/sbin/postconf: warning: main.cf: syntax error after '}' in > > "{send...@zwackl.de=DUNNO},static:{REJECT BAD SENDER}}" > > /usr/sbin/postconf: warning: main.cf: syntax error after '}'

Re: PATCH: Wildcard key and inline-maps

2015-07-28 Thread Wietse Venema
Dominik Chilla: > As Wietse already pointed out, postconf doesn?t cover this case yet: > /usr/sbin/postconf: warning: main.cf: syntax error after '}' in > "{send...@zwackl.de=DUNNO},static:{REJECT BAD SENDER}}" > /usr/sbin/postconf: warning: main.cf: syntax error after '}' in > "{recipie...@zwack

Re: PATCH: Wildcard key and inline-maps

2015-07-28 Thread Dominik Chilla
Am 29.07.2015 um 00:01 schrieb Viktor Dukhovni: On Tue, Jul 28, 2015 at 11:37:19PM +0200, Dominik Chilla wrote: Sorry, but it still doesnt work. I took a "vanilla" 3.1-20150721 and patched it again, checked if the patch applied correctly (searching for register_maps_byname() in smtpd_check.c

Re: PATCH: Wildcard key and inline-maps

2015-07-28 Thread Viktor Dukhovni
On Tue, Jul 28, 2015 at 11:37:19PM +0200, Dominik Chilla wrote: > Sorry, but it still doesnt work. I took a "vanilla" 3.1-20150721 and patched > it again, checked if the patch applied correctly (searching for > register_maps_byname() in smtpd_check.c etc.) and compiled the sources. > > When I lea

Re: PATCH: Wildcard key and inline-maps

2015-07-28 Thread Wietse Venema
Dominik Chilla: > Sorry, but it still doesnt work. I took a "vanilla" 3.1-20150721 and > patched it again, checked if the patch applied correctly (searching for > register_maps_byname() in smtpd_check.c etc.) and compiled the sources. > When I leave out the leading "{" and the ending "}" it see

Re: PATCH: Wildcard key and inline-maps

2015-07-28 Thread Dominik Chilla
Sorry, but it still doesnt work. I took a "vanilla" 3.1-20150721 and patched it again, checked if the patch applied correctly (searching for register_maps_byname() in smtpd_check.c etc.) and compiled the sources. When I leave out the leading "{" and the ending "}" it seems to work, but only if

Re: PATCH: Wildcard key and inline-maps

2015-07-27 Thread Wietse Venema
> /usr/sbin/postconf: warning: main.cf: syntax error after '}' in "{ > send...@zwackl.de=OK }, static: { REJECT BAD SENDER } }" There should be no SPACE after ":". Also, I haven't tested this with postconf, assuming that it would be fine as long as every ":{ has a matching "}". Wietse

Re: PATCH: Wildcard key and inline-maps

2015-07-26 Thread Dominik Chilla
I applied your patch to version 3.1-20150721 successfully and specified the map like this: smtpd_sender_restrictions = [...] check_sender_access { inline:{ send...@example.org=OK }, static: { REJECT BAD SENDER } } Unfortunately, while reloading/restarting postfix following warning/error ap

Re: PATCH: Wildcard key and inline-maps

2015-07-26 Thread Dominik Chilla
Hello Wietse, thank you for your extremly fast solution! Of course I´ll test your patch ASAP. I appreciate your work very much. A lot of greetings from Germany, Dominik Am 26.07.2015 um 01:46 schrieb Wietse Venema: Wietse Venema: I'm thinking of adding multi-table lookup (similar to canoni

PATCH: Wildcard key and inline-maps

2015-07-25 Thread Wietse Venema
Wietse Venema: > > I'm thinking of adding multi-table lookup (similar to canonical_maps, > > transport_maps, and other _maps features that can search more than > > one table. Then one could say: > > > > check_mumble_access maps:{inline:{key=value, ...}, static:{reject text...}} > > > > Being ab