+### -*-m4-*-
+###
+### Delivery to users via vhosts for distorted.org.uk Exim configuration
+###
+### (c) 2016 Mark Wooding
+###
+
+###----- Licensing notice ---------------------------------------------------
+###
+### This program is free software; you can redistribute it and/or modify
+### it under the terms of the GNU General Public License as published by
+### the Free Software Foundation; either version 2 of the License, or
+### (at your option) any later version.
+###
+### This program is distributed in the hope that it will be useful,
+### but WITHOUT ANY WARRANTY; without even the implied warranty of
+### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+### GNU General Public License for more details.
+###
+### You should have received a copy of the GNU General Public License
+### along with this program; if not, write to the Free Software Foundation,
+### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+SECTION(routers, virtual-sysusers)m4_dnl
+## If the vhost delivers to system users, see if any of them match.
+FILTER_ROUTER(filter_vhost,
+ <:FILTER_LOCALUSER(CONF_userconf_dir/forward.vhost)
+ VHOST
+ condition = DOMKV(sysusers, {$value}{false})
+ local_part_suffix = CONF_user_suffix_list
+ local_part_suffix_optional = true:>)
+
+SECTION(routers, virtual-sysusers-spam)m4_dnl
+## If we're letting general system users receive mail through this vhost then
+## we should ask them about their spam-limit rules.
+USER_SPAMLIMIT_ROUTERS(<:vhost:>,
+ <:CURRENT_LOCAL_PART:>, <:$domain:>, <:$sender_address:>,
+ <:VHOST
+ condition = DOMKV(sysusers, {$value}{false}):>)
+
+###----- That's all, folks --------------------------------------------------