bugfix+correction droits templatisation
This commit is contained in:
parent
854719a110
commit
4ed5bd918f
|
@ -52,7 +52,7 @@ case "$1" in
|
||||||
addgroup --gid 1998 vmail
|
addgroup --gid 1998 vmail
|
||||||
fi
|
fi
|
||||||
if ! getent passwd vmail; then
|
if ! getent passwd vmail; then
|
||||||
adduser -g vmail -u 1998 vmail -d /var/alternc/mail -m
|
useradd -g vmail -u 1998 vmail -d /var/alternc/mail -m
|
||||||
fi
|
fi
|
||||||
chown -R vmail:vmail /var/alternc/mail
|
chown -R vmail:vmail /var/alternc/mail
|
||||||
chmod u+w /var/alternc/mail
|
chmod u+w /var/alternc/mail
|
||||||
|
|
|
@ -79,6 +79,7 @@ install: build
|
||||||
install tools/get_domains_by_account debian/alternc/usr/bin
|
install tools/get_domains_by_account debian/alternc/usr/bin
|
||||||
install tools/get_account_by_domain debian/alternc/usr/bin
|
install tools/get_account_by_domain debian/alternc/usr/bin
|
||||||
install tools/alternc_get_path debian/alternc/usr/bin
|
install tools/alternc_get_path debian/alternc/usr/bin
|
||||||
|
install tools/postfix-add-policy debian/alternc/usr/bin
|
||||||
install src/alternc_reload debian/alternc/usr/bin
|
install src/alternc_reload debian/alternc/usr/bin
|
||||||
install -m 644 po/fr/LC_MESSAGES/alternc-admintools.mo debian/alternc/usr/share/locale/fr/LC_MESSAGES/
|
install -m 644 po/fr/LC_MESSAGES/alternc-admintools.mo debian/alternc/usr/share/locale/fr/LC_MESSAGES/
|
||||||
|
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
alterncpanel ALL = NOPASSWD : /usr/bin/quota, /usr/sbin/setquota
|
alterncpanel ALL = NOPASSWD : /usr/bin/quota, /usr/sbin/setquota
|
||||||
|
vmail ALL = NOPASSWD : /usr/lib/dovecot/deliver
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
connect host=%%dbhost%% dbname=%%dbname%% user=%%db_mail_user%% password=%%db_mail_pwd%%
|
connect=host=%%dbhost%% dbname=%%dbname%% user=%%db_mail_user%% password=%%db_mail_pwd%%
|
||||||
#connect = host=localhost dbname=mails user=testuser password=pass
|
#connect = host=localhost dbname=mails user=testuser password=pass
|
||||||
|
|
||||||
# CREATE TABLE quota (
|
# CREATE TABLE quota (
|
||||||
|
|
|
@ -116,7 +116,7 @@ default_pass_scheme = MD5
|
||||||
# user_query = SELECT dir AS home, user AS uid, group AS gid FROM users where userid = '%u'
|
# user_query = SELECT dir AS home, user AS uid, group AS gid FROM users where userid = '%u'
|
||||||
# user_query = SELECT home, 501 AS uid, 501 AS gid FROM users WHERE userid = '%u'
|
# user_query = SELECT home, 501 AS uid, 501 AS gid FROM users WHERE userid = '%u'
|
||||||
#
|
#
|
||||||
query = SELECT mailbox.path AS home, domaines.compte AS uid, domaines.compte AS gid FROM mailbox JOIN address ON address.id = mailbox.address_id JOIN domaines on domaines.id = address.domain_id WHERE address.address = '%n'
|
user_query = SELECT mailbox.path AS home, domaines.compte AS uid, domaines.compte AS gid FROM mailbox JOIN address ON address.id = mailbox.address_id JOIN domaines on domaines.id = address.domain_id WHERE address.address = '%n'
|
||||||
|
|
||||||
# If you wish to avoid two SQL lookups (passdb + userdb), you can use
|
# If you wish to avoid two SQL lookups (passdb + userdb), you can use
|
||||||
# userdb prefetch instead of userdb sql in dovecot.conf. In that case you'll
|
# userdb prefetch instead of userdb sql in dovecot.conf. In that case you'll
|
||||||
|
|
|
@ -311,7 +311,7 @@ mail_location = maildir:~/Maildir
|
||||||
# used only with INBOX when either its initial creation or dotlocking fails.
|
# used only with INBOX when either its initial creation or dotlocking fails.
|
||||||
# Typically this is set to "mail" to give access to /var/mail.
|
# Typically this is set to "mail" to give access to /var/mail.
|
||||||
#mail_privileged_group =
|
#mail_privileged_group =
|
||||||
mail_privileged_group = mail
|
mail_privileged_group = vmail
|
||||||
|
|
||||||
# Grant access to these supplementary groups for mail processes. Typically
|
# Grant access to these supplementary groups for mail processes. Typically
|
||||||
# these are used to set up access to shared mailboxes. Note that it may be
|
# these are used to set up access to shared mailboxes. Note that it may be
|
||||||
|
|
|
@ -295,7 +295,7 @@ while read line ; do
|
||||||
done < "$postfix_conf"
|
done < "$postfix_conf"
|
||||||
|
|
||||||
# Conviguring delivery used bu Postfix FIXME change script name
|
# Conviguring delivery used bu Postfix FIXME change script name
|
||||||
echo `/usr/bin/postfix-add-policy2 dovecot pipe DRhu vmail:vmail '/usr/lib/dovecot/deliver -f ${sender} -d ${recipient} '`
|
echo `/usr/bin/postfix-add-policy dovecot pipe DRhu vmail:vmail '/usr/bin/sudo /usr/lib/dovecot/deliver -f ${sender} -d ${recipient} '`
|
||||||
|
|
||||||
# Bug #1215: configure mydestination when $FQDN is not in
|
# Bug #1215: configure mydestination when $FQDN is not in
|
||||||
OLDDESTINATION=`postconf mydestination | awk -F '=' '{print $2}'`
|
OLDDESTINATION=`postconf mydestination | awk -F '=' '{print $2}'`
|
||||||
|
|
|
@ -39,7 +39,7 @@ def makepolicy(name, method, flags, user, argv):
|
||||||
# Added using postfix-add-policy script:
|
# Added using postfix-add-policy script:
|
||||||
"""
|
"""
|
||||||
policy = ("""%s unix - n n - 0 %s
|
policy = ("""%s unix - n n - 0 %s
|
||||||
%s user=%s argv=%s
|
flags=%s user=%s argv=%s
|
||||||
""" % (name, method, flags, user, argv))
|
""" % (name, method, flags, user, argv))
|
||||||
additions = header + policy
|
additions = header + policy
|
||||||
return (additions)
|
return (additions)
|
||||||
|
|
Loading…
Reference in New Issue