summaryrefslogtreecommitdiff
path: root/packages/postfix/files
diff options
context:
space:
mode:
authorccsmart <ccsmart@smartpal.de>2005-08-06 17:44:20 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-08-06 17:44:20 +0000
commit4e11e1c81b2e2f22b6d492af1fbddbc1650b2b76 (patch)
tree752bda92c09f71698da3d2b877bdfb3bf286cd50 /packages/postfix/files
parent057a7cfc3e2179a9b24d496cd79733824865a693 (diff)
Polishing maildir based install defaults.
Diffstat (limited to 'packages/postfix/files')
-rw-r--r--packages/postfix/files/main.cf_2.014
1 files changed, 11 insertions, 3 deletions
diff --git a/packages/postfix/files/main.cf_2.0 b/packages/postfix/files/main.cf_2.0
index 0bfe4afc1d..1c50b4ae00 100644
--- a/packages/postfix/files/main.cf_2.0
+++ b/packages/postfix/files/main.cf_2.0
@@ -1,11 +1,18 @@
+#!/bin/sh
+cat <<EOF
mydomain=sample.com
virtual_mailbox_domains = sample.com, other.net
-virtual_mailbox_base = /var/spool/vmail
virtual_mailbox_maps = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual_alias
-virtual_uid_maps = static:vmail
-virtual_gid_maps = static:vmail
+
+# You'll start with the following lines for maildir storage
+virtual_mailbox_base = /var/spool/vmail
+virtual_uid_maps = static:`grep vmail /etc/passwd | cut -d ":" -f 3`
+virtual_gid_maps = static:`grep vmail /etc/passwd | cut -d ":" -f 4`
+
+# You'll start with the following lines for IMAP storage
+
config_directory = /etc/postfix
sample_directory = /etc/postfix
@@ -23,3 +30,4 @@ debug_peer_level = 2
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
+EOF