Настройка роундкуба
#1
11 августа 2017 в 19:39
Здравствуйте, предыстория: обратился ко мне в начале лета один товарищ, почта на яндексе у него, и еще подключена функция яндекса почта для домена, используют для доступа впн — переодически слетает там у него чего то, вообщем попросил помочь, сменить почтовый сервер не захотел вроде как много всего там у него да и вообще, мне некогда было особо разбираться но тут выдалось время, вот родилась идея поставить веб клиент на своем домене настроенный на яндекс почту, взял роундкуб и начались танцы с бубном… Прописал IMAP, SMTP порты по инструкции ссылка на я.помощь не взлетает, кто нибудь может подсказать что можно подправить?
#2
11 августа 2017 в 21:04
jorgovich, что в логах то?
Основной лог:
[11-Aug-2017 21:36:17 +0600]: IMAP Error: Login failed for admin@site.ru from 192.168.25.5(X-Forwarded-For: мой айпи ). Empty startup greeting (imap.yandex.ru:993) in /www/mail.site.ru/program/include/rcube_imap.php on line 191 (POST /?_task=login&_action=login)
В конфиге включил лог IMAP в нем:
[11-Aug-2017 21:36:17 +0600]: [5698] C: A0001 LOGOUT
Собственно конфиг, почти весь по умолчанию, за исключением портов и сервера подключения правок особо не было, странно но на локал хосте — к подключению своего почтового сервера работает, а вот на сторонний yandex не хочет..
[11-Aug-2017 21:36:17 +0600]: IMAP Error: Login failed for admin@site.ru from 192.168.25.5(X-Forwarded-For: мой айпи ). Empty startup greeting (imap.yandex.ru:993) in /www/mail.site.ru/program/include/rcube_imap.php on line 191 (POST /?_task=login&_action=login)
В конфиге включил лог IMAP в нем:
[11-Aug-2017 21:36:17 +0600]: [5698] C: A0001 LOGOUT
Собственно конфиг, почти весь по умолчанию, за исключением портов и сервера подключения правок особо не было, странно но на локал хосте — к подключению своего почтового сервера работает, а вот на сторонний yandex не хочет..
<?php /* +-----------------------------------------------------------------------+ | Main configuration file | | | | This file is part of the Roundcube Webmail client | | Copyright (C) 2005-2011, The Roundcube Dev Team | | | | Licensed under the GNU General Public License version 3 or | | any later version with exceptions for skins & plugins. | | See the README file for a full license statement. | | | +-----------------------------------------------------------------------+ */ // ---------------------------------- // LOGGING/DEBUGGING // ---------------------------------- // system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace $rcmail_config['debug_level'] = 1; // log driver: 'syslog' or 'file'. $rcmail_config['log_driver'] = 'file'; // date format for log entries // (read http://php.net/manual/en/function.date.php for all format characters) $rcmail_config['log_date_format'] = 'd-M-Y H:i:s O'; // Syslog ident string to use, if using the 'syslog' log driver. $rcmail_config['syslog_id'] = 'roundcube'; // Syslog facility to use, if using the 'syslog' log driver. // For possible values see installer or http://php.net/manual/en/function.openlog.php $rcmail_config['syslog_facility'] = LOG_USER; // Log sent messages to <log_dir>/sendmail or to syslog $rcmail_config['smtp_log'] = true; // Log successful logins to <log_dir>/userlogins or to syslog $rcmail_config['log_logins'] = false; // Log session authentication errors to <log_dir>/session or to syslog $rcmail_config['log_session'] = false; // Log SQL queries to <log_dir>/sql or to syslog $rcmail_config['sql_debug'] = false; // Log IMAP conversation to <log_dir>/imap or to syslog $rcmail_config['imap_debug'] = true; // Log LDAP conversation to <log_dir>/ldap or to syslog $rcmail_config['ldap_debug'] = false; // Log SMTP conversation to <log_dir>/smtp or to syslog $rcmail_config['smtp_debug'] = true; // ---------------------------------- // IMAP // ---------------------------------- // the mail host chosen to perform the log-in // leave blank to show a textbox at login, give a list of hosts // to display a pulldown menu or set one host as string. // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls:// // Supported replacement variables: // %n - http hostname ($_SERVER['SERVER_NAME']) // %d - domain (http hostname without the first part) // %s - domain name after the '@' from e-mail address provided at login screen // For example %n = mail.domain.tld, %d = domain.tld $rcmail_config['default_host'] = 'imap.yandex.ru'; // TCP port used for IMAP connections $rcmail_config['default_port'] = 993; // IMAP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use // best server supported one) $rcmail_config['imap_auth_type'] = null; // If you know your imap's folder delimiter, you can specify it here. // Otherwise it will be determined automatically $rcmail_config['imap_delimiter'] = null; // If IMAP server doesn't support NAMESPACE extension, but you're // using shared folders or personal root folder is non-empty, you'll need to // set these options. All can be strings or arrays of strings. // Folders need to be ended with directory separator, e.g. "INBOX." // (special directory "~" is an exception to this rule) // These can be used also to overwrite server's namespaces $rcmail_config['imap_ns_personal'] = null; $rcmail_config['imap_ns_other'] = null; $rcmail_config['imap_ns_shared'] = null; // By default IMAP capabilities are readed after connection to IMAP server // In some cases, e.g. when using IMAP proxy, there's a need to refresh the list // after login. Set to True if you've got this case. $rcmail_config['imap_force_caps'] = false; // By default list of subscribed folders is determined using LIST-EXTENDED // extension if available. Some servers (dovecot 1.x) returns wrong results // for shared namespaces in this case. http://trac.roundcube.net/ticket/1486225 // Enable this option to force LSUB command usage instead. $rcmail_config['imap_force_lsub'] = false; // Some server configurations (e.g. Courier) doesn't list folders in all namespaces // Enable this option to force listing of folders in all namespaces $rcmail_config['imap_force_ns'] = false; // IMAP connection timeout, in seconds. Default: 0 (no limit) $rcmail_config['imap_timeout'] = 0; // Optional IMAP authentication identifier to be used as authorization proxy $rcmail_config['imap_auth_cid'] = null; // Optional IMAP authentication password to be used for imap_auth_cid $rcmail_config['imap_auth_pw'] = null; // Type of IMAP indexes cache. Supported values: 'db', 'apc' and 'memcache'. $rcmail_config['imap_cache'] = null; // Enables messages cache. Only 'db' cache is supported. $rcmail_config['messages_cache'] = false; // ---------------------------------- // SMTP // ---------------------------------- // SMTP server host (for sending mails). // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls:// // If left blank, the PHP mail() function is used // Supported replacement variables: // %h - user's IMAP hostname // %n - http hostname ($_SERVER['SERVER_NAME']) // %d - domain (http hostname without the first part) // %z - IMAP domain (IMAP hostname without the first part) // For example %n = mail.domain.tld, %d = domain.tld $rcmail_config['smtp_server'] = 'smtp.yandex.ru'; // SMTP port (default is 25; use 587 for STARTTLS or 465 for the // deprecated SSL over SMTP (aka SMTPS)) $rcmail_config['smtp_port'] = 465; // SMTP username (if required) if you use %u as the username Roundcube // will use the current username for login $rcmail_config['smtp_user'] = ''; // SMTP password (if required) if you use %p as the password Roundcube // will use the current user's password for login $rcmail_config['smtp_pass'] = ''; // SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use // best server supported one) $rcmail_config['smtp_auth_type'] = ''; // Optional SMTP authentication identifier to be used as authorization proxy $rcmail_config['smtp_auth_cid'] = null; // Optional SMTP authentication password to be used for smtp_auth_cid $rcmail_config['smtp_auth_pw'] = null; // SMTP HELO host // Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages // Leave this blank and you will get the server variable 'server_name' or // localhost if that isn't defined. $rcmail_config['smtp_helo_host'] = ''; // SMTP connection timeout, in seconds. Default: 0 (no limit) $rcmail_config['smtp_timeout'] = 0; // ---------------------------------- // SYSTEM // ---------------------------------- // THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA. // ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING! $rcmail_config['enable_installer'] = false; // provide an URL where a user can get support for this Roundcube installation // PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE! $rcmail_config['support_url'] = ''; // replace Roundcube logo with this image // specify an URL relative to the document root of this Roundcube installation $rcmail_config['skin_logo'] = null; // automatically create a new Roundcube user when log-in the first time. // a new user will be created once the IMAP login succeeds. // set to false if only registered users can use this service $rcmail_config['auto_create_user'] = true; // use this folder to store log files (must be writeable for apache user) // This is used by the 'file' log driver. $rcmail_config['log_dir'] = 'logs/'; // use this folder to store temp files (must be writeable for apache user) $rcmail_config['temp_dir'] = 'temp/'; // lifetime of message cache // possible units: s, m, h, d, w $rcmail_config['message_cache_lifetime'] = '10d'; // enforce connections over https // with this option enabled, all non-secure connections will be redirected. // set the port for the ssl connection as value of this option if it differs from the default 443