4,626

(1 篇回复,发表在 iRedMail 技术支持)

I merged all the new features and latest v1.1 changes under one tree:

http://hg.dovecot.org/dovecot-1.2/

The changeset order is kind of weird though. The timestamps jump all
around. Wonder if there's a way to reorder them so that it looks more
sane..

The status of the new features:

1. CONDSTORE extension is probably the largest change. It adds new
"modification sequences" for messages that increase whenever the
message's metadata changes.

I'll probably have to reimplement the way modseqs are calculated,
because modseqs will be very useful when implementing replication and
the current way just doesn't work with it. If modseq-supporting clients
see the current modseqs and later the server gets upgraded to new
modseqs, the clients will most likely break. So this change should be
done for v1.2.

2. QRESYNC, ESEARCH, SEARCHRES and WITHIN extensions are fully
implemented. QRESYNC might need some cleanups and optimizations though.

3. CONTEXT=SEARCH extension is fully implemented, but could use a few
optimizations (caching PARTIAL and CONTEXT searches, maybe others too).

4. Virtual mailboxes should work fast after mailbox is opened. The
initial opening could use several optimizations though. It could
probably share some code with QRESYNC to avoid the full initial search
(storing each backend's modseq to index header). Also if search
parameters don't contain any dynamically changing data, there's no point
in searching the old messages.

The current design doesn't allow changing the search parameters or list
of mailboxes, otherwise it breaks more or less badly. I guess I could
add code to check if the dovecot-virtual file's mtime has changed and if
so make it do a full resync. This anyway means that there's no way to
support wildcard mailbox names (e.g. "all mailboxes"). But does anyone
really want that (yet)? It'll anyway be faster/easier to implement once
mailbox list indexes are implemented.

I'll still have to add a new X-MAILBOX search parameter which can be
used to test what the backend mailbox name is. This will be especially
useful with INTHREAD extension. I guess it wouldn't hurt to have FETCH
X-MAILBOX if someone wants it.

5. Thread indexes should work, but some optimizations missing and there
are some small bugs left. X-REFERENCES2 thread algorithm works.

6. INTHREAD extension isn't started yet, but I'll start it soon.
Hopefully won't be too tricky to get it working with virtual mailboxes
and CONTEXT=SEARCH..

4,627

(1 篇回复,发表在 iRedMail 技术支持)

http://dovecot.org/releases/1.1/rc/dovecot-1.1.rc9.tar.gz
http://dovecot.org/releases/1.1/rc/dovecot-1.1.rc9.tar.gz.sig

Not many bug reports these last few days, so maybe this release will be
a good one.

    + Maildir: When hardlink-copying a file, copy the W=<vsize> in the
      filename if it exists in the original filename.
    - mbox: With rc8 empty lines were inserted in the middle of saved
      mails' headers.
    - maildir: Fixed problems with opening newly saved messages which we
      saw in index file but couldn't see in dovecot-uidlist. Happened only
      when messages weren't saved via Dovecot (deliver or IMAP).
    - Several bugfixes to handling sort indexes
    - deliver: Boolean settings that were supposed to default to "yes" were
      set to "no" unless explicitly defined in dovecot.conf:
      dotlock_use_excl, maildir_copy_with_hardlinks, mbox_dirty_syncs,
      mbox_lazy_writes.

4,628

(6 篇回复,发表在 iRedMail 技术支持)

你的收件人和发件人分别是什么?收件人是否确实存在数据库里?用的是 LDAP 还是 MySQL?

4,629

(17 篇回复,发表在 iRedMail 技术支持)

Hi, all.

邮件服务器解决方案 rhms-0.5.0-rc1 发布了。这个版本的亮点主要有:

  * 增加了 SPF 检测功能,有效抵挡垃圾邮件;
  * 增加了 DKIM/DomainKeys 的检测和签署功能;
  * 增加了 Horde WebMail 1.1;
  * 为 Apache 增加了 TLS/SSL 支持;
  * 更灵活的用户收发邮件权限控制;
  * 增加了对已有 MySQL 环境的支持;
  * Postfix, Dovecot, Amavisd-new, SquirrelMail 都升级到了最新版本;

下载地址:
http://code.google.com/p/rhms/downloads/list

欢迎大家下载使用,并告诉我们您碰到的问题:
http://www.osspinc.com/bbs/viewthread.php?tid=64&extra=page%3D1

欢迎大家到论坛参加需求调查,告诉我们您的建议和需求,也许您在下一版本
的 rhms 中就能看到你期待的功能:
http://www.osspinc.com/bbs/viewthread.php?tid=42&extra=page%3D1

rhms 代表的是 "Mail Server Solution for Red Hat series",是用于快速安装
和配置邮件服务器的 shell 脚本。

rhms 并不集成和捆绑一个开源的操作系统,而是在操作系统安装好后使用的工具。

rhms-0.5.0 已经是目前您在 Google、Baidu 里能搜索到的唯一一套功能如此
完善,防垃圾邮件如此有效,安装配置如此简易,而且开源、免费的邮件服务
解决方案了。

同时,我们为您准备好了以下文档,希望能够帮助您轻松部署和使用邮件服务:

  * rhms 使用指南
    http://code.google.com/p/rhms/wiki/rhms_Usage

  * rhms 管理员指南
    http://code.google.com/p/rhms/wiki/rhms_Admin_Guide

  * rhms 客户端用户指南
    http://code.google.com/p/rhms/wiki/rhms_User_Guide

同时,我已经开始开发基于 rhms 架构的管理后台,让管理员管理这套邮件
服务器方案更轻松。
http://www.osspinc.com/bbs/viewthread.php?tid=66&extra=page%3D1

选用的核心组件是:
   * Python-2.4.3。核心开发语言。
   * webpy-0.3,web 框架。0.3 还属于开发版本。
   * Mako-0.2.1,目前性能最好的基于 Python 的模板引擎,用于实现 HTML 代码与 python 代码的分离。定制 rhms admin 或制作 skin 将会很容易。

另外,rhms admin 将支持 i18n,初始版本将以英文和简体中文为主要语言,
繁体中文暂时没有能力做翻译(我能看懂繁体中文,但是对于繁体中文的语言
组织和语言习惯不熟悉)。

我将 rhms 的主要特色及功能做了如下的整理总结,希望大家能够了解 rhms 的
作用,帮助自己快速部署邮件服务:

轻松、快速部署

  * 1分钟内即可完成安装与配置。

支持多平台、多版本

  * 支持 i386, x86_64 平台。
  * 支持 Red Hat Enterprise Linux/CentOS 5.0 ~ 5.2 版本。

安全传输

  * 为 Web 访问提供了 TLS/SSL 加密支持,有效保障您的信息安全;
  * 提供 SMTP,SMTPS 服务,为您发送的邮件提供加密支持,有效保障您的信息安全。
  * 提供 POP3,POP3S,IMAP,IMAPS 服务。您的用户可以使用 OutLook?, Foxmail,
Thunderbird 等邮件客户端收发邮件,并且可以选择是否使用加密传输以保证信息安全;
  * 灵活的邮件备份与监控机制。可以监控、备份单个用户收发的邮件,也可以对整个域的用户进行监控和备份。

有效抵挡垃圾邮件

  * 使用 SPF 技术识别邮件来源,有效防止假冒邮件。
  * 使用 DKIM 签名和校验技术。
        o 有效保证您的邮件顺利抵达收件人,并且收件方可以准确识别您的邮件,有效防止邮件被拒收等问题。
        o 有效验证接收到的邮件是否缺失来自发件的域,有效防止垃圾邮件、假冒邮件。
  * 使用灰名单(greylist)技术,有效抵挡垃圾邮件。有许多系统管理员反馈,使用了灰名单技术后,垃圾邮件减少了 80% - 99%。
  * 黑、白名单技术。
  * 灵活的邮件收发控制。
  * 灵活的邮件收发频率控制。例如,限制某用户在一分钟内最多只能发送或接收 5 封邮件。
  * 灵活的邮件收发总容量控制。例如,限制某用户在一分钟内最多只能发送或接收 10M 的邮件。

有效的病毒防护机制

  * 使用强大的开源查杀毒引擎 ClamAV 为您的邮件提供病毒查杀服务,并且定期更新病毒库,以保障您的邮件安全。

Web Mail

  * 提供基于 AJAX 技术的 Web Mail 程序,易于操作,性能优异,速度快。也为您的移动办公提供极大的便利。

灵活的用户策略控制

  * 灵活的邮件收发控制。您可以实现以下策略:
        o 只能收,不能发。
        o 只能发,不能收。
        o 不能使用 POP3 服务;
        o 不能使用 IMAP 服务。
  * 灵活的单封邮件大小控制;您可以为您的 Boss 设置单封邮件的大小为 20M,30M 等,而其他用户则只能是 10M。
  * 灵活的收件控制。用户可以屏蔽某个域的所有邮件,但允许接收其中某个用户的邮件。

管理选项

  * 无限量的虚拟域和虚拟用户。
  * 为管理员提供了方便易用的管理后台,进行域、用户的添加删除等日常管理工作;
  * 详细的邮件流量分析。以图表的形式为您呈现邮件服务器的活动状况。

您的任何意见和反馈对我们而言都是宝贵的,欢迎您下载使用,衷心希望能够帮助大家在 RHEL/CentOS 平台快速搭建好功能完备的邮件服务器。

Services

希望大家能够理解和支持我的做法:

  虽然我开发了 rhms,撰写了详细的实施文档,但是我没有义务为 rhms
提供技术支持。是否使用这套邮件服务器方案完全取决于您自己。所以 请允许我在此以个人身份提供 有偿 的邮件服务器搭建、迁移等技术
支持服务,欢迎您联系和咨询。

附录:

以下是 rhms-0.5.0 版本中加入的修正及增强,感谢大家对 rhms 的支持。

* [Fixed] 修正了 Postfix 查询 MySQL 数据库时的一个字段错误;
* [Fixed] 修正了 Postfix 的 'message_size_limit' 值; Thanks Edison.  :)

