在其官方网站上的:
rc-calendar-v0.2-BETA-2.tar.gz
支持 Red Hat Enterprise Linux, CentOS, Scientific Linux, Debian, Ubuntu, FreeBSD, OpenBSD
您尚未登陆。 请选择登陆或是注册一个新账号。
iRedMail 开源邮件服务解决方案 » 由 sdaniel 发表的文章
在其官方网站上的:
rc-calendar-v0.2-BETA-2.tar.gz
您好!
我升级了roundcube 0.3.1-->0.4.2之后,出现了以下问题:
1、calendar插件不能用了,以前在0.3.1上面运行良好!
[20-Oct-2010 20:29:21 +0800]: PHP Error: Deprecated hook name. save_preferences -> preferences_save in /var/www/roundcubemail-0.4.2/program/include/rcube_plugin_api.php on line 200 (GET /?_task=dummy&_action=plugin.calendar)
2、出现了以下错误日志,意思是认为我没有安装iconv/mbstring,
----------------------------------------------
[21-Oct-2010 08:59:24 +0800]: PHP Error: Could not convert string from GBK to UTF-8. Make sure iconv/mbstring is installed or lib/utf8.class is available. in /var/www/roundcubemail-0.4.2/program/include/main.inc on line 308 (GET /?_task=mail&_remote=1&_action=check-recent&_t=1287622736713&_mbox=INBOX&_list=1&_quota=1&_=1287622736714&_unlock=1)
-----------------------------------------------
这个问题安http://www.roundcubeforum.net/3-news-announcements/12-general-discussion/5713-utf7-imap-utf-8-error.html的描述,commented in program\include\main.inc strings 225-250,后就没有出现这种错误日志。
感谢各位的回复!
经过多次测试,觉得mail命令只是适用于简单的邮件处理,不支持主题和正文中文显示,最终放弃!
-----------------------
解决方案:使用php编写邮件发送程序,支持主题和正文显示中文,使用php-cli方式将bash中的用户地址传过去,就可以进行邮件发送,觉得效果不错。
Roundcube 的密码插件的 plugins/password/config.inc.php 里指定的加密算法:
// Using a password hash for %n and %q variables.
// Determine which hashing algorithm should be used to generate
// the hashed new and current password for using them within the
// SQL query. Requires PHP's 'hash' extension.
$rcmail_config['password_hash_algorithm'] = 'md5crypt';// You can also decide whether the hash should be provided
// as hex string or in base64 encoded format.
$rcmail_config['password_hash_base64'] = false;
----------------------------------------------------------------------------------------
关键的问题是我现在对create_mail_user_MySQL.sh中的加密方法也进行了调整,但还是不能一致:
openssl passwd -1 -salt SALT ${DEFAULT_PASSWD}
不知道应该如何调整,才能与Roundcube 的密码插件的 plugins/password/config.inc.php 里加密算法一致?
感谢回复!
存在的问题:
1、使用create_mail_user_MySQL.sh创建用户,生成的是sql脚本;
2、需要的是在导入sql脚本后立即生成新用户的欢迎邮件,并且发到其邮箱中;
从这个流程上来看的话,应该如何操作?
您好!
我的系统环境:iRedMail 0.6.1 数据库:mysql
用户帐号是从原来的qmail + vpopmail中迁移过来,加密算法是md5crypt,在create_mail_user_MySQL.sh中使用的是MD5算法,用openssl passwd -1 -salt SALT ${DEFAULT_PASSWD}也不能一致,不知有其他的方法修改create_mail_user_MySQL.sh加密方法没有?
密码格式:
-----------------------------------------------------
openssl passwd -1 -salt SALT ${DEFAULT_PASSWD} --> $1$zIvqu5Aq$2UJ/9DufQ14Z8/7d10mDC/
roundcube中password插件修改后的密码格式 --> $1$ba0ae119$NgTK.XjFQzMFAV.7FpOOP.
---------------------------------------------------------
由于集成了其他的服务,所以不希望修改原有的加密md5crypt算法!
感谢各位的回复,谢谢!
您好!
环境是iredmail 0.6.1 mysql,在使用脚本生成了新用户并导入到数据库后,如何生成新的欢迎邮件给用户?
谢谢!
感谢更新!!
产生了这个警告:
Starting Clam AntiVirus Daemon: WARNING: Running on 32-bit system, and RLIMIT_DATA > 2GB, lowering to 2GB!
没有找到用什么参数去控制他。
参考:
https://wwws.clamav.net/bugzilla/show_b … d=1941#c20
使用:ulimit -d 2097151
可以解决。
----------------------------------------------------------------------------------------
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.96.1 Recommended version: 0.96.3
DON'T PANIC! Read http://www.clamav.net/support/faq
-----------------------------------------------------------------------------------------
iRedMail使用的clamav是否可以直接在源网站上去下载,并自行升级?
谢谢!!
感觉用iredmail0.6.1做既做一个域的primary MX,又做另一个域的backup MX的话,如果不用postfixadmin和数据库配置,应该只需要做一个transport_maps=... ,hash:/etc/postfix/transport 就OK了。
正在测试backup MX ...
------------------------------------------------------------
将此参数设置为空:
virtual_mailbox_domains =
重点要注意以下这两个参数中不能出现primary域:
virtual_mailbox_domains and relay_domains
导入mailbox中的relay帐号,且将transport字段中的dovecot修改为relay,就OK了。
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_min_user = no
biff = no
bounce_queue_lifetime = 1d
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
delay_warning_time = 0h
disable_vrfy_command = yes
enable_original_recipient = no
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
mail_name = iRedMail
mail_owner = postfix
mail_version = 0.6.1
mailbox_command = /usr/libexec/dovecot/deliver
mailbox_size_limit = 15728640
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maximal_backoff_time = 4000s
maximal_queue_lifetime = 1d
minimal_backoff_time = 300s
mydestination = $myhostname,
localhost,
localhost.localdomain,
localhost.$myhostname
mydestination =
mydomain = cchl.example.com.cn
myhostname = tecsecure.cchl.example.com.cn
mynetworks = 127.0.0.0/8
mynetworks_style = subnet
myorigin = tecsecure.cchl.example.com.cn
newaliases_path = /usr/bin/newaliases.postfix
proxy_read_maps = $canonical_maps
$lmtp_generic_maps
$local_recipient_maps
$mydestination
$mynetworks
$recipient_bcc_maps
$recipient_canonical_maps
$relay_domains
$relay_recipient_maps
$relocated_maps
$sender_bcc_maps
$sender_canonical_maps
$smtp_generic_maps
$smtpd_sender_login_maps
$transport_maps
$virtual_alias_domains
$virtual_alias_maps
$virtual_mailbox_domains
$virtual_mailbox_maps
queue_directory = /var/spool/postfix
queue_run_delay = 300s
readme_directory = /usr/share/doc/postfix-2.5.9/README_FILES
recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql_recipient_bcc_maps_domain.cf,
proxy:mysql:/etc/postfix/mysql_recipient_bcc_maps_user.cf
recipient_delimiter = +
relay_domains = $mydestination,
proxy:mysql:/etc/postfix/mysql_relay_domains.cf
relay_recipient_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
sample_directory = /usr/share/doc/postfix-2.5.9/samples
sender_bcc_maps = proxy:mysql:/etc/postfix/mysql_sender_bcc_maps_domain.cf,
proxy:mysql:/etc/postfix/mysql_sender_bcc_maps_user.cf
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_enforce_tls = no
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated,
check_helo_access pcre:/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unlisted_recipient,
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
reject_non_fqdn_helo_hostname,
reject_invalid_helo_hostname,
check_policy_service inet:127.0.0.1:10031
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_local_domain =
smtpd_sasl_path = dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql_sender_login_maps.cf
smtpd_sender_restrictions = permit_mynetworks,
reject_sender_login_mismatch,
permit_sasl_authenticated
smtpd_tls_cert_file = /etc/pki/tls/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/pki/tls/private/iRedMail.key
smtpd_tls_loglevel = 0
smtpd_tls_security_level = may
tls_random_source = dev:/dev/urandom
transport_maps = proxy:mysql:/etc/postfix/mysql_transport_maps_user.cf,
proxy:mysql:/etc/postfix/mysql_transport_maps_domain.cf,
hash:/etc/postfix/transport #这句是我刚加上的
unknown_local_recipient_reject_code = 550
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf,
proxy:mysql:/etc/postfix/mysql_domain_alias_maps.cf
virtual_gid_maps = static:519
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 519
virtual_transport = dovecot
virtual_uid_maps = static:519
在main.cf中没有设置:transport_maps = hash:/etc/postfix/transport
但设置了文件transport,且生成了transport.db
竟然也能达到相同的效果。
近来由于某台pc需要不断的使用内网的iRedMail 0.6.1发邮件,但很容易达到限制条件,详细日志如下:
Sep 7 16:09:07 hostname1 postfix/smtpd[29303]: disconnect from unknown[192.168.152.220]
Sep 7 16:09:16 hostname1 postfix/smtpd[31637]: connect from unknown[192.168.152.220]
Sep 7 16:09:16 hostname1 postfix/smtpd[31637]: 0AE622F03E: client=unknown[192.168.152.220], sasl_method=LOGIN, sasl_username=username@domain.com.cn
Sep 7 08:09:16 hostname1 policyd: rcpt=157, throttle=abuse(f), host=192.168.152.220, from=username@domain.com.cn, to=ousername@domain.com.cn, size=2563/15728640, quota=217539/250000000, count=60/60(1246), rcpt=60/3600(1270), threshold=0%|100%|1%, sasl_username=username@domain.com.cn
Sep 7 16:09:16 hostname1 postfix/smtpd[31637]: 0AE622F03E: reject: END-OF-MESSAGE from unknown[192.168.152.220]: 554 5.7.1 <END-OF-MESSAGE>: End-of-data rejected: Policy Rejection- Limit has been reached.; from=<username@domain.com.cn> to=<ousername@domain.com.cn> proto=ESMTP helo=<username>
Sep 7 16:09:16 hostname1 postfix/cleanup[30943]: 0AE622F03E: message-id=<20100907080916.0AE622F03E@hostname1.domain.com.cn>
Sep 7 16:09:18 hostname1 postfix/smtpd[31637]: disconnect from unknown[192.168.152.220]
请教各位,如何修改限制策略,才能让他发邮件?
已经采取的措施:
在policyd中的whitelist和whitelist_sender中均插入了相应的记录,但问题依然存在。
感谢各位的回复!
[root@imail bin]# dovecot --version
1.1.18
您好!
按以下地址的说明,在vmail.mailbox中记录用户最新的登录日期、地址和ip信息失败。
http://www.iredmail.org/forum/topic379- … tocol.html
文件设置如下:
vi trackLastLogin.sh
MYSQL_USER='root'
PASSWD='rootpasswd'
VMAIL_DB_NAME='vmail'
if [ X"${USER}" != X"dump-capability" ]; then
mysql -u${MYSQL_USER} -p${PASSWD} ${VMAIL_DB_NAME} >/dev/null 2>&1 <<EOF
UPDATE mailbox SET \
lastloginipv4="INET_ATON('$IP')", \
lastlogindate="NOW()", \
lastloginprotocol="${1}" \
WHERE username='$USER';
EOF
fi
-------------------------------------------------------------------------------------------------
vi /etc/dovecot.conf
# IMAP configuration
protocol imap {
mail_drop_priv_before_exec=yes
mail_executable = /usr/bin/trackLastLogin.sh imap
mail_plugins = quota imap_quota zlib
# number of connections per-user per-IP
#mail_max_userip_connections = 10
}
# POP3 configuration
protocol pop3 {
mail_drop_priv_before_exec=yes
mail_executable = /usr/bin/trackLastLogin.sh pop3
mail_plugins = quota zlib
pop3_uidl_format = %08Xu%08Xv
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}
-------------------------------------------------------------------------------
service dovecot restart
之后,数据库中只能记录lastloginprotocol,如下面的内容:
mysql> select lastloginipv4,lastlogindate,lastloginprotocol from mailbox where lastloginprotocol<>'' limit 10;
+---------------+---------------------+-------------------+
| lastloginipv4 | lastlogindate | lastloginprotocol |
+---------------+---------------------+-------------------+
| 0 | 0000-00-00 00:00:00 | pop3 |
| 0 | 0000-00-00 00:00:00 | pop3 |
| 0 | 0000-00-00 00:00:00 | pop3 |
| 0 | 0000-00-00 00:00:00 | pop3 |
| 0 | 0000-00-00 00:00:00 | pop3 |
| 0 | 0000-00-00 00:00:00 | pop3 |
| 0 | 0000-00-00 00:00:00 | pop3 |
| 0 | 0000-00-00 00:00:00 | pop3 |
| 0 | 0000-00-00 00:00:00 | pop3 |
| 0 | 0000-00-00 00:00:00 | pop3 |
+---------------+---------------------+-------------------+
-----------------------------------------------------------------------------------------
将/etc/dovecot.conf中的调试选项全部开启,也没有sql update的信息出现。
#
# Debug options.
#
mail_debug = yes
auth_verbose = yes
auth_debug = yes
auth_debug_passwords = yes
不知道是什么原因?
谢谢!
请问一下,以下错误怎么会产生,谢谢!
-----------------------------------------------------------------------------------------
Error: read(/var/run/dovecot/dict-server) failed: Remote disconnected
------------------------------------------------------------------------------------------
更多的dovecot错误日志:
[root@imail log]# dovecot --version
1.1.18
------------------------------------
dovecot: Aug 17 10:35:31 Error: dict: db_env(): Unable to allocate memory for transaction detail
dovecot: Aug 17 10:35:31 Error: dict: db_env.txn_begin() failed: Cannot allocate memory
dovecot: Aug 17 10:35:31 Error: dict:
dovecot: Aug 17 10:35:31 Error: dict: db(/var/lib/dovecot/expire/expire.db) open failed
dovecot: Aug 17 10:35:31 Error: dict: Failed to initialize dictionary 'expire'
搞掂了,感谢回复!
今天在进行0.5.1-->0.6.0升级时,数据库连接字符串在复制粘贴时,我带了一对引号过去,导致程序在合并路径时,多了一个引号,不能识别,呵。。。以后要多加小心了。
[06- 8 2010 15:33:18] MDB2 Error: not found (-4): unable to find package 'MDB2_Driver_"mysqli' file 'MDB2/Driver/"mysqli.php'
[06-Aug-2010 15:33:18 +0800]: DB Error: unable to find package 'MDB2_Driver_"mysqli' file 'MDB2/Driver/"mysqli.php' in /var/www/roundcubemail-0.3.1/program/include/rcube_mdb2.php on line 100 (POST /?_task=settings&_action=plugin.password-save?_task=&_action=)
您好!
我的生产环境版本是0.5.1,偶尔amamis服务停止,导致客户端反馈邮件能发不能收的时候,队列中都存在几百封邮件了,各位有什么好办法没有,能够监测到关键服务停止后,自动启动该服务,谢谢!
升级到0.6.0之后,假期自动回复后,中文主题会显示乱码,目前没有办法可以解决,据说是dovcot的问题,还是慎重一点好。
Policyd服务没有开启:
server 127.0.0.1:10031: Connection refused
Amavisd服务没有开启:
connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
以上服务如果已经关闭的话,需要在main.cf中将相关的参数也注释掉。
iRedMail 开源邮件服务解决方案 » 由 sdaniel 发表的文章
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2010 PunBB.
页面生成时间 0.011 秒, 共执行查询 57 条