diff --git a/conf/rspamd-basic.xml.in b/conf/rspamd-basic.xml.in
index af68f5285..93206d424 100644
--- a/conf/rspamd-basic.xml.in
+++ b/conf/rspamd-basic.xml.in
@@ -10,7 +10,7 @@
@LOCALSTATES_PREFIX@/rspamd.pid
- regexp,surbl,chartable,fuzzy_check,spf
+ regexp,surbl,chartable,fuzzy_check,spf,dkim
250M
@@ -226,6 +226,11 @@
R_FUZZY2
R_FUZZY3
+
+ R_DKIM_REJECT
+ R_DKIM_TEMPFAIL
+ R_DKIM_ALLOW
+
R_SPF_FAIL
R_SPF_SOFTFAIL
@@ -443,6 +448,60 @@
1d
+
+
+
+ 2048
+ 1d
+
+
+
+
+
+
+
+ 1m
+
+
+ no
+
+
+ no
+
+
+
+
+
+
+
+
+
+
+ to:100:0.033333333
+
+ to_ip:30:0.025
+
+ to_ip_from:20:0.01666666667
+
+
+ bounce_to:10:0.000555556
+
+ bounce_to_ip:5:0.000277778
+
+
+
+
+
+ postmaster,mailer-daemon
+
+
+ 5
+
+
diff --git a/debian/changelog b/debian/changelog
index bf11658e8..3bbdacd7c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,19 @@
+rspamd (0.5.0-1) unstable; urgency=low
+
+ * Upgrade to 0.5.0
+ - Added SMTP lightweight balancing proxy with XCLIENT support.
+ - Added lua bindings for upstreams objects and API.
+ - New pre-filters are implemented to support initial checking for messages.
+ - Added ratelimit plugin that uses redis protocol to store data.
+ - Added ipv6 support to spf and some other modules.
+ - Unbreak spf plugin.
+ - Allow options with the same name be threated as list.
+ - DKIM plugin an parsing code was added.
+ - Separate build system to put logic in several shared libraries.
+ - Many bugfixes.
+
+ -- Vsevolod Stakhov Sat, 9 Jun 2012 15:59:00 +0400
+
rspamd (0.4.7-1) unstable; urgency=low
* Upgrade to 0.4.7
diff --git a/debian/rules b/debian/rules
index 3ae78f020..69d125cfa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,4 +3,4 @@
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/cmake.mk
-DEB_CMAKE_NORMAL_ARGS+= -DETC_PREFIX=/etc -DMAN_PREFIX=/usr/share/man -DLOCALSTATES_PREFIX=/var/run
+DEB_CMAKE_NORMAL_ARGS+= -DETC_PREFIX=/etc -DMAN_PREFIX=/usr/share/man -DLOCALSTATES_PREFIX=/var/run -DLIBDIR=/usr/lib -DINCLUDEDIR=/usr/inlude -DNO_SHARED=ON