Add a note to dma.conf stating that debconf may override the user values.
- remove a double space and unfuzzy the translations. Closes: #552586
* Fix a crash when the SMTP server does not support STARTTLS.
Closes: #547594
+ * Always use the user-supplied value from the debconf query for
+ the smarthost and the double-bounce program. This may result in
+ debconf overriding a manually-edited config file, so add a note to
+ dma.conf stating that these values are handled via debconf.
+ Closes: #544663
-- Peter Pentchev <roam@ringlet.net> Wed, 09 Dec 2009 21:08:19 +0200
fi
fi
-if [ -f /etc/dma/dma.conf ]; then
- rval=`awk '$1 == "SMARTHOST" {print $2}' /etc/dma/dma.conf` || true
- db_set dma/relayhost "$rval" || true
- rval=`awk '$1 == "DBOUNCEPROG" {print $2}' /etc/dma/dma.conf` || true
- db_set dma/dbounceprog "$rval" || true
-else
- db_get dma/relayhost || true
- if [ -z "$RET" ]; then
- db_set dma/relayhost "mail.`hostname --domain`" || true
- fi
- db_get dma/defer || true
- if [ -z "$RET" ]; then
- db_set dma/defer 'dbounce-simple-safecat' || true
- fi
+db_get dma/relayhost || true
+if [ -z "$RET" ]; then
+ db_set dma/relayhost "mail.`hostname --domain`" || true
+fi
+db_get dma/defer || true
+if [ -z "$RET" ]; then
+ db_set dma/defer 'dbounce-simple-safecat' || true
fi
state=1
Just stick with the default.
--- a/etc/dma.conf
+++ b/etc/dma.conf
-@@ -2,13 +2,13 @@
+@@ -2,13 +2,15 @@
#
# Your smarthost (also called relayhost). Leave blank if you don't want
# smarthost support.
-#SMARTHOST
++# NOTE: on Debian systems this is handled via debconf!
++# Please use dpkg-reconfigure dma to change this value.
+SMARTHOST mail.example.com
# Use this SMTP port. Most users will be fine with the default (25)
# Path to your spooldir. Just stay with the default.
SPOOLDIR /var/spool/dma
-@@ -39,7 +39,7 @@
+@@ -39,7 +41,7 @@
# Uncomment if you want to defer your mails. This is useful if you are
# behind a dialup line. You have to submit your mails manually with dma -q
};
--- a/etc/dma.conf
+++ b/etc/dma.conf
-@@ -41,6 +41,11 @@
+@@ -43,6 +43,12 @@
# behind a dialup line. You have to submit your mails manually with dma -q
DEFER
+# The double-bounce handler program. Leave this blank if you like dma's
+# default behavior of simply aborting the delivery, or specify the name or
+# full path to a program that will process the double-bounce message.
++# NOTE: on Debian systems this is handled via debconf!
+DBOUNCEPROG dbounce-simple-safecat
+
# Uncomment if you want the bounce message to include the complete original