diff --git a/debian/control b/debian/control
index 63e9f052df9545c32f450665c03745f26a9b7e18..70500c7e27af48bac3628df1606e68b0e28b8344 100644
--- a/debian/control
+++ b/debian/control
@@ -4,6 +4,7 @@ Priority: optional
 Maintainer: ale <ale@incal.net>
 Build-Depends: debhelper (>= 11), dh-golang, golang-any
 Standards-Version: 4.1.3
+XS-Go-Import-Path: git.autistici.org/ai3/tools/postfix-policyd-proxy
 
 Package: postfix-policyd-proxy
 Architecture: any
diff --git a/debian/rules b/debian/rules
index f445bd3bd57368442147fdbeabea63aea8940be6..4cecad8ea4bf8b36826a7067cc2f7a7e782f72c4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,6 @@
 #!/usr/bin/make -f
 
-export DH_GOPKG = git.autistici.org/ai3/tools/postfix-policyd-proxy
-export DH_GOLANG_EXCLUDES = vendor
+export DH_GOLANG_EXCLUDES := vendor
 
 %:
 	dh $@ --with=golang