On 10/14/2013 10:50 AM martin f krafft wrote:
> 
> Let's not make it our job to prevent users from messing up.
> 
> But I think it'd be reasonable to add a short comment to each of
> those files, with the appropriate warning. Unless the package just
> copies them to /etc/postfix directly and sets the permissions…

I think it would not be very useful to repeat `installation
instructions' in each pgsql-*.cf file.
README.Debian could be extended in order to show how to install the
pgsql-*.cf files with proper permissions. See attached patch.

> I'd like to leave it to upstream to decide.

Yeah, upstream's install.sh script¹ sets proper permissions. :-)

10      PF_CONFDIR=$(postconf -h config_directory)
11      PF_GID=$(id -g $(postconf -h mail_owner))
22      INSTALL_OPTS_CF="-b -m 0640 -g ${PF_GID} -o 0 -p"
33      install ${INSTALL_OPTS_CF} postfix/pgsql-*.cf ${PF_CONFDIR}/


Regards,
Pascal

--
1 =
http://anonscm.debian.org/gitweb/?p=collab-maint/vmm.git;a=blob_plain;f=install.sh;hb=HEAD

-- 
Ubuntu is an ancient African word meaning “I can’t install Debian.”
                                                         -- unknown
From b95b9df09f147186387730f5c7e205de586c2f69 Mon Sep 17 00:00:00 2001
From: Pascal Volk <u...@localhost.localdomain.org>
Date: Mon, 14 Oct 2013 19:21:02 +0000
Subject: [PATCH] README.Debian: Added install instructions for pgsql* files

Signed-off-by: Pascal Volk <u...@localhost.localdomain.org>
---
 debian/README.Debian | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/debian/README.Debian b/debian/README.Debian
index fcf422a..1b5b3b5 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -1,5 +1,5 @@
 vmm for Debian
---------------
+==============
 
 The vmm package provides the VirtualMailManager software, but it does not
 attempt to do any autoconfiguration. I believe that this is better than trying
@@ -7,6 +7,19 @@ to work the magic and integrate with Postfix and PostgreSQL, because I expect
 vmm to be used mainly by those who will want to customise the configuration
 anyway.
 
+Installing Postfix PostgreSQL client configuration files
+--------------------------------------------------------
+
+  The directory /usr/share/doc/vmm/examples/postfix contains pgsql client
+  configuration files for Postfix. An easy way to install them would be:
+
+   install -g postfix -m 0640 /usr/share/doc/vmm/examples/postfix/pgsql-*.cf \
+   /etc/postfix
+
+  Don't forget to edit the pgsql-*.cf files. At least `password' and
+  `dbname' should be modified.
+
+
 Please find the instructions for the configuration in the file
 /usr/share/doc/vmm/INSTALL.gz and follow to your liking.
 
-- 
1.8.4.rc3

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to