* [New] 增加了 SPF 检测功能。

 SPF 需要 DNS 配合,建议您为自己的域名添加一条 TXT 类型的记录,提供给
 客户端查询,以减少被判为垃圾邮件的几率。
 更详细信息请参考 rhms wiki 文档:
 http://code.google.com/p/rhms/wiki/rhms_tut_SPF

 在此也感谢 ChenWei 完善了一大部分 SPF 文档。

* [New & Update] 升级 Amavisd-new 至 2.6.0,并通过它实现了邮件的 DKIM
 签名和校验功能。

 rhms 中的 DKIM 是由组件 Amavisd-new-2.6.0 实现的。

 DKIM 也需要 DNS 配合,你必须为您的域名添加一些信息,用于提供给收信的
 邮件服务器做查询。

 更详细信息请参考 rhms wiki 文档:
 http://code.google.com/p/rhms/wiki/rhms_tut_DKIM

* [New] 增加了 Horde WebMail(v1.1)。适用于 MySQL 环境。

* [New] Apache 已经默认开启了 SSL 支持。

 现在可以使用 https:// 来访问你的服务器了。

* [New] 为 SquirrelMail 1.4.15 增加了新插件:Email Footer。

 Email Footer 插件可以设置所有外发的邮件尾部签名。

* [Enhanced] 灵活的收邮件控制。

 现在可以灵活地限制用户是否可以使用 POP3, IMAP, SMTP 服务收发邮件。

