diff --git a/createlinks b/createlinks index 8b5d7d1..f5cab10 100644 --- a/createlinks +++ b/createlinks @@ -11,4 +11,9 @@ templates2events("/home/e-smith/files/shares/wpkg/files/config.xml", qw(wpkg-upd templates2events("/home/e-smith/files/shares/wpkg/files/profiles/variables.xml", qw(wpkg-update bootstrap-console-save)); templates2events("/home/e-smith/files/samba/netlogon/netlogon.bat", qw(workgroup-update bootstrap-consolesave)); +templates2events("/usr/share/mozilla-mcd/thunderbird.conf.php", qw(wpkg-update webapps-update bootstrap-consolesave)); + +safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/usr/share/mozilla-mcd/thunderbird.conf.php/template-begin"); +safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/usr/share/mozilla-mcd/thunderbird.conf.php/template-end"); + panel_link('logonscript','manager'); diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/99MozMcdThunderbird b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/99MozMcdThunderbird new file mode 100644 index 0000000..f6341cd --- /dev/null +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/99MozMcdThunderbird @@ -0,0 +1,13 @@ +Alias /thunderbird.cfg /usr/share/mozilla-mcd/thunderbird.php + + + AddType application/x-httpd-php .php .php3 + php_admin_value open_basedir /usr/share/mozilla-mcd + Order deny,allow + Deny from all + Allow from {"$localAccess $externalSSLAccess";} + + order deny,allow + Deny from all + + diff --git a/root/etc/e-smith/templates/usr/share/mozilla-mcd/thunderbird.conf.php/10All b/root/etc/e-smith/templates/usr/share/mozilla-mcd/thunderbird.conf.php/10All new file mode 100644 index 0000000..8424464 --- /dev/null +++ b/root/etc/e-smith/templates/usr/share/mozilla-mcd/thunderbird.conf.php/10All @@ -0,0 +1,17 @@ +{ + +use esmith::util; + +my $ldapbase = esmith::util::ldapBase ($DomainName); + +$OUT .=<<"EOF"; + +define('DOMAIN', '$DomainName'); +define('USER_BASE', 'ou=Users,$ldapbase'); +define('IMAP_SERVER', '$SystemName.$DomainName'); +define('SMTP_SERVER', '$SystemName.$DomainName'); +define('LDAP_SERVER', 'localhost'); + +EOF + +} diff --git a/root/usr/share/mozilla-mcd/thunderbird.php b/root/usr/share/mozilla-mcd/thunderbird.php new file mode 100644 index 0000000..0fe09af --- /dev/null +++ b/root/usr/share/mozilla-mcd/thunderbird.php @@ -0,0 +1,109 @@ + + + +// Compte local +lockPref("mail.account.account1.server", "server1"); +lockPref("mail.accountmanager.localfoldersserver", "server1"); +lockPref("mail.server.server1.directory-rel", "[ProfD]Mail/Local Folders"); +lockPref("mail.server.server1.hostname", "Local Folders"); +lockPref("mail.server.server1.name", "Dossiers locaux"); +lockPref("mail.server.server1.type", "none"); +lockPref("mail.server.server1.userName", "nobody"); + +// SMTP +lockPref("mail.smtp.defaultserver", "smtp1"); +lockPref("mail.smtpservers", "smtp1"); +lockPref("mail.smtpserver.smtp1.try_ssl", 3); +lockPref("mail.smtpserver.smtp1.port", 465); +lockPref("mail.smtpserver.smtp1.hostname", ""); +lockPref("mail.smtpserver.smtp1.username", ""); + +// Compte par défaut +lockPref("mail.accountmanager.defaultaccount", "account2"); + + + +// Compte personnel +lockPref("mail.account.account2.server", "server"); +lockPref("mail.server.server2.hostname", ""); +lockPref("mail.server.server2.name", ""); +lockPref("mail.server.server2.port", 993); +lockPref("mail.server.server2.socketType", 3); +lockPref("mail.server.server2.type", "imap"); +lockPref("mail.server.server2.userName", ""); + + + +lockPref("mail.identity.id.fullName", ""); +lockPref("mail.identity.id.organization", ""); +lockPref("mail.identity.id.smtpServer", "smtp1"); +lockPref("mail.identity.id.useremail", ""); +lockPref("mail.identity.id.valid", true); + +lockPref("mail.account.account2.identities", ""); +lockPref("mail.accountmanager.accounts", "account1,account2"); + +// Mise a jour +lockPref("app.update.enabled", false); +lockPref("app.update.auto", false); + +// Extension +lockPref("extensions.installDistroAddons", true); +lockPref("extensions.enabledScopes", 13); +lockPref("extensions.autoDisableScopes", 2); + +// Spam +lockPref("mail.adaptivefilters.junk_threshold", 500); + +// Checks +defaultPref("mail.check_all_imap_folders_for_new", true); + +// Composition +defaultPref("mail.default_html_action", 3); + +// Pièces jointes +defaultPref("mail.content_disposition_type ", 1); + +// Expunge +defaultPref("mail.imap.expunge_option", 3); +defaultPref("mail.imap.expunge_threshold_number", 100);