未来往事
尽量不给别人添麻烦。 [2017年 第47周/共52周]

Tmail登录失败问题

......
+阅读全文

Tmail RoundCube WebMail完整配置文件批注

Tmail RoundCube WebMail完整配置文件批注

1、日志、调试(LOGGING/DEBUGGING)
$rcmail_config['debug_level'] = 1;
system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace
系统错误日志,1:记录在日志文件中,2:功能未实现,4:在网页中显示,8:追踪

$rcmail_config['log_driver'] = 'file';
log driver:  'syslog' or 'file'.
错误日志存放位置,'file':存放在/logs/error,'syslog':存放系统日志中

$rcmail_config['log_date_format'] = 'Y-M-d H:i:s O';
date format for log entries
日志文件中的时间格式

$rcmail_config['syslog_facility'] = LOG_USER;
Syslog facility to use, if using the 'syslog' log driver.
若使用'syslog'系统日志,则使用的日志工具

$rcmail_config['smtp_log'] = true;
Log sent messages to /sendmail or to syslog
True:把smtp日志记录在/logs/sendmail文件中,False:不记录

$rcmail_config['log_logins'] = true;
Log successful logins to /userlogins or to syslog
True:把用户成功登录日志记录在/logs/sendmail文件中,False:不记录

$rcmail_config['sql_debug'] = false;
Log SQL queries to /sql or to syslog
True:把SQL错误日志记录在/logs/sql文件中,False:不记录

$rcmail_config['imap_debug'] = false;
Log IMAP conversation to /imap or to syslog
True:把imap调试日志记录在/logs/imap文件中,False:不记录

$rcmail_config['ldap_debug'] = false;
Log LDAP conversation to /ldap or to syslog
True:把imap调试日志记录在/logs/imap文件中,False:不记录

$rcmail_config['smtp_debug'] = false;
Log SMTP conversation to /smtp or to syslog
True:把smtp调试日志记录在/logs/ smtp文件中,False:不记录

2、交互式邮件存取协议(IMAP)
$rcmail_config['default_host'] = '192.168.1.253';
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) For example %n = mail.domain.tld, %d = domain.tld
邮件登录主机。’’:在登录是显示一个输入框,字符串数组array(‘x’,’xx’):显示一个下拉菜单,字符串’xx’:则为默认邮箱登录时不显示,SSL/TLS连接:主机名以ssl://或 tls://开头,支持变量替换:%n主机名称($_SERVER['SERVER_NAME']),%d域名,若主机名为mail.domain.tld,%n = mail.domain.tld,,%d = domain.tld。

$rcmail_config['default_port'] = 143;
TCP port used for IMAP connections
Imap端口

$rcmail_config['imap_auth_type'] = null;
IMAP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use best server supported one)
IMAP AUTH类型,选择服务支持最好的一个

$rcmail_config['imap_delimiter'] = null;
If you know your imap's folder delimiter, you can specify it here.Otherwise it will be determined automatically
如果你知道你的IMAP的文件夹分隔符,你可以在此指定它,否则就让它会自动确定。

$rcmail_config['imap_ns_personal'] = null;
$rcmail_config['imap_ns_other']    = null;
$rcmail_config['imap_ns_shared']   = 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.
如果IMAP服务器不支持命名空间扩展,但你使用共享文件夹或个人的根文件夹是非空,你需要设置这些选项。这些选项的值可以是字符串或字符串数值。文件夹需要以目录分隔符结尾,如“INBOX.”。(特殊的目录"~"是对这一规则的例外),这些也可用于覆盖服务器的命名空间。

$rcmail_config['imap_force_caps'] = false;
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.
在某些情况下连接后服务器后IMAP默认被读取 ,例如当使用IMAP代理,登录后需要刷新列表。若你有这种情况的话就设置为True。

$rcmail_config['imap_force_lsub'] = 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.
若可用订阅文件夹的默认列表确认被用作名单扩展。在这种情况下一些服务器(dovecot 1. x)返回错误的结果为共同命名空间。

