On Thu, 11 Aug 2016 10:53:14 -0500, /dev/rob0 wrote: > I believe today is my day on the pedantry schedule, so here I go, > picking nits. > > On Thu, Aug 11, 2016 at 12:25:22PM +0200, Richard Klingler wrote: >> Is there an easy way to block a list of prefixes from accessing >> postfix? > > I think by "prefix" (according to $Subject) you meant "top-level > domain." Prefix is not an appropriate term for TLD; "suffix" > (appended text) fits better, but still, is bad terminology. >
No...sorry for confusing...coming from the network world I mean with prefix a subnet (or supernet speaking in the old class-A/B/C/D/E IP address terms ;o) A perfect dynamic solution would be to have an external script launched for each connection, which can lookup if a connecting IP address falls within a prefix (subnet) stored on pgsql databse, and if there is a match, reject the message. This way I won't have to do any postmap/postfix reload on the console but feed the database directly from an own application. Anyway...thanks to all who supplied some great pointers and ideas :-) cheers richard