Changeset 3137
- Timestamp:
- 04/13/12 11:57:28 (14 months ago)
- Location:
- alternc/trunk
- Files:
-
- 2 added
- 10 edited
-
debian/alternc.dirs (modified) (1 diff)
-
debian/alternc.postinst (modified) (1 diff)
-
debian/alternc.preinst (modified) (1 diff)
-
debian/changelog (modified) (1 diff)
-
debian/control (modified) (1 diff)
-
etc/alternc/alternc-sudoers (added)
-
etc/alternc/templates/dovecot/dovecot-dict-quota.conf (added)
-
etc/alternc/templates/dovecot/dovecot-sql.conf (modified) (2 diffs)
-
etc/alternc/templates/dovecot/dovecot.conf (modified) (19 diffs)
-
etc/alternc/templates/postfix/myalias.cf (modified) (1 diff)
-
etc/alternc/templates/postfix/myvirtual.cf (modified) (1 diff)
-
install/mysql.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
alternc/trunk/debian/alternc.dirs
r2997 r3137 9 9 etc/postfix 10 10 etc/squirrelmail 11 /etc/sudoers.d 11 12 usr/bin 12 13 usr/lib/alternc -
alternc/trunk/debian/alternc.postinst
r2974 r3137 225 225 # Update l18n files 226 226 /usr/share/alternc/install/dopo.sh 227 228 #sudo stuff allowing alterncpanel to use quota 229 if [ -d /etc/sudoers.d ]; then 230 cp /etc/alternc/alternc-sudoers /etc/sudoers.d/alternc-sudoers 231 chmod 0440 /etc/sudoers.d/alternc-sudoers 232 else 233 echo "running an older version of sudo" 234 echo "copy content of /usr/share/doc/aegir-provision/examples/example.sudoers into /etc/sudoers for aegir to run properly" 235 fi 227 236 228 237 # important: postinst gele sans ca -
alternc/trunk/debian/alternc.preinst
r2949 r3137 6 6 7 7 # Create AlternC Panel user for web server 8 addgroup --system --gid 1999 alterncpanel 8 if ! getent group alterncpanel ; then 9 addgroup --system --gid 1999 alterncpanel 10 fi 11 if ! getent passwd alterncpanel ; then 9 12 adduser --system --home "/etc/alternc/.alterncpanel" \ 10 13 --disabled-password --uid 1999 --ingroup alterncpanel alterncpanel 11 14 fi 12 15 case "$1" in 13 16 install) -
alternc/trunk/debian/changelog
r3132 r3137 1 alternc (1.1+nmu2) stable; urgency=low 2 3 * Templating of dovecot and postfix 4 adding a view for dovecot usage (dovecot_view) 5 adding of user vmail dedicated to the mail system 6 * Bugfixes 7 8 -- root <root@debian-prime.in.nnx.com> Sat, 03 Mar 2012 13:09:06 +0100 9 1 10 alternc (1.1+nmu1) stable; urgency=low 2 11 -
alternc/trunk/debian/control
r3106 r3137 11 11 Architecture: all 12 12 Pre-depends: debconf (>= 0.5.00) | debconf-2.0 13 Depends: debianutils (>= 1.13.1), apache2-mpm-itk, libapache2-mod-php5, php5-mysql, phpmyadmin, postfix, proftpd-mod-mysql, proftpd-basic, squirrelmail, squirrelmail-locales, bind9, wget, rsync, quota, ca-certificates, locales, perl-suid, perl, postfix-mysql, wwwconfig-common, sasl2-bin, fam | gamin, libsasl2-modules, php5-cli, lockfile-progs (>= 0.1.9), gettext (>= 0.10.40-5), adduser, mysql-client, dnsutils, bash, acl, dovecot-common (>= 1:1.2.15), dovecot-imapd, dovecot-pop3d13 Depends: debianutils (>= 1.13.1), apache2-mpm-itk, libapache2-mod-php5, php5-mysql, phpmyadmin, postfix, proftpd-mod-mysql, proftpd-basic, squirrelmail, squirrelmail-locales, bind9, wget, rsync, quota, ca-certificates, locales, perl-suid, perl, postfix-mysql, wwwconfig-common, sasl2-bin, fam | gamin, libsasl2-modules, php5-cli, lockfile-progs (>= 0.1.9), gettext (>= 0.10.40-5), sudo, adduser, mysql-client, dnsutils, bash, acl, dovecot-common (>= 1:1.2.15), dovecot-imapd, dovecot-pop3d 14 14 Recommends: mysql-server, dovecot-managesieved, dovecot-sieve, dovecot-mysql 15 15 Conflicts: alternc-admintools, alternc-awstats (< 1.0), alternc-webalizer (<= 0.9.4), alternc-mailman (< 2.0), courier-authdaemon -
alternc/trunk/etc/alternc/templates/dovecot/dovecot-sql.conf
r3005 r3137 117 117 # user_query = SELECT home, 501 AS uid, 501 AS gid FROM users WHERE userid = '%u' 118 118 # 119 user_query = \ 120 SELECT concat(concat(%%ALTERNC_LOC%%, '/'), mailbox.path) AS home, domaines.compte AS uid, domaines.compte AS gid \ 121 FROM mailbox JOIN address ON address.id = mailbox.address_id JOIN domaines on domaines.id = address.domain_id WHERE '%u' IN (address.address, replace(address.address, '@', '_')) 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' 122 120 123 121 # If you wish to avoid two SQL lookups (passdb + userdb), you can use … … 125 123 # also have to return userdb fields in password_query prefixed with "userdb_" 126 124 # string. For example: 127 password_query = \ 128 SELECT '%u' AS user, address.password, \ 129 concat(concat(%%ALTERNC_LOC%%, '/'), mailbox.path) AS userdb_home, domaines.compte AS userdb_uid, domaines.compte AS userdb_gid \ 130 FROM mailbox JOIN address ON address.id = mailbox.address_id JOIN domaines on domaines.id = address.domain_id WHERE '%u' IN (address.address, replace(address.address, '@', '_')) 125 password_query = SELECT user, password, userdb_home, userdb_uid, userdb_gid,userdb_quota_rule FROM dovecot_view where user= '%u'; 131 126 -
alternc/trunk/etc/alternc/templates/dovecot/dovecot.conf
r2799 r3137 51 51 # matches the local IP (ie. you're connecting from the same computer), the 52 52 # connection is considered secure and plaintext authentication is allowed. 53 disable_plaintext_auth = no53 disable_plaintext_auth = yes 54 54 55 55 # Should all IMAP and POP3 processes be killed when Dovecot master process … … 93 93 94 94 # SSL/TLS support: yes, no, required. </usr/share/doc/dovecot-common/wiki/SSL.txt> 95 #ssl = yes 95 ssl = required 96 96 97 97 # PEM encoded X.509 SSL/TLS certificate and private key. They're opened before 98 98 # dropping root privileges, so keep the key file unreadable by anyone but 99 99 # root. 100 #ssl_cert_file = /etc/ssl/certs/dovecot.pem101 ssl_cert_file = /etc/alternc/apache.pem102 #ssl_key_file = /etc/ssl/private/dovecot.pem103 ssl_key_file = /etc/alternc/apache.pem100 ssl_cert_file = /etc/ssl/certs/dovecot.pem 101 #ssl_cert_file = /etc/alternc/apache.pem 102 ssl_key_file = /etc/ssl/private/dovecot.pem 103 #ssl_key_file = /etc/alternc/apache.pem 104 104 105 105 # If key file is password protected, give the password here. Alternatively … … 247 247 # without a location setting. Default namespace is simply done by having a 248 248 # namespace with empty prefix. 249 namespace private {249 #namespace private { 250 250 # Hierarchy separator to use. You should use the same separator for all 251 251 # namespaces or some clients get confused. '/' is usually a good one. 252 252 # The default however depends on the underlying mail storage format. 253 separator = .253 # separator = . 254 254 255 255 # Prefix required to access this namespace. This needs to be different for 256 256 # all namespaces. For example "Public/". 257 prefix = INBOX.257 # prefix = INBOX. 258 258 259 259 # Physical location of the mailbox. This is in same format as … … 263 263 # There can be only one INBOX, and this setting defines which namespace 264 264 # has it. 265 inbox = yes265 #inbox = yes 266 266 267 267 # If namespace is hidden, it's not advertised to clients via NAMESPACE … … 280 280 # namespace handles them (empty prefix should always have this as "yes") 281 281 #subscriptions = yes 282 }282 #} 283 283 284 284 # Example shared namespace configuration … … 385 385 # Note that denying root logins is hardcoded to dovecot binary and can't 386 386 # be done even if first_valid_uid is set to 0. 387 first_valid_uid = 33388 last_valid_uid = 33387 first_valid_uid = 2000 388 last_valid_uid = 65000 389 389 390 390 # Valid GID range for users, defaults to non-root/wheel. Users having … … 580 580 # list of plugins to load. 581 581 #mail_plugins = 582 mail_plugins = quota imap_quota 582 583 #mail_plugin_dir = /usr/lib/dovecot/modules/imap 583 584 … … 699 700 # list of plugins to load. 700 701 #mail_plugins = 702 mail_plugins = quota 701 703 #mail_plugin_dir = /usr/lib/dovecot/modules/pop3 702 704 … … 722 724 # ManageSieve executable location. See IMAP's mail_executable above for 723 725 # examples how this could be changed. 724 #mail_executable = /usr/lib/dovecot/managesieve726 mail_executable = /usr/lib/dovecot/managesieve 725 727 726 728 # Maximum ManageSieve command line length in bytes. This setting is … … 762 764 # Support for dynamically loadable plugins. mail_plugins is a space separated 763 765 # list of plugins to load. 764 mail_plugins = sieve765 mail_plugin_dir = /usr/lib/dovecot/modules/lda766 mail_plugins = quota sieve 767 #mail_plugin_dir = /usr/lib/dovecot/modules/lda 766 768 767 769 # If user is over quota, return with temporary failure instead of … … 777 779 778 780 # Binary to use for sending mails. 779 sendmail_path = /usr/sbin/sendmail781 #sendmail_path = /usr/sbin/sendmail 780 782 781 783 # Subject: header to use for rejection mails. You can use the same variables … … 796 798 797 799 # Executable location 798 auth_executable = /usr/lib/dovecot/dovecot-auth800 #auth_executable = /usr/lib/dovecot/dovecot-auth 799 801 800 802 # Set max. process size in megabytes. … … 893 895 # gss-spnego 894 896 # NOTE: See also disable_plaintext_auth setting. 895 mechanisms = plain 897 mechanisms = plain login 896 898 897 899 # … … 1033 1035 # configuration files for more information how to do it. 1034 1036 # </usr/share/doc/dovecot-common/wiki/UserDatabase.Prefetch.txt> 1035 #userdb prefetch {1036 #}1037 userdb prefetch { 1038 } 1037 1039 1038 1040 # System users (NSS, /etc/passwd, or similiar). In many systems nowadays this … … 1101 1103 # requires roots. Note that this user is NOT used to access mails. 1102 1104 # That user is specified by userdb above. 1103 user = mail1105 user = vmail 1104 1106 1105 1107 # Directory where to chroot the process. Most authentication backends don't … … 1128 1130 mode = 0666 1129 1131 # Default user/group is the one who started dovecot-auth (root) 1130 #user =1132 user = vmail 1131 1133 #group = 1132 1134 } … … 1167 1169 1168 1170 dict { 1169 #quota = mysql:/etc/dovecot/dovecot-dict-quota.conf1171 quota = mysql:/etc/dovecot/dovecot-dict-quota.conf 1170 1172 #expire = db:/var/lib/dovecot/expire.db 1171 1173 } … … 1193 1195 # userdb. It's also possible to give mailbox-specific limits, for example: 1194 1196 # quota_rule = *:storage=1048576 1197 quota_rule = *:storage=100M 1195 1198 # quota_rule2 = Trash:storage=102400 1196 1199 # User has now 1GB quota, but when saving to Trash mailbox the user gets … … 1210 1213 # Note that % needs to be escaped as %%, otherwise "% " expands to empty. 1211 1214 # quota_warning = storage=95%% /usr/local/bin/quota-warning.sh 95 1215 # quota_warning = storage=95%% /usr/local/bin/quota-warning.sh 95 1212 1216 # quota_warning2 = storage=80%% /usr/local/bin/quota-warning.sh 80 1217 quota_warning = storage=80%% /usr/local/bin/quota-warning.sh 80 1213 1218 #quota = maildir 1219 quota = dict:user:proxy::quotadict 1214 1220 1215 1221 # ACL plugin. vfile backend reads ACLs from "dovecot-acl" file from maildir -
alternc/trunk/etc/alternc/templates/postfix/myalias.cf
r2990 r3137 7 7 hosts =%%dbhost%% 8 8 dbname = %%dbname%% 9 query = select concat(if(isnull(mailbox.id), '', concat(address.address, '\n')), recipient.recipient) from recipient join address on address.id = recipient.address_id left outer join mailbox on mailbox.address_id = address.id where address.address='%s'; 9 query = select concat( if(isnull(mailbox.id), '', concat(concat(address.address,'@',domaines.domaine), '\n')), recipient.recipients ) from recipient join address on address.id = re 10 cipient.address_id left outer join mailbox on mailbox.address_id = address.id join domaines on domaines.id = address.domain_id where concat(address.address,'@',domaines.domaine)='% 11 s'; 12 10 13 -
alternc/trunk/etc/alternc/templates/postfix/myvirtual.cf
r2990 r3137 7 7 hosts =%%dbhost%% 8 8 dbname = %%dbname%% 9 select concat(path, '/Maildir/') from mailbox join address on address.id = mailbox.address_id where address.address='%s' 9 query = select concat(path, '/Maildir/') from mailbox join address on address.id = mailbox.address_id join domaines on domaines.id = address.domain_id where concat(address.address, 10 '@',domaines.domaine) ='%s'; 10 11 -
alternc/trunk/install/mysql.sql
r3136 r3137 639 639 KEY `uid` (`uid`) 640 640 ) ENGINE=MyISAM DEFAULT CHARSET=latin1; 641 642 643 644 -- 645 -- Structure de la vue `dovecot-view` 646 -- 647 648 CREATE VIEW `dovecot_view` AS 649 SELECT concat(`address`.`address`,'@',`domaines`.`domaine`) AS `user`, 650 concat('*:storage=',cast(`mailbox`.`quota` as char charset latin1),'M') AS `userdb_quota_rule`, 651 `address`.`password` AS `password`, 652 `mailbox`.`path` AS `userdb_home`, 653 `domaines`.`compte` AS `userdb_uid`, 654 `domaines`.`compte` AS `userdb_gid`, 655 `mailbox`.`bytes` AS `quota_dovecot`, 656 `mailbox`.`messages` AS `nb_messages` 657 from ((`mailbox` 658 join `address` on((`address`.`id` = `mailbox`.`address_id`))) 659 join `domaines` on((`domaines`.`id` = `address`.`domain_id`))); 660
Note: See TracChangeset
for help on using the changeset viewer.
