Changeset 3144
- Timestamp:
- 05/02/12 15:03:48 (13 months ago)
- Location:
- alternc/trunk
- Files:
-
- 9 edited
-
bureau/class/m_mail_localbox.php (modified) (2 diffs)
-
debian/alternc.postinst (modified) (1 diff)
-
debian/changelog (modified) (1 diff)
-
etc/alternc/templates/dovecot/dovecot-dict-quota.conf (modified) (1 diff)
-
etc/alternc/templates/dovecot/dovecot-sql.conf (modified) (1 diff)
-
etc/alternc/templates/dovecot/dovecot.conf (modified) (2 diffs)
-
etc/alternc/templates/postfix/mydomain.cf (modified) (1 diff)
-
install/alternc.install (modified) (3 diffs)
-
install/mysql.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
alternc/trunk/bureau/class/m_mail_localbox.php
r3135 r3144 63 63 $err->log("localbox","set_localbox"); 64 64 $path="mail/"; 65 //if(!$db->query("select distinct left(ad.address,1) as letter,d.domaine from address ad,where ad.id = $mail_id ;"));66 65 if(!$db->query("select distinct left(ad.address,1) as letter,ad.address ,d.domaine from address ad, domaines d where ad.domain_id = d.id and ad.id = $mail_id order by letter;")); 67 66 … … 71 70 $path="/var/alternc/mail/".$db->f('letter')."/".$db->f('address')."_".$db->f('domaine'); 72 71 //FIXME faire un touch de la maildir si dovecot ne sait pas le faire. 73 if(!$db->query("INSERT into mailbox (address_id,path ) values ($mail_id,'$path');"));72 if(!$db->query("INSERT into mailbox (address_id,path,quota) values ($mail_id,'$path',50);")); 74 73 75 74 } -
alternc/trunk/debian/alternc.postinst
r3142 r3144 57 57 chown -R vmail:vmail /var/alternc/mail 58 58 chmod u+w /var/alternc/mail 59 59 chmod -R g+w /var/alternc/mail 60 60 61 61 # build local.sh if it does not exist -
alternc/trunk/debian/changelog
r3139 r3144 1 alternc (1.1+nmu3) stable; urgency=low 2 3 * Templating full configuration of postfix & dovecot 4 * bugfixes in mysql database configuration 5 * adding default quota (to use with dovecot) in local mailbox creation 6 7 -- Squidly <squidly@nnx.com> Wed, 02 May 2012 14:51:49 +0200 8 1 9 alternc (1.1+nmu2) stable; urgency=low 2 10 -
alternc/trunk/etc/alternc/templates/dovecot/dovecot-dict-quota.conf
r3137 r3144 1 1 2 connect host=%%dbhost%% dbname=%%dbname%% user=%%db user%% password=%%dbpwd%%2 connect host=%%dbhost%% dbname=%%dbname%% user=%%db_mail_user%% password=%%db_mail_pwd%% 3 3 #connect = host=localhost dbname=mails user=testuser password=pass 4 4 -
alternc/trunk/etc/alternc/templates/dovecot/dovecot-sql.conf
r3142 r3144 68 68 # http://wiki.dovecot.org/Authentication/PasswordSchemes 69 69 # 70 default_pass_scheme = PLAIN-MD570 default_pass_scheme = MD5 71 71 72 72 # passdb query to retrieve the password. It can return fields: -
alternc/trunk/etc/alternc/templates/dovecot/dovecot.conf
r3142 r3144 1196 1196 # quota_rule = *:storage=1048576 1197 1197 quota_rule = *:storage=100M 1198 quota_rule2 = Trash:storage=10M 1198 1199 # quota_rule2 = Trash:storage=102400 1199 1200 # User has now 1GB quota, but when saving to Trash mailbox the user gets … … 1213 1214 # Note that % needs to be escaped as %%, otherwise "% " expands to empty. 1214 1215 # quota_warning = storage=95%% /usr/local/bin/quota-warning.sh 95 1215 # quota_warning = storage=95%% /usr/local/bin/quota-warning.sh 951216 1216 # quota_warning2 = storage=80%% /usr/local/bin/quota-warning.sh 80 1217 quota_warning = storage=80%% /usr/local/bin/quota-warning.sh 80 1217 quota_warning = storage=95%% /usr/local/bin/quota-warning.sh 95 1218 quota_warning2 = storage=80%% /usr/local/bin/quota-warning.sh 80 1218 1219 #quota = maildir 1219 1220 quota = dict:user::proxy::quotadict -
alternc/trunk/etc/alternc/templates/postfix/mydomain.cf
r3142 r3144 7 7 hosts =%%dbhost%% 8 8 dbname = %%dbname%% 9 query = select domaines.domaine from domaines join address on address.id=domaines.id where concat(address.address,'@',domaines.domaine)='%s' and gesmx=1; 10 9 query = select domaines.domaine from domaines where domaine='%s' and gesmx=1; -
alternc/trunk/install/alternc.install
r3142 r3144 43 43 if [ -d /etc/postfix ]; then 44 44 CONFIG_FILES="$CONFIG_FILES etc/postfix/myalias.cf etc/postfix/myrelay.cf 45 etc/postfix/mydomain.cf etc/postfix/mygid.cf 45 etc/postfix/mydomain.cf etc/postfix/mygid.cf etc/postfix/myquota.cf 46 46 etc/postfix/myvirtual.cf etc/postfix/sasl/smtpd.conf" 47 47 fi … … 55 55 if [ -e /etc/default/saslauthd ]; then 56 56 CONFIG_FILES="$CONFIG_FILES etc/default/saslauthd" 57 fi 58 59 if [ -e /etc/dovecot/dovecot.conf ]; then 60 CONFIG_FILES="$CONFIG_FILES etc/dovecot/dovecot.conf etc/dovecot/dovecot-sql.conf etc/dovecot/dovecot-dict-quota.conf" 57 61 fi 58 62 … … 265 269 266 270 # Attribute the correct rights to critical postfix files 267 if [ -e /etc/postfix/myalias.cf -o -e /etc/postfix/mydomain.cf -o -e /etc/postfix/mygid.cf -o -e /etc/postfix/myvirtual.cf -o -e /etc/postfix/myrelay.cf ]; then271 if [ -e /etc/postfix/myalias.cf -o -e /etc/postfix/mydomain.cf -o -e /etc/postfix/mygid.cf -o -e /etc/postfix/myvirtual.cf -o -e /etc/postfix/myrelay.cf -o -e /etc/postfix/myquota.cf ]; then 268 272 chown root:postfix /etc/postfix/my* 269 273 chmod 640 /etc/postfix/my* -
alternc/trunk/install/mysql.sql
r3142 r3144 246 246 `update_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- Update date, for technical usage only. 247 247 PRIMARY KEY (`id`), 248 UNIQUE INDEX `domain_id_idx` (`domain_id`), 249 UNIQUE KEY `address` (`address`) 248 UNIQUE INDEX `fk_domain_id` (`domain_id`,`address`) 250 249 ) COMMENT = 'This is the main address table. It represents an address as in RFC2822'; 251 250
Note: See TracChangeset
for help on using the changeset viewer.
