diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile
index 2b79564cb..ca8860ddb 100644
--- a/mail/postfix/Makefile
+++ b/mail/postfix/Makefile
@@ -1,5 +1,5 @@
PLUGIN_NAME= postfix
-PLUGIN_VERSION= 1.12
+PLUGIN_VERSION= 1.13
PLUGIN_COMMENT= SMTP mail relay
PLUGIN_DEPENDS= postfix-sasl
PLUGIN_MAINTAINER= m.muenz@gmail.com
diff --git a/mail/postfix/pkg-descr b/mail/postfix/pkg-descr
index b40207c69..b319d4237 100644
--- a/mail/postfix/pkg-descr
+++ b/mail/postfix/pkg-descr
@@ -6,6 +6,11 @@ is completely different.
Plugin Changelog
================
+
+1.13
+
+* Allow setting IP version for connecting to rspamd
+
1.12
* Fix sort order to put sender acces in front of recipient access
diff --git a/mail/postfix/src/opnsense/mvc/app/controllers/OPNsense/Postfix/forms/antispam.xml b/mail/postfix/src/opnsense/mvc/app/controllers/OPNsense/Postfix/forms/antispam.xml
index 9db8d64b3..56385df57 100644
--- a/mail/postfix/src/opnsense/mvc/app/controllers/OPNsense/Postfix/forms/antispam.xml
+++ b/mail/postfix/src/opnsense/mvc/app/controllers/OPNsense/Postfix/forms/antispam.xml
@@ -5,4 +5,10 @@
checkbox
This will allow Postfix to connect to rspamd via milter protocol.
+
+ antispam.milter_rspamd
+
+ dropdown
+ Select the IP version for connecting to rspamd.
+
diff --git a/mail/postfix/src/opnsense/mvc/app/models/OPNsense/Postfix/Antispam.xml b/mail/postfix/src/opnsense/mvc/app/models/OPNsense/Postfix/Antispam.xml
index ce585fd57..6e0e02587 100644
--- a/mail/postfix/src/opnsense/mvc/app/models/OPNsense/Postfix/Antispam.xml
+++ b/mail/postfix/src/opnsense/mvc/app/models/OPNsense/Postfix/Antispam.xml
@@ -1,11 +1,19 @@
//OPNsense/postfix/antispam
Postfix Antispam configuration
- 1.0.0
+ 1.0.1
0
Y
+
+ 6
+ Y
+
+ IPv6
+ IPv4
+
+
diff --git a/mail/postfix/src/opnsense/service/templates/OPNsense/Postfix/main.cf b/mail/postfix/src/opnsense/service/templates/OPNsense/Postfix/main.cf
index b7cbb9fe1..fed2225db 100644
--- a/mail/postfix/src/opnsense/service/templates/OPNsense/Postfix/main.cf
+++ b/mail/postfix/src/opnsense/service/templates/OPNsense/Postfix/main.cf
@@ -117,7 +117,7 @@ smtp_sasl_security_options =
{% if helpers.exists('OPNsense.postfix.antispam.enable_rspamd') and OPNsense.postfix.antispam.enable_rspamd == '1' %}
smtpd_milters = inet:localhost:11332
non_smtpd_milters = inet:localhost:11332
-milter_protocol = 6
+milter_protocol = {{ OPNsense.postfix.antispam.milter_rspamd }}
milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen}
milter_default_action = accept
{% endif %}