linux下架设邮箱 MUA篇RoundCubeWebmail(2)

2019-05-18 13:21

$labels['autosendknown'] = '只对我的联系人传送回条,其他询问用户'; $labels['autosendknownignore'] = '只对我的联系人传送回条,其他忽略'; $labels['properties'] = '属性';

$labels['folderproperties'] = '邮件夹属性'; $labels['parentfolder'] = '上一层邮件夹'; $labels['location'] = '位置'; $labels['info'] = '信息';

$labels['getfoldersize'] = '点击显示邮件夹大小'; $labels['editidents'] = '编辑发件人身份'; $labels['addfollowupto'] = '添加信件更随'; $labels['followupto'] = '信件更随至'; $labels['dsn'] = '传送状态通知';

F、通过设置php配置邮箱

F.1、设置邮件、附件大小——max vi /etc/php.ini

upload_max_filesize =50M

上传文件的最大值 post_max_size =70M 表单提交的最大值

max_execution_time=300 max_input_time=600 memory_limit = 600M

一个脚本所能够申请到的最大内存字节数,一般设置为内存的四分之一

G、完整配置文件批注

G.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:不记录 G.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. \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 G.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(不限制)。 G.4、系统(SYSTEM)

$rcmail_config['enable_installer'] = false;

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['log_dir'] = 'logs/';

use this folder to store log files (must be writeable for apache user).This is used by the 'file' log driver.

使用该文件夹存储日志文件(apache用户必须有写的权限)。log driver 设置为'file'方才有效。

$rcmail_config['temp_dir'] = 'temp/';

use this folder to store temp files (must be writeable for apache user) 使用该文件夹存储临时文件(apache用户必须有写的权限)。 $rcmail_config['enable_caching'] = false;

enable caching of messages and mailbox data in the local database.this is recommended if the IMAP server does not run on the same machine.

使缓存信息和邮箱数据存放在数据库中。如果IMAP服务器不运行在同一台机器上推荐使用。信息存放在数据库messages表和cache表。 $rcmail_config['message_cache_lifetime'] = '10d';

lifetime of message cache. possible units: s, m, h, d, w 消息缓存生命周期,单位:s、m、h、d、w。

$rcmail_config['force_https'] = false;

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. 执行https连接。使用此选项启用时,所有非安全连接将被重定向。若它不同于默认端口443,设置ssl连接端口。 $rcmail_config['use_https'] = false;

tell PHP that it should work as under secure connection.even if it doesn't recognize it as secure ($_SERVER['HTTPS'] is not set). e.g. when you're running Roundcube behind a https proxy. 告诉PHP它应该工作在安全连接下。即使它并不认为它是安全的($_SERVER['HTTPS']没有设置)。例如当你使Roundcube 运行在https代理后面。 $rcmail_config['login_autocomplete'] = 0;

Allow browser-autocompletion on login form. 0 - disabled, 1 - username and host only, 2 - username, host, password

允许在浏览器自动完成登录表格。0禁用,1只需用户名和主机名,2需用户名、主机名和密码。

$rcmail_config['login_lc'] = false;

If users authentication is not case sensitive this must be enabled. You can also use it to force conversion of logins to lower case. 如果用户的认证是不区分大小写这必须启用。您还可以用它来迫使登录转换为小写。 $rcmail_config['auto_create_user'] = true;

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 第一次登录时,自动创建一个新的Roundcube用户。一旦IMAP登录成功一个新的用户将被创建。如果设置为false,只有注册用户可以使用这项服务。 $rcmail_config['skin_include_php'] = false;

Includes should be interpreted as PHP files 包含文件应被解释为php文件。 $rcmail_config['session_lifetime'] = 10;

Session lifetime in minutes. must be greater than 'keep_alive'/60 Session实效时间,分钟,该值必须大于'keep_alive'/60的值。 $rcmail_config['ip_check'] = false;

check client IP in session authorization

检查客户端会话IP。

$rcmail_config['double_auth'] = false;

Use an additional frequently changing cookie to athenticate user sessions. There have been problems reported with this feature.

使用一个额外的经常变化的cookie来检查客户session。已经有与此功能的问题报告。 $rcmail_config['referer_check'] = false;

check referer of incoming requests 检查传入请求的引用者

$rcmail_config['des_key'] = '35baINv$xxxxHYtHe*479be4';


linux下架设邮箱 MUA篇RoundCubeWebmail(2).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:《高级英语》课程教学大纲

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: