warn dnslists = list.dnswl.org
set acl_m_greylistreasons =
+ deny condition = ${if and {
+ {eq{$acl_m_tolists}{yes}} \
+ {eq{$acl_m_tonotlists}{}} \
+ {eq{$acl_ishtml}{yes}}
+ } {1}}
+ message = Mailing lists do not accept HTML mail. See http://david.woodhou.se/email.html
+
# Now, call the greylisting code. It'll do its thing if
# $acl_m_greylistreasons is set to indicate that there was something
# suspicious about the message.
warn !condition = $mime_is_rfc822
condition = $mime_is_coverletter
condition = ${if eq{$mime_content_type}{text/html} {1}}
+ set acl_m_ishtml = yes
set acl_m_greylistreasons = Message appears to have HTML content, not just plain text.\n$acl_m_greylistreasons
accept
!senders = @@lsearch;CONFDIR/conf/verify-except-senders
!verify = sender/callout=120s,random
+ warn domains = lists.infradead.org
+ set acl_m_tolists = yes
+ warn !domains = lists.infradead.org
+ set acl_m_tonotlists = yes
+
accept