$rcmail_config['imap_timeout'] = 0;
IMAP connection timeout, in seconds. Default: 0 (no limit)
IMAP连接超时时间,秒,默认:0(不限制)。

$rcmail_config['imap_auth_cid'] = null;
Optional IMAP authentication identifier to be used as authorization proxy
可选的IMAP认证标识符作为授权代理

$rcmail_config['imap_auth_pw'] = null;
Optional IMAP authentication password to be used for imap_auth_cid
可选的IMAP认证密码用来作imap_auth_cid

3、简单邮件传输协议(SMTP)
$rcmail_config['smtp_server'] = '192.168.1.253';
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
SMTP服务主机(发送邮件)。SSL/TLS连接:主机名以ssl://或 tls://开头,空白:使用php的main()函数,支持变量替换:%h 用户IMAP主机,%n http主机($_SERVER['SERVER_NAME']),%d域名(没有第一部分的主机名),%z IMAP域名(没有第一部分的IMAP主机名)。若主机名为mail.domain.tld,%n = mail.domain.tld,,%d = domain.tld。

$rcmail_config['smtp_port'] = 25;
SMTP port (default is 25; 465 for SSL)
SMTP端口(默认25;SSL465)

$rcmail_config['smtp_user'] = '';
SMTP username (if required) if you use %u as the username Roundcube will use the current username for login
SMTP用户名(如果需要)如果你使用%u作为用户名,Roundcube将使用当前登录用户。

$rcmail_config['smtp_pass'] = '';
SMTP password (if required) if you use %p as the password Roundcube will use the current user's password for login
SMTP密码(如果需要)如果你使用%p作为密码,Roundcube将使用当前登录用户的密码。

$rcmail_config['smtp_auth_type'] = '';
SMTP AUTH 类型,选择服务支持最好的一个。

$rcmail_config['smtp_auth_cid'] = null;
Optional SMTP authentication identifier to be used as authorization proxy
可选的SMTP认证标识符作为授权代理

$rcmail_config['smtp_auth_pw'] = null;
Optional SMTP authentication password to be used for smtp_auth_cid
可选的SMTP认证密码用来smtp_auth_cid

$rcmail_config['smtp_helo_host'] = '';
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.
SMTP HELO主机。主机名给远程服务器SMTP 'HELO' 或 'EHLO'消息。空白:你将得到'server_name'服务变量的值,若未定义则得到localhost。

$rcmail_config['smtp_timeout'] = 0;
SMTP connection timeout, in seconds. Default: 0 (no limit)
SMTP连接超时时间,秒,默认:0(不限制)。

4、系统(SYSTEM)
+阅读全文

Tmail RoundCube WebMail常用配置说明

本文档基于Tmail5.0.1 / RoundCube WebMail0.6环境所写。
RoundCube WebMail简介:
RoundCube WebMail是一个基于浏览器,支持多国语言的IMAP客户端,操作界面看起像一个桌面应用程序。它提供一个E-mail客户端应该具备的所有功能包括MIME支持,地址薄,文件夹操作,信息搜索和拼写检查。RoundCube Webmail采用PHP+Ajax开发并且需要MySQL数据库来存储数据。用户界面采用XHTML+CSS2设计。

RoundCube WebMail配置文件路径:
[root@mail /]# cat /tmail/httpd/html/webmail/config/main.inc.php
......
+阅读全文

CentOS6.3_X64 Tmail5.0.1安装配置

基于CentOS 6.3_X64系统下的Tmail5.0.1安装笔记

系统信息约束:
系统版本:CentOS 6.3 X64
Tmail版本:Tmail 5.0.1 X64
Tmail默认安装在/tmail
Tmail邮件存储目录/data/tmail/
机器IP地址:192.168.1.242
解析域名:mail.fity.cn / fity.cn(MX)
日志文件:/var/log/maillog

一、系统基础环境准备
系统分区(硬盘空间1T):
/  80GB
swap  8G
/boot  200MB
/usr  50GB
/data  剩余所有(用于存放
......
+阅读全文