Dovecot 2.2.16 发布,邮件服务器

oschina
 oschina
发布于 2015年03月13日
收藏 22

Dovecot 2.2.16 发布,此版本现已提供下载:

此版本包括一些新特性,改进和 bug 修复:

* dbox: Resyncing (e.g. doveadm force-resync) no longer deletes
  dovecot.index.cache file. The cache file was rarely the problem
  so this just caused unnecessary slowness.
* Mailbox name limits changed during mailbox creation: Each part of
  a hierarchical name (e.g. "x" or "y" in "x/y") can now be up to 255
  chars long (instead of 200). This also reduces the max number of
  hierarchical levels to 16 (instead of 20) to keep the maximum name
  length 4096 (a common PATH_MAX limit). The 255 char limit is
  hopefully large enough for migrations from all existing systems.
  It's also the limit on many filesystems.

+ director: Added director_consistent_hashing setting to enable
  consistent hashing (instead of the mostly-random MD5 hashing).
  This causes fewer user moves between backends when backend counts
  are changed, which may improve performance (mainly due to caching).
+ director: Added support for "tags", which allows one director ring
  to serve multiple backend clusters with different sets of users.
+ LMTP server: Added lmtp_user_concurrency_limit setting to limit how
  many LMTP deliveries can be done concurrently for a single user.
+ LMTP server: Added support for STARTTLS command.
+ If logging data is generated faster than it can be written, log a
  warning about it and show information about it in log process's
  process title in ps output. Also don't allow a single service to
  flood too long at the cost of delaying other services' logging.
+ stats: Added support for getting global statistics.
+ stats: Use the same session IDs as the rest of Dovecot.
+ stats: Plugins can now create their own statistics fields
+ doveadm server: Non-mail related commands can now also be used
  via doveadm server (TCP socket).
+ doveadm proxying: passdb lookup can now override doveadm_port and
  change the username.
+ doveadm: Search query supports now "oldestonly" parameter to stop
  immediately on the first non-match. This can be used to optimize:
  doveadm expunge mailbox Trash savedbefore 30d oldestonly
+ doveadm: Added "save" command to directly save mails to specified
  mailbox (bypassing Sieve).
+ doveadm fetch: Added body.snippet field, which returns the first
  100 chars of a message without whitespace or HTML tags. The result
  is stored into dovecot.index.cache, so it can be fetched efficiently.
+ dsync: Added -t <timestamp> parameter to sync only mails newer than
  the given received-timestamp.
+ dsync: Added -F [-]<flag> parameter to sync only mails with[out] the
  given flag/keyword.
+ dsync: Added -a <mailbox> parameter to specify the virtual mailbox
  containing user's all mails. If this mailbox is already found to
  contain the wanted mail (by its GUID), the message is copied from
  there instead of being re-saved. (This isn't efficient enough yet
  for incremental replication.)
+ dsync: -m parameter can now specify \Special-use names for mailboxes.
+ imapc: Added imapc_features=gmail-migration to help migrations from
  GMail. See http://wiki2.dovecot.org/Migration/Gmail
+ imapc: Added imapc_features=search to support IMAP SEARCH command.
  (Currently requires ESEARCH support from remote server.)
+ expire plugin: Added expire_cache=yes setting to cache most of the
  database lookups in dovecot index files.
+ quota: If overquota-flag in userdb doesn't match the current quota
  usage, execute a configured script.
+ redis dict: Added support for expiring keys (:expire_secs=n) and
  specifying the database number (:db=n)
- auth: Don't crash if master user login is attempted without
  any configured master=yes passdbs
- Parsing UTF-8 text for mails could have caused broken results
  sometimes if buffering was split in the middle of a UTF-8 character.
  This affected at least searching messages.
- String sanitization for some logged output wasn't done properly:
  UTF-8 text could have been truncated wrongly or the truncation may
  not have happened at all.
- fts-lucene: Lookups from virtual mailbox consisting of over 32
  physical mailboxes could have caused crashes.

Dovecot 是一个开源的 IMAP 和 POP3 邮件服务器,支持 Linux/Unix 系统。

POP / IMAP 是 MUA 从邮件服务器中读取邮件时使用的协议。其中,与 POP3 是从邮件服务器中下载邮件比起来,IMAP4 则是将邮件留在服务器端直接对邮件进行管理、操作。而Dovecot 是一个比较新的软件,由 Timo Sirainen 开发,最初发布于 2002年7月。作者将安全性考虑在第一,所以 Dovecot 在安全性方面比较出众。另外,Dovecot 支持多种认证方式,所以在功能方面也比较符合一般的应用。

