+<% if has_variable?("clamd") && clamd == "true" -%>
+CLAMAV = clamd:/var/run/clamav/clamd.ctl
+<% else -%>
+# CLAMAV is undefined
+<% end -%>
+<% if has_variable?("postgrey") && postgrey == "true" -%>
+USE_GREYLISTING = 1
+# HAVE_GREYLIST is undefined
+HAVE_POSTGREY = 1
+<% elsif has_variable?("greylistd") && greylistd == "true" -%>
+USE_GREYLISTING = 1
+HAVE_GREYLIST = 1
+# HAVE_POSTGREY is undefined
+<% else -%>
+# HAVE_POSTGREY is undefined
+# HAVE_GREYLIST is undefined
+# USE_GREYLISTING is undefined
+<% end -%>
+<% if has_variable?("policydweight") && policydweight == "true" -%>
+HAVE_POLICYD = 1
+<% else -%>
+# HAVE_POLICYD is undefined
+<% end -%>
+<% if has_variable?("bugs_host") && bugs_host == "true" -%>
+HAVE_USER_DEBBUGS = 1
+<% else -%>
+# HAVE_USER_DEBBUGS is undefined
+<% end -%>
+<% if has_variable?("qa_host") && qa_host == "true" -%>
+HAVE_USER_QA = 1
+<% else -%>
+# HAVE_USER_QA is undefined
+<% end -%>