* [Enhanced] 增加了对已有 MySQL 服务器环境的支持;

 配置方法请参考 wiki 文档:
   - http://code.google.com/p/rhms/wiki/rhms_Usage
   - http://code.google.com/p/rhms/wiki/rhms_Usage#Exist_MySQL

* [Enhanced] 增加了在安装完 rhms 后,删除 sendmail 的操作提示。

 Idea 来自 Edison  :)

* [Enhanced] 默认启用了 Policyd 中的 RCPT ACL 功能:针对单个用户的收件
 限制。

 RCPT ACL 的作用及设置方法请参考 rhms wiki 文档:
 http://code.google.com/p/rhms/wiki/rhms_tut_Policyd_v1#RCPT_ACL

* [Enhanced] 可以通过设置一个变量来实现将 policyd 的日志记录到单独的
 文件中。

 在 'conf/policyd' 文件中将 'POLICYD_SEPERATE_LOG' 设置为 'YES' 即可。

* [Enhanced] 重新制作了 Roundcubemail 显示用户名的补丁。

 用户名将显示在右上角的任务条上(taskbar)。

* [Enhanced] vmail.mailbox 表增加了索引。

* [Enhanced] 增加了安装进度检测和识别的功能。

 在安装完某个组件后会有一个状态标识,如果重新执行 rhms,则会根据这个
 标识来判断是否重复安装和配置这个组件。

