2014-08-11 17:42:52 +00:00
|
|
|
<?php
|
|
|
|
/***********************************************
|
|
|
|
* File : config.php
|
|
|
|
* Project : Z-Push
|
|
|
|
* Descr : IMAP backend configuration file
|
|
|
|
************************************************/
|
|
|
|
|
|
|
|
define('IMAP_SERVER', 'localhost');
|
|
|
|
define('IMAP_PORT', 993);
|
|
|
|
define('IMAP_OPTIONS', '/ssl/norsh/novalidate-cert');
|
|
|
|
define('IMAP_DEFAULTFROM', '');
|
|
|
|
|
2014-08-12 11:12:10 +00:00
|
|
|
// not used
|
2014-08-11 17:42:52 +00:00
|
|
|
define('IMAP_FROM_SQL_DSN', '');
|
|
|
|
define('IMAP_FROM_SQL_USER', '');
|
|
|
|
define('IMAP_FROM_SQL_PASSWORD', '');
|
|
|
|
define('IMAP_FROM_SQL_OPTIONS', serialize(array(PDO::ATTR_PERSISTENT => true)));
|
|
|
|
define('IMAP_FROM_SQL_QUERY', "select first_name, last_name, mail_address from users where mail_address = '#username@#domain'");
|
|
|
|
define('IMAP_FROM_SQL_FIELDS', serialize(array('first_name', 'last_name', 'mail_address')));
|
|
|
|
define('IMAP_FROM_SQL_FROM', '#first_name #last_name <#mail_address>');
|
2014-08-12 11:12:10 +00:00
|
|
|
define('IMAP_FROM_LDAP_SERVER', '');
|
2014-08-11 17:42:52 +00:00
|
|
|
define('IMAP_FROM_LDAP_SERVER_PORT', '389');
|
|
|
|
define('IMAP_FROM_LDAP_USER', 'cn=zpush,ou=servers,dc=zpush,dc=org');
|
|
|
|
define('IMAP_FROM_LDAP_PASSWORD', 'password');
|
|
|
|
define('IMAP_FROM_LDAP_BASE', 'dc=zpush,dc=org');
|
|
|
|
define('IMAP_FROM_LDAP_QUERY', '(mail=#username@#domain)');
|
|
|
|
define('IMAP_FROM_LDAP_FIELDS', serialize(array('givenname', 'sn', 'mail')));
|
|
|
|
define('IMAP_FROM_LDAP_FROM', '#givenname #sn <#mail>');
|
|
|
|
|
|
|
|
|
|
|
|
// copy outgoing mail to this folder. If not set z-push will try the default folders
|
|
|
|
define('IMAP_SENTFOLDER', '');
|
|
|
|
define('IMAP_INLINE_FORWARD', true);
|
|
|
|
define('IMAP_EXCLUDED_FOLDERS', '');
|
2014-08-12 11:18:45 +00:00
|
|
|
define('IMAP_SMTP_METHOD', 'sendmail');
|
2014-08-11 17:42:52 +00:00
|
|
|
|
|
|
|
global $imap_smtp_params;
|
2014-08-11 22:32:16 +00:00
|
|
|
$imap_smtp_params = array('host' => 'ssl://localhost', 'port' => 587, 'auth' => true, 'username' => 'imap_username', 'password' => 'imap_password');
|
2014-08-11 17:42:52 +00:00
|
|
|
|
|
|
|
define('MAIL_MIMEPART_CRLF', "\r\n");
|
|
|
|
|
2014-08-12 11:12:10 +00:00
|
|
|
?>
|