Signed-off-by: Stephen Gran <steve@lobefin.net>
+<%=
+out = ""
+if nodeinfo['smarthost'].empty?
+ out = "
# These are in HELO acl so that they are only run once. They increment a counter,
# so we don't want it to increment per rcpt to.
# These are in HELO acl so that they are only run once. They increment a counter,
# so we don't want it to increment per rcpt to.
condition = ${if match {${lc:$sender_helo_name}}{\N.*[bcdfghjklmnpqrstvwxz]{7,}.*\.[a-z]+$\N}}
log_message = random HELO
set acl_c_scr = ${eval:$acl_c_scr+5}
condition = ${if match {${lc:$sender_helo_name}}{\N.*[bcdfghjklmnpqrstvwxz]{7,}.*\.[a-z]+$\N}}
log_message = random HELO
set acl_c_scr = ${eval:$acl_c_scr+5}
# Implicit, but simpler to just say it
accept
# Implicit, but simpler to just say it
accept