* [Update] Posfix 升级到了 2.3 系列的最新稳定版本:2.3.14。

 注意:rhms 里使用的 Postfix-2.3.14 不支持 PGSQL,因为 rhms 并不提供
 针对 PGSQL 的方案,所以没有必要额外维护 PGSQL 这个 Flavor。

 升级到 2.3.14 也带来了一个新的修正,具体请参考:
 http://code.google.com/p/rhms/wiki/rhms_FAQ#mail_to_normal_user_and_alias

* [Update] Dovecot 和 sieve 插件都升级到了最新版本。

 Dovecot   -> 1.0.14
 sieve     -> 1.0.3

* [Doc] 以下相关组件的文档已得到进一步完善:

 - SPF, DKIM.
   http://code.google.com/p/rhms/wiki/rhms_tut_SPF
   http://code.google.com/p/rhms/wiki/rhms_tut_DKIM

 - 从 EMOS/ExtMail 迁移到 rhms 环境:
   http://code.google.com/p/rhms/wiki/rhms_tut_Migration#EMOS

 - Horde WebMail(v1.1) 的安装与配置:
   http://code.google.com/p/rhms/wiki/rhms_tut_Horde

* [Misc]
 - 同步了 phpLDAPadmin 模板;
 - rhms 代码清理;

--
Best Regards.

Zhang Huangbin

- Mail Server Solution for Red Hat(R) Enterprise Linux & CentOS 5.x:
 http://rhms.googlecode.com/

这是这两天在 Postfix 的邮件列表里发出的一个新插件,功能是在 SMTP 会话期间就检查用户的邮箱容量,如果已经满了就直接拒收。
http://open.nht-norwick.com/postfix-qreject.html

to 木鸟:这下满足了吧? :lol

4,631

(14 篇回复,发表在 iRedMail 技术支持)

DKIM 在即将发布的版本中会实现。

4,632

(14 篇回复,发表在 iRedMail 技术支持)

数据字典?

rhms 里用到的 MYSQL 表结构是这个:
http://rhms.googlecode.com/svn/trunk/rh … s/rhms.sql

LDAP schema 则是这个:
http://rhms.googlecode.com/svn/trunk/rh … hms.schema

这软件是干啥的?扫描漏洞?
但是似乎信息有些旧的感觉

4,634

(14 篇回复,发表在 iRedMail 技术支持)

批量导入的工具已经有了。在 'rhms-x.y.z/tools/create_mail_user_*.sh'.

已整理到 FAQ:
http://code.google.com/p/rhms/wiki/rhms … _and_alias

以下情况由 Edison Wang (edisonwang2007 <at> gmail)发现,并协助测试解决。Thanks Edison. smile

另外一种会收到两封相同邮件的情况是这样的:将邮件发送给用户 'www@',同时 发送给邮件列表 'all@',而用户 'www@' 正好是 'all@' 这个列表的成员之一,那么 'www@' 用户会收到两封一样的邮件。

这种情况,你需要升级 Postfix 到至少 2.3.10 版本,或者 2.4.x, 2.5.x。 并且在 main.cf 中添加以下参数:

enable_original_recipient = no

检测倒可以大大简化,只要让用户自己选择一下就可以了。

已有 LAMP,只要不去配置核心的 Apache, MySQL, PHP 就可以实现。实际上代码改动量不会太大。

So Cool big_smile

4,639

(14 篇回复,发表在 iRedMail 技术支持)

增加一个:

* 使用 Amavisd-new 实现 DKIM 功能。
  amavisd-new >= 2.6.0

