From a0ef23766b413e3aebbfbfceff40610af594dadd Mon Sep 17 00:00:00 2001
From: Stephen Gran <steve@lobefin.net>
Date: Sat, 18 Feb 2012 12:49:50 +0000
Subject: [PATCH] this should slow down spam a bit

Signed-off-by: Stephen Gran <steve@lobefin.net>
---
 modules/exim/templates/eximconf.erb | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/exim/templates/eximconf.erb b/modules/exim/templates/eximconf.erb
index 453d11b0..53fad43b 100644
--- a/modules/exim/templates/eximconf.erb
+++ b/modules/exim/templates/eximconf.erb
@@ -621,6 +621,13 @@ check_recipient:
 	  hosts         = !+debianhosts
 	  message       = mail from <$sender_address> not allowed externally
 
+<%- if nodeinfo['mailrelay'] -%>
+  deny    local_parts   = +local_only_users
+          domains       = +mailhubdomains
+          !hosts        = +debianhosts
+          message       = mail for <$local_part@$domain> not allowed externally
+
+<%- end -%>
   deny    condition     = ${if match_domain{$sender_address_domain}{+virtual_domains}{1}{0}}
           condition     = ${if exists {${extract{directory}{VDOMAINDATA}{${value}/neversenders}}}{1}{0}}
           condition     = ${if match_local_part {$sender_address_local_part}{${extract{directory}{VDOMAINDATA}{${value}/neversenders}}}{1}{0}}
-- 
2.39.5