Changeset 3145


Ignore:
Timestamp:
05/03/12 15:46:04 (13 months ago)
Author:
squidly
Message:

bugfix+correction droits templatisation

Location:
alternc/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • alternc/trunk/debian/alternc.postinst

    r3144 r3145  
    5353    fi 
    5454    if ! getent passwd vmail; then 
    55        adduser -g vmail -u 1998 vmail -d /var/alternc/mail -m  
     55       useradd -g vmail -u 1998 vmail -d /var/alternc/mail -m  
    5656    fi  
    5757    chown -R vmail:vmail /var/alternc/mail 
  • alternc/trunk/debian/rules

    r2965 r3145  
    8080        install tools/get_account_by_domain debian/alternc/usr/bin 
    8181        install tools/alternc_get_path debian/alternc/usr/bin 
     82        install tools/postfix-add-policy debian/alternc/usr/bin 
    8283        install src/alternc_reload debian/alternc/usr/bin 
    8384        install -m 644 po/fr/LC_MESSAGES/alternc-admintools.mo debian/alternc/usr/share/locale/fr/LC_MESSAGES/ 
  • alternc/trunk/etc/alternc/alternc-sudoers

    r3137 r3145  
    11alterncpanel    ALL = NOPASSWD : /usr/bin/quota, /usr/sbin/setquota 
     2vmail           ALL = NOPASSWD : /usr/lib/dovecot/deliver 
  • alternc/trunk/etc/alternc/templates/dovecot/dovecot-dict-quota.conf

    r3144 r3145  
    11 
    2 connect host=%%dbhost%% dbname=%%dbname%% user=%%db_mail_user%% password=%%db_mail_pwd%% 
     2connect=host=%%dbhost%% dbname=%%dbname%% user=%%db_mail_user%% password=%%db_mail_pwd%% 
    33#connect = host=localhost dbname=mails user=testuser password=pass 
    44 
  • alternc/trunk/etc/alternc/templates/dovecot/dovecot-sql.conf

    r3144 r3145  
    117117#   user_query = SELECT home, 501 AS uid, 501 AS gid FROM users WHERE userid = '%u' 
    118118# 
    119 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' 
     119user_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' 
    120120 
    121121# If you wish to avoid two SQL lookups (passdb + userdb), you can use 
  • alternc/trunk/etc/alternc/templates/dovecot/dovecot.conf

    r3144 r3145  
    312312# Typically this is set to "mail" to give access to /var/mail. 
    313313#mail_privileged_group = 
    314 mail_privileged_group = mail 
     314mail_privileged_group = vmail 
    315315 
    316316# Grant access to these supplementary groups for mail processes. Typically 
  • alternc/trunk/install/alternc.install

    r3144 r3145  
    296296 
    297297# Conviguring delivery used bu Postfix FIXME change script name 
    298 echo `/usr/bin/postfix-add-policy2 dovecot pipe DRhu vmail:vmail  '/usr/lib/dovecot/deliver -f ${sender} -d ${recipient} '` 
     298echo `/usr/bin/postfix-add-policy dovecot pipe DRhu vmail:vmail  '/usr/bin/sudo /usr/lib/dovecot/deliver -f ${sender} -d ${recipient} '` 
    299299 
    300300# Bug #1215: configure mydestination when $FQDN is not in 
  • alternc/trunk/tools/postfix-add-policy

    r3142 r3145  
    4040""" 
    4141    policy = ("""%s unix    -       n       n       -       0     %s 
    42     %s  user=%s argv=%s 
     42   flags=%s  user=%s argv=%s 
    4343""" % (name, method, flags, user, argv)) 
    4444    additions = header + policy 
Note: See TracChangeset for help on using the changeset viewer.