Hi, all.

今晚打包了 amavisd-new-2.6.0,将通过它实现 DKIM 功能。

实现 DKIM 后,rhms 就相对完善了,剩下的就是一些细节的完善和小功能的开发了。

Enjoy.

4,641

(14 篇回复,发表在 iRedMail 技术支持)

原帖由 bottle 于 2008-6-3 21:50 发表 http://www.osspinc.com/bbs/images/common/back.gif
想加入WEB部分的开发..但我只会PHP..哎...
如果有API文档..就好了..我可以做个PHP版的WEB管理..


哈,很高兴看到有朋友对这个有兴趣。

其实很简单,这个 web 管理工具需要做的大部分只是对 LDAP/MYSQL 的操作而已。所以你只要知道管理后台的这个按钮按下去,需要对 mysql/LDAP 做什么操作就可以了。

这个可以慢慢交流。:lol
可惜我不会 PHP :Q

加我 MSN/GTALK 吧。

4,642

(14 篇回复,发表在 iRedMail 技术支持)

增加一条:

* 在 MySQL/LDAP 中可以管理哪些域、邮件地址只能在指定域内收发;

4,643

(1 篇回复,发表在 iRedMail 技术支持)

http://dovecot.org/releases/1.1/rc/dovecot-1.1.rc8.tar.gz
http://dovecot.org/releases/1.1/rc/dovecot-1.1.rc8.tar.gz.sig

I then decided to add the deliver -c feature to this release. Seems to
work in my tests, but who knows if it breaks something.. Although most
of the code is called only if -c parameter is given. Anyway we really
should have a comprehensive test suite written some day (yes, help is
really wanted for this  :) .

So let's hope this is the last RC release. If there aren't any major
problems I'll release v1.1.0 in a couple of weeks.

I'll also try to merge all my different development trees into a single
v1.2 code tree within a few weeks. v1.2.0 will probably be released this
summer as well, since it mainly has new features that don't change
existing code all that much (CONDSTORE is a bit invasive though).

 + deliver: Added -c parameter to provide path to delivered mail.
   This allows maildir to save identical mails to multiple recipients
   using hard links.
 - rc6/rc7 broke POP3 with non-Maildir formats
 - mbox: Saving a message without a body or the end-of-headers line
   could have caused an assert-crash later.
 - Several dbox fixes

4,644

(1 篇回复,发表在 iRedMail 技术支持)

http://dovecot.org/releases/1.0/dovecot-1.0.14.tar.gz
http://dovecot.org/releases/1.0/dovecot … tar.gz.sig

Since v1.1.0 release is getting near, this could well be the last v1.0
release. I'll still fix important bugs, but if the bugfix is large or
affects only few people it'll probably get fixed only in v1.1 releases.

    * mbox: Enable mail_privileged_group while creating INBOX.

    - IMAP: Fixed a rare crash in FETCH BODY/BODYSTRUCTURE
    - IMAP: If mailbox is selected with EXAMINE, ignore flag changes
    - proxy: Login success reply was sent in two IP packets, which
      confused some IMAP/POP3 clients
    - ACL plugin leaked memory a bit
    - dovecot-auth: allow_nets setting with network masks didn't work
      correctly with big endian machines.

4,645

(1 篇回复,发表在 iRedMail 技术支持)

Hi, all.

今天为 rhms 加入了 SPF 功能。

- 使用的软件:pypolicyd-spf-0.6.1
    - 参考的文档是:https://help.ubuntu.com/community/Postfix/SPF


文档已经整理到 rhms wiki:

- 安装配置 pypolicyd-spf 以支持 SPF 功能
      http://code.google.com/p/rhms/wiki/rhms_tut_SPF

4,646

(14 篇回复,发表在 iRedMail 技术支持)

别急呀。

这个插件依赖的东西比较多,还在比较和测试。

将来?应该说是有很大可能的。

只是现在时间不够,精力有限,所以集中在先完善基本的功能。

感觉 Horde 好庞杂,头大。

是不是用 Horde + imp 就可以呢?
还是说要 horde-webmail-1.1?

horde-webmail-1.1 居然 25M,汗一个。