install_update_dovecot.sh: Fix (permission) error in configuring quota warnings.
This commit is contained in:
parent
d7aa579f26
commit
44e3afa5ba
@ -98,15 +98,15 @@ auth_mechanisms="plain login"
|
|||||||
|
|
||||||
# - Settings for quota warning sript
|
# - Settings for quota warning sript
|
||||||
# -
|
# -
|
||||||
from_address="warenform gbr <hilfe@kunden.warenform.net>"
|
from_address="o.open <oo@oopen.de>"
|
||||||
reply_to="hilfe@kunden.warenform.net"
|
reply_to="oo@oopen.de"
|
||||||
webmailer="https:\\webmail.initiativenserver.de"
|
webmailer="https://webmail.oopen.de"
|
||||||
salutation="Das WARENFORM-Team
|
salutation="O.OPEN
|
||||||
#
|
|
||||||
#--
|
--
|
||||||
#WARENFORM | Phone: +49 30 / 61 65 17 52 -0
|
O.OPEN | Phone: +49 30 / 290 484 91
|
||||||
#Dresdner Str. 11 | Fax: +49 30 / 61 65 17 52 -66
|
Erkelenzdamm 21 | Fax: +49 30 / 290 484 99
|
||||||
#D-10999 Berlin | http://www.warenform.net"
|
D-10999 Berlin | http://oopen.de"
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# --- End server-specific Settings
|
# --- End server-specific Settings
|
||||||
|
@ -2594,9 +2594,10 @@ fi
|
|||||||
## -
|
## -
|
||||||
## - service quota-warning {
|
## - service quota-warning {
|
||||||
## - executable = script /usr/local/bin/quota-warning.sh
|
## - executable = script /usr/local/bin/quota-warning.sh
|
||||||
## - user = dovecot
|
## - user = vmail
|
||||||
## - unix_listener quota-warning {
|
## - unix_listener quota-warning {
|
||||||
## - user = vmail
|
## - user = vmail
|
||||||
|
## - mode = 0666
|
||||||
## - }
|
## - }
|
||||||
## - }
|
## - }
|
||||||
## -
|
## -
|
||||||
@ -2619,9 +2620,10 @@ plugin {
|
|||||||
|
|
||||||
service quota-warning {
|
service quota-warning {
|
||||||
executable = script /usr/local/bin/quota-warning.sh
|
executable = script /usr/local/bin/quota-warning.sh
|
||||||
user = dovecot
|
user = vmail
|
||||||
unix_listener quota-warning {
|
unix_listener quota-warning {
|
||||||
user = vmail
|
user = vmail
|
||||||
|
mode = 0666
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
@ -2639,7 +2641,7 @@ if $_new ; then
|
|||||||
## - create the user-warning script
|
## - create the user-warning script
|
||||||
## -
|
## -
|
||||||
cat <<EOF >/usr/local/bin/quota-warning.sh
|
cat <<EOF >/usr/local/bin/quota-warning.sh
|
||||||
#!/bin/sh
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# author: zhang huangbin <michaelbibby (at) gmail.com>
|
# author: zhang huangbin <michaelbibby (at) gmail.com>
|
||||||
# purpose: send mail to notify user when his mailbox quota exceeds a
|
# purpose: send mail to notify user when his mailbox quota exceeds a
|
||||||
@ -2651,7 +2653,7 @@ LANG=en_US.UTF-8
|
|||||||
percent=\$1
|
percent=\$1
|
||||||
user=\$2
|
user=\$2
|
||||||
|
|
||||||
cat << EOF | /usr/local/dovecot/libexec/dovecot/deliver -d \${user} -c /usr/local/dovecot/etc/dovecot/dovecot.conf
|
cat << EOF | /usr/local/dovecot/libexec/dovecot/deliver -d \${user} -c /usr/local/dovecot/etc/dovecot/dovecot.conf -o "plugin/quota=dict:User quota::noenforcing:proxy::quota"
|
||||||
date: \`date +"%a, %e %b %Y %H:%M:%S %z"\`
|
date: \`date +"%a, %e %b %Y %H:%M:%S %z"\`
|
||||||
from: $from_address
|
from: $from_address
|
||||||
reply-to: $reply_to
|
reply-to: $reply_to
|
||||||
|
Loading…
Reference in New Issue
Block a user