Нужен совет администраторов по настройке почтовых программ

Настройка роундкуба

#1 11 августа 2017 в 19:39
Здравствуйте, предыстория: обратился ко мне в начале лета один товарищ, почта на яндексе у него, и еще подключена функция яндекса почта для домена, используют для доступа впн — переодически слетает там у него чего то, вообщем попросил помочь, сменить почтовый сервер не захотел вроде как много всего там у него да и вообще, мне некогда было особо разбираться но тут выдалось время, вот родилась идея поставить веб клиент на своем домене настроенный на яндекс почту, взял роундкуб и начались танцы с бубном… Прописал IMAP, SMTP порты по инструкции ссылка на я.помощь не взлетает, кто нибудь может подсказать что можно подправить?
#2 11 августа 2017 в 21:04
jorgovich, что в логах то?
#3 11 августа 2017 в 21:38
Основной лог:
[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 не хочет..

  1.  
  2. <?php
  3.  
  4. /*
  5.  +-----------------------------------------------------------------------+
  6.  | Main configuration file |
  7.  | |
  8.  | This file is part of the Roundcube Webmail client |
  9.  | Copyright (C) 2005-2011, The Roundcube Dev Team |
  10.  | |
  11.  | Licensed under the GNU General Public License version 3 or |
  12.  | any later version with exceptions for skins & plugins. |
  13.  | See the README file for a full license statement. |
  14.  | |
  15.  +-----------------------------------------------------------------------+
  16.  
  17. */
  18.  
  19. $rcmail_config = array();
  20.  
  21. // ----------------------------------
  22. // LOGGING/DEBUGGING
  23. // ----------------------------------
  24.  
  25. // system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace
  26. $rcmail_config['debug_level'] = 1;
  27.  
  28. // log driver: 'syslog' or 'file'.
  29. $rcmail_config['log_driver'] = 'file';
  30.  
  31. // date format for log entries
  32. // (read http://php.net/manual/en/function.date.php for all format characters)
  33. $rcmail_config['log_date_format'] = 'd-M-Y H:i:s O';
  34.  
  35. // Syslog ident string to use, if using the 'syslog' log driver.
  36. $rcmail_config['syslog_id'] = 'roundcube';
  37.  
  38. // Syslog facility to use, if using the 'syslog' log driver.
  39. // For possible values see installer or http://php.net/manual/en/function.openlog.php
  40. $rcmail_config['syslog_facility'] = LOG_USER;
  41.  
  42. // Log sent messages to <log_dir>/sendmail or to syslog
  43. $rcmail_config['smtp_log'] = true;
  44.  
  45. // Log successful logins to <log_dir>/userlogins or to syslog
  46. $rcmail_config['log_logins'] = false;
  47.  
  48. // Log session authentication errors to <log_dir>/session or to syslog
  49. $rcmail_config['log_session'] = false;
  50.  
  51. // Log SQL queries to <log_dir>/sql or to syslog
  52. $rcmail_config['sql_debug'] = false;
  53.  
  54. // Log IMAP conversation to <log_dir>/imap or to syslog
  55. $rcmail_config['imap_debug'] = true;
  56.  
  57. // Log LDAP conversation to <log_dir>/ldap or to syslog
  58. $rcmail_config['ldap_debug'] = false;
  59.  
  60. // Log SMTP conversation to <log_dir>/smtp or to syslog
  61. $rcmail_config['smtp_debug'] = true;
  62.  
  63. // ----------------------------------
  64. // IMAP
  65. // ----------------------------------
  66.  
  67. // the mail host chosen to perform the log-in
  68. // leave blank to show a textbox at login, give a list of hosts
  69. // to display a pulldown menu or set one host as string.
  70. // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
  71. // Supported replacement variables:
  72. // %n - http hostname ($_SERVER['SERVER_NAME'])
  73. // %d - domain (http hostname without the first part)
  74. // %s - domain name after the '@' from e-mail address provided at login screen
  75. // For example %n = mail.domain.tld, %d = domain.tld
  76. $rcmail_config['default_host'] = 'imap.yandex.ru';
  77.  
  78. // TCP port used for IMAP connections
  79. $rcmail_config['default_port'] = 993;
  80.  
  81. // IMAP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
  82. // best server supported one)
  83. $rcmail_config['imap_auth_type'] = null;
  84.  
  85. // If you know your imap's folder delimiter, you can specify it here.
  86. // Otherwise it will be determined automatically
  87. $rcmail_config['imap_delimiter'] = null;
  88.  
  89. // If IMAP server doesn't support NAMESPACE extension, but you're
  90. // using shared folders or personal root folder is non-empty, you'll need to
  91. // set these options. All can be strings or arrays of strings.
  92. // Folders need to be ended with directory separator, e.g. "INBOX."
  93. // (special directory "~" is an exception to this rule)
  94. // These can be used also to overwrite server's namespaces
  95. $rcmail_config['imap_ns_personal'] = null;
  96. $rcmail_config['imap_ns_other'] = null;
  97. $rcmail_config['imap_ns_shared'] = null;
  98.  
  99. // By default IMAP capabilities are readed after connection to IMAP server
  100. // In some cases, e.g. when using IMAP proxy, there's a need to refresh the list
  101. // after login. Set to True if you've got this case.
  102. $rcmail_config['imap_force_caps'] = false;
  103.  
  104. // By default list of subscribed folders is determined using LIST-EXTENDED
  105. // extension if available. Some servers (dovecot 1.x) returns wrong results
  106. // for shared namespaces in this case. http://trac.roundcube.net/ticket/1486225
  107. // Enable this option to force LSUB command usage instead.
  108. $rcmail_config['imap_force_lsub'] = false;
  109.  
  110. // Some server configurations (e.g. Courier) doesn't list folders in all namespaces
  111. // Enable this option to force listing of folders in all namespaces
  112. $rcmail_config['imap_force_ns'] = false;
  113.  
  114. // IMAP connection timeout, in seconds. Default: 0 (no limit)
  115. $rcmail_config['imap_timeout'] = 0;
  116.  
  117. // Optional IMAP authentication identifier to be used as authorization proxy
  118. $rcmail_config['imap_auth_cid'] = null;
  119.  
  120. // Optional IMAP authentication password to be used for imap_auth_cid
  121. $rcmail_config['imap_auth_pw'] = null;
  122.  
  123. // Type of IMAP indexes cache. Supported values: 'db', 'apc' and 'memcache'.
  124. $rcmail_config['imap_cache'] = null;
  125.  
  126. // Enables messages cache. Only 'db' cache is supported.
  127. $rcmail_config['messages_cache'] = false;
  128.  
  129.  
  130. // ----------------------------------
  131. // SMTP
  132. // ----------------------------------
  133.  
  134. // SMTP server host (for sending mails).
  135. // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
  136. // If left blank, the PHP mail() function is used
  137. // Supported replacement variables:
  138. // %h - user's IMAP hostname
  139. // %n - http hostname ($_SERVER['SERVER_NAME'])
  140. // %d - domain (http hostname without the first part)
  141. // %z - IMAP domain (IMAP hostname without the first part)
  142. // For example %n = mail.domain.tld, %d = domain.tld
  143. $rcmail_config['smtp_server'] = 'smtp.yandex.ru';
  144.  
  145. // SMTP port (default is 25; use 587 for STARTTLS or 465 for the
  146. // deprecated SSL over SMTP (aka SMTPS))
  147. $rcmail_config['smtp_port'] = 465;
  148.  
  149. // SMTP username (if required) if you use %u as the username Roundcube
  150. // will use the current username for login
  151. $rcmail_config['smtp_user'] = '';
  152.  
  153. // SMTP password (if required) if you use %p as the password Roundcube
  154. // will use the current user's password for login
  155. $rcmail_config['smtp_pass'] = '';
  156.  
  157. // SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
  158. // best server supported one)
  159. $rcmail_config['smtp_auth_type'] = '';
  160.  
  161. // Optional SMTP authentication identifier to be used as authorization proxy
  162. $rcmail_config['smtp_auth_cid'] = null;
  163.  
  164. // Optional SMTP authentication password to be used for smtp_auth_cid
  165. $rcmail_config['smtp_auth_pw'] = null;
  166.  
  167. // SMTP HELO host
  168. // Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
  169. // Leave this blank and you will get the server variable 'server_name' or
  170. // localhost if that isn't defined.
  171. $rcmail_config['smtp_helo_host'] = '';
  172.  
  173. // SMTP connection timeout, in seconds. Default: 0 (no limit)
  174. $rcmail_config['smtp_timeout'] = 0;
  175.  
  176. // ----------------------------------
  177. // SYSTEM
  178. // ----------------------------------
  179.  
  180. // THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA.
  181. // ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING!
  182. $rcmail_config['enable_installer'] = false;
  183.  
  184. // provide an URL where a user can get support for this Roundcube installation
  185. // PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
  186. $rcmail_config['support_url'] = '';
  187.  
  188. // replace Roundcube logo with this image
  189. // specify an URL relative to the document root of this Roundcube installation
  190. $rcmail_config['skin_logo'] = null;
  191.  
  192. // automatically create a new Roundcube user when log-in the first time.
  193. // a new user will be created once the IMAP login succeeds.
  194. // set to false if only registered users can use this service
  195. $rcmail_config['auto_create_user'] = true;
  196.  
  197. // use this folder to store log files (must be writeable for apache user)
  198. // This is used by the 'file' log driver.
  199. $rcmail_config['log_dir'] = 'logs/';
  200.  
  201. // use this folder to store temp files (must be writeable for apache user)
  202. $rcmail_config['temp_dir'] = 'temp/';
  203.  
  204. // lifetime of message cache
  205. // possible units: s, m, h, d, w
  206. $rcmail_config['message_cache_lifetime'] = '10d';
  207.  
  208. // enforce connections over https
  209. // with this option enabled, all non-secure connections will be redirected.
  210. // set the port for the ssl connection as value of this option if it differs from the default 443
Вы не можете отвечать в этой теме.
Войдите или зарегистрируйтесь, чтобы писать на форуме.
Используя этот сайт, вы соглашаетесь с тем, что мы используем файлы cookie.