diff options
Diffstat (limited to 'mail/dovecot/files')
-rw-r--r-- | mail/dovecot/files/dovecot.sh.in | 4 | ||||
-rw-r--r-- | mail/dovecot/files/patch-dovecot-example.conf | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/mail/dovecot/files/dovecot.sh.in b/mail/dovecot/files/dovecot.sh.in index 3db31630ed93..57a8dabd5f4a 100644 --- a/mail/dovecot/files/dovecot.sh.in +++ b/mail/dovecot/files/dovecot.sh.in @@ -30,8 +30,8 @@ dovecot_prestart() { # Ensure runtime directories exist with correct permissions local base user gid base=/var/run/${name} - user=$(/usr/bin/awk -F '[[:space:]]*=[[:space:]]*' '/^[[:space:]]*login_user[[:space:]]*=/ { print $2 }' ${required_files})
- gid=$(/usr/sbin/pw usershow -n "${user:-${name}}" 2>/dev/null | /usr/bin/cut -d: -f4)
+ user=$(/usr/bin/awk -F '[[:space:]]*=[[:space:]]*' '/^[[:space:]]*login_user[[:space:]]*=/ { print $2 }' ${required_files}) + gid=$(/usr/sbin/pw usershow -n "${user:-${name}}" 2>/dev/null | /usr/bin/cut -d: -f4) /usr/bin/install -o root -g wheel -m 0755 -d ${base} /usr/bin/install -o root -g ${gid} -m 0750 -d ${base}/login } diff --git a/mail/dovecot/files/patch-dovecot-example.conf b/mail/dovecot/files/patch-dovecot-example.conf index e6b5d4421dc0..ec434b3af8ec 100644 --- a/mail/dovecot/files/patch-dovecot-example.conf +++ b/mail/dovecot/files/patch-dovecot-example.conf @@ -1,5 +1,5 @@ ---- dovecot-example.conf.orig 2008-10-26 11:00:45.000000000 -0400
-+++ dovecot-example.conf 2008-10-26 11:00:45.000000000 -0400
+--- dovecot-example.conf.orig 2008-10-26 11:00:45.000000000 -0400 ++++ dovecot-example.conf 2008-10-26 11:00:45.000000000 -0400 @@ -20,7 +20,7 @@ # Protocols we want to be serving: imap imaps pop3 pop3s @@ -119,7 +119,7 @@ # drop away the domain if it was given, or "%n-AT-%d" would change the '@' into # "-AT-". This translation is done after auth_username_translation changes. -#auth_username_format = -+auth_username_format = %Lu
++auth_username_format = %Lu # If you want to allow master users to log in by specifying the master # username within the normal username string (ie. not using SASL mechanism's |