2014-08-11 17:42:52 +00:00
< ? php
/***********************************************
* File : config . php
* Project : Z - Push
* Descr : IMAP backend configuration file
************************************************/
2016-05-06 13:06:52 +00:00
define ( 'IMAP_SERVER' , '127.0.0.1' );
2014-08-11 17:42:52 +00:00
define ( 'IMAP_PORT' , 993 );
define ( 'IMAP_OPTIONS' , '/ssl/norsh/novalidate-cert' );
2016-09-19 15:10:44 +00:00
define ( 'IMAP_DEFAULTFROM' , 'sql' );
2014-08-11 17:42:52 +00:00
2015-10-25 12:22:03 +00:00
define ( 'SYSTEM_MIME_TYPES_MAPPING' , '/etc/mime.types' );
define ( 'IMAP_AUTOSEEN_ON_DELETE' , false );
define ( 'IMAP_FOLDER_CONFIGURED' , true );
define ( 'IMAP_FOLDER_PREFIX' , '' );
define ( 'IMAP_FOLDER_PREFIX_IN_INBOX' , false );
2015-11-01 12:30:15 +00:00
// see our conf/dovecot-mailboxes.conf file for IMAP special flags settings
2015-10-25 12:22:03 +00:00
define ( 'IMAP_FOLDER_INBOX' , 'INBOX' );
define ( 'IMAP_FOLDER_SENT' , 'SENT' );
define ( 'IMAP_FOLDER_DRAFT' , 'DRAFTS' );
define ( 'IMAP_FOLDER_TRASH' , 'TRASH' );
define ( 'IMAP_FOLDER_SPAM' , 'SPAM' );
define ( 'IMAP_FOLDER_ARCHIVE' , 'ARCHIVE' );
2017-04-17 11:42:44 +00:00
define ( 'IMAP_INLINE_FORWARD' , true );
define ( 'IMAP_EXCLUDED_FOLDERS' , '' );
2016-09-19 15:10:44 +00:00
define ( 'IMAP_FROM_SQL_DSN' , 'sqlite:STORAGE_ROOT/mail/roundcube/roundcube.sqlite' );
2014-08-11 17:42:52 +00:00
define ( 'IMAP_FROM_SQL_USER' , '' );
define ( 'IMAP_FROM_SQL_PASSWORD' , '' );
define ( 'IMAP_FROM_SQL_OPTIONS' , serialize ( array ( PDO :: ATTR_PERSISTENT => true )));
2016-09-19 15:10:44 +00:00
define ( 'IMAP_FROM_SQL_QUERY' , " SELECT name, email FROM identities i INNER JOIN users u ON i.user_id = u.user_id WHERE u.username = '#username' AND i.standard = 1 AND i.del = 0 AND i.name <> '' " );
define ( 'IMAP_FROM_SQL_FIELDS' , serialize ( array ( 'name' , 'email' )));
define ( 'IMAP_FROM_SQL_FROM' , '#name <#email>' );
define ( 'IMAP_FROM_SQL_FULLNAME' , '#name' );
// not used
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>' );
2016-09-19 15:10:44 +00:00
define ( 'IMAP_FROM_LDAP_FULLNAME' , '#givenname #sn' );
2014-08-11 17:42:52 +00:00
2016-01-08 16:43:09 +00:00
define ( 'IMAP_SMTP_METHOD' , 'sendmail' );
2014-08-11 17:42:52 +00:00
global $imap_smtp_params ;
2021-06-27 21:24:26 +00:00
$imap_smtp_params = array ( 'host' => 'ssl://127.0.0.1' , 'port' => 465 , 'auth' => true , 'username' => 'imap_username' , 'password' => 'imap_password' );
2014-08-11 17:42:52 +00:00
define ( 'MAIL_MIMEPART_CRLF' , " \r \n " );
2017-04-17 11:42:44 +00:00
define ( 'IMAP_MEETING_USE_CALDAV' , true );
2014-08-11 17:42:52 +00:00
2014-08-12 11:12:10 +00:00
?>