updated logic
diff --git a/templates/silent-install.conf.j2 b/templates/silent-install.conf.j2
index 24674ba..312c207 100644
--- a/templates/silent-install.conf.j2
+++ b/templates/silent-install.conf.j2
@@ -51,7 +51,7 @@
 SMTPMAILFROM="{{ opdk_smtp_mail_from }} <{{  opdk_user_email }}>"
 
 SKIP_SMTP={{ opdk_skip_smtp }}
-{% if opdk_skip_smtp | bool %}
+{% if opdk_skip_smtp | trim == 'n' %}
 SMTPHOST={{ opdk_smtp_host }}
 SMTPPORT={{ opdk_smtp_port }}
 SMTPUSER={{ opdk_smtp_user }}