Rough postscreen policy design

2016-09-17 Thread Wietse Venema
This is a rough design for the postscreen policy callout. Wietse High-level description == After checking the postscreen_access_list, postscreen will call out to an optional policy service before making DNS queries or sending the PREGREET banner to the client. The

Re: update on postsuper manual page

2016-09-17 Thread Wietse Venema
Geert Stappers: > > Hi, > > My goal is to have > > mailq | tail -n +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" } > # $7=sender, $8=recipient1, $9=recipient2 > { if ($8 == "u...@example.com" && $9 == "") > print $1 } >

[PATCH 2/2] man/man1/postsuper.1: tail needs -n for +2

2016-09-17 Thread Geert Stappers
It is very long ago that `tail -5 foo` would show the last five lines of foo. These days you need to say tail -n 5 foo The "filtered postsuper delete example" also misses the -n. This patch adds the -n When in doubt about "compatiblity", check * http://www.unix.com/man-page/posix/1p/tail/

[PATCH 1/2] man/man1/postsuper.1: regular single quote for AWK

2016-09-17 Thread Geert Stappers
For some reason were the single quotes at the AWK command made special. The strange single quote breaks copy-and-paste the "filtered postsuper delete example". Having regular single quotes makes the example usable again. --- man/man1/postsuper.1 | 4 ++-- 1 file changed, 2 insertions(+), 2

update on postsuper manual page

2016-09-17 Thread Geert Stappers
Hi, My goal is to have mailq | tail -n +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" } # $7=sender, $8=recipient1, $9=recipient2 { if ($8 == "u...@example.com" && $9 == "") print $1 } ' | tr -d '*!' |