中文配置指南:http://www.centospub.com/make/dovecot_pop3.html

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动共创开源社区。
转载请注明:文章转载自 OSCHINA 社区 [http://www.oschina.net]
本文标题:Dovecot 2.2.16 发布,邮件服务器
加载中

最新评论(10

钛元素
钛元素

引用来自“钛元素”的评论

D+P,是linux下最流行的邮件解决方案,但是复杂程度不知道比win下的高了多少倍,有时候真觉得linux下的解决方案是在炫耀技术。。。

引用来自“wuwenbin”的评论

配置麻烦死了

引用来自“mark35”的评论

第一次配置是麻烦,不过配好了几年就不用管了。重装邮件系统时直接把备份好的配置文件拷贝过去就行(还可以直接写个脚本实现安装、配置全自动化),这就比win的方案效率高多了。
说得也是
wuwenbin
wuwenbin

引用来自“钛元素”的评论

D+P,是linux下最流行的邮件解决方案,但是复杂程度不知道比win下的高了多少倍,有时候真觉得linux下的解决方案是在炫耀技术。。。

引用来自“wuwenbin”的评论

配置麻烦死了

引用来自“mark35”的评论

第一次配置是麻烦,不过配好了几年就不用管了。重装邮件系统时直接把备份好的配置文件拷贝过去就行(还可以直接写个脚本实现安装、配置全自动化),这就比win的方案效率高多了。
这个确实
mark35
mark35

引用来自“钛元素”的评论

D+P,是linux下最流行的邮件解决方案,但是复杂程度不知道比win下的高了多少倍,有时候真觉得linux下的解决方案是在炫耀技术。。。

引用来自“wuwenbin”的评论

配置麻烦死了
第一次配置是麻烦,不过配好了几年就不用管了。重装邮件系统时直接把备份好的配置文件拷贝过去就行(还可以直接写个脚本实现安装、配置全自动化),这就比win的方案效率高多了。
不老菜
我们都太相信你了
eechen
eechen
php.ini里配置:
sendmail_path=/usr/sbin/sendmail -t -i -f'admin@domain.me'

如果按/etc/hosts默认设置,sendmail将无法发送邮件,日志里提示:
cat /var/log/mail.log|grep retry 见 My unqualified host name (YOUR_HOSTNAME) unknown; sleeping for retry
cat /var/spool/mail/eechen|grep retry

添加hostname到/etc/hosts后再安装sendmail:
sudo apt-get install sendmail

查看sendmail运行情况:
sudo netstat -antp|grep sendmail
sudo service sendmail status
eechen
eechen
转: Ubuntu安装sendmail

WordPress通过PHP提供的mail函数发送邮件,而mail函数在Linux需要sendmail支持才能正常工作.

在不做任何设定的情况下,sendmail发出邮件的邮箱源地址形如username@localhost.localdo,这种地址几乎会被所有的邮箱认定为SPAM(垃圾邮件)或直接拒收.
配置sendmail使用合法的域名分两步,修改sendmail的配置文件和添加域名MX记录:

1. 配置sendmail邮件命名
sudo nano /etc/mail/local-host-names 添加自己的域名
domain.me
sudo nano /etc/mail/submit.cf 在 #Dj$w.Foo.COM 下添加一下内容,其中Dj是格式.
Djdomain.me
sudo service sendmail restart 重启服务生效.

2. 在域名控制面板(比如DNSPod)里配置MX记录.
sendmail可以直接使用"-f account@domain.com"参数来以任意源地址发送邮件,但目前主流的邮箱都会将源地址和反向解析IP进行比较,
如果解析不到或是解析的IP不匹配,轻则将邮件直接归为SPAM,严重的就直接拒绝接收.
MX记录(Mail Exchanger Record)主要是接收邮件时使用,即当投递一封新邮件时,会查询收件人域名的MX记录,然后通过MX记录得到的IP地址进行投递.
同时邮件厂商(163/QQ等邮箱)在接收邮件的时候也会将源地址和MX记录进行比较,作为垃圾邮件的判断标准之一.

要使sendmail正常安装/启动/运行,必须往/etc/hosts里添加一行(如果没有的话):
sudo nano /etc/hosts
# sendmail
127.0.0.1 domain.me localhost.localdomain localhost YOUR_HOSTNAME
YOUR_HOSTNAME换成你的主机名,执行hostname命令可见.domain.me则是你的域名.
eechen
eechen
sendmail -t -i < mail.txt
mail.txt内容:
To: me@example.com
From: me@mylinode.com
Subject: Test
This is a test
eechen
eechen
Ubuntu VPS 使用 heirloom-mail 调用 163 邮箱 SMTP 服务器发送邮件
http://my.oschina.net/eechen/blog/214226
echo "邮件内容" | heirloom-mailx -s "邮件标题" 123@qq.com
wuwenbin
wuwenbin

引用来自“钛元素”的评论

D+P,是linux下最流行的邮件解决方案,但是复杂程度不知道比win下的高了多少倍,有时候真觉得linux下的解决方案是在炫耀技术。。。
配置麻烦死了
钛元素
钛元素
D+P,是linux下最流行的邮件解决方案,但是复杂程度不知道比win下的高了多少倍,有时候真觉得linux下的解决方案是在炫耀技术。。。
返回顶部
顶部