Move A comment inside an if test

Having this comment outside the test means it will appear even if dkim is
disabled - not desirable.
Fix error in quoting for host lookups

I had quite a bit of trouble getting this section working originally and it
seems I didn't back out the quoting when I fixed it with {%raw %} tags.
Another issue with comments outside an if test

This is the test for SPF which appears to have a bug in it. While bug hunting I
noticed the same problem faced a few commits ago with dkim and will fix it now.
Add new acl acl_local_deny_exceptions from Debian template

This is needed by my SPF verification code which was also taken from Debian.