Only allow trusted relays to send mail to logs alias
authorClinton Ebadi <clinton@unknownlamer.org>
Tue, 19 May 2015 05:43:09 +0000 (01:43 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Tue, 19 May 2015 05:43:09 +0000 (01:43 -0400)
Spammers were directly sending spam to logs@, this alias is for
internal use only so just block all external senders.

conf.d/acl/30_exim4-config_check_rcpt

index b2a673c..b5050d5 100644 (file)
@@ -351,6 +351,15 @@ acl_check_rcpt:
   .include CHECK_RCPT_LOCAL_ACL_FILE
   .endif
 
+  # hcoop-change: 2015-03-19 clinton_admin
+  # testing if this will reject the fucktons of spam hitting logs@,
+  # most of it fscking signed with valid DKIM keys and evading
+  # spamassassin.
+  deny
+       log_message = rejecting non-hcoop host sending to logs
+       recipients = logs@*.hcoop.net
+       !hosts = +relay_from_hosts
+
 
   #############################################################################
   # This check is commented out because it is recognized that not every