Articles of dovecot

Dovecot – 移动后的意外消息顺序

服务器上有Dovecot服务。 我已将用户邮箱中的邮件从一个手动移动到另一个。 现在我在iOS设备上遇到一些sorting问题。 例如: 我有2天的邮件。 ( 消息A ) 我把旧邮件移动到相同的目录(通过SSH) 雷鸟和Roundcube工作正常。 但在我的iPhone上,我不得不再次configuration邮件帐户。 不幸的是,同步后的消息是错误的。 现在我必须向下滚动几年才能得到消息A。 我发现,iOS邮件客户端不支持邮件sorting。 是否有可能通过它的date标题重新sorting每个消息,或者强迫Dovecot以所需的顺序返回消息? Telnet返回: 确定[CAPABILITY IMAP4rev1 LITERAL + SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS LOGINDISABLED AUTH = CRAM-MD5] Dovecot(Ubuntu)准备就绪。 login后: 4 OK [CAPABILITY IMAP4rev1 LITERAL + SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT = DISPLAY THREAD = REFERENCES THREAD = REFS THREAD = […]

如何将dovecot IMAP服务器上的所有帐户从一个Maildir布局转换为另一个?

我目前正在服务器上运行dovecot 2.x,邮箱的布局如下: mail_location = maildir:~/Maildir 我想将布局更改为这种格式: mail_location = maildir:~/Maildir:LAYOUT=fs:INBOX=~/Maildir/INBOX 有没有办法转换当前在服务器上的所有邮件帐户的邮箱布局? 我在看dsync,但是Dovecot wiki中的所有例子都是在mbox和Maildir之间转换的。 我也在潜在地编写脚本来手动重命名目录/移动文件以匹配新的格式,但不确定这是否会混淆UID或其他鸽舍内部。

Dovecot不使用我的mail_location参数

我在Debian 6.0.9上使用Exim 4.72和Dovecot 1.2.15。 Exim将电子邮件发送到mbox文件中的/ home / username。 dovecot.conf mail_location = mbox:~/:INBOX=/var/mail/%n 但是 – dovecot -n mail_location: maildir:~/.maildir 我无法收到电子邮件到IMAP4客户端(雷鸟)。 Exim4将电子邮件放在我的主目录中的mbox文件中。 dovecot.log 014-06-15 16:12:22 auth(default): Info: client in: AUTH 1 PLAIN service=imap lip=188.66.5.27 rip=83.139.155.115 lport=143 rport=51531 2014-06-15 16:12:22 auth(default): Info: client out: CONT 1 2014-06-15 16:12:23 auth(default): Info: client in: CONT 1 AGQuZnJpem5lcgBMb3IxMTExMTk3OCE= 2014-06-15 16:12:23 auth(default): […]

CentOS 6.5的Webmail服务器:警告:SASL:连接到私人/身份validation失败:没有这样的文件或目录

我试图在CentOS上运行Postfix,Docecot和Roundcube上的webmail服务器。 每当我尝试发送邮件或发送testing邮件到我的服务器失败。 我可以login,所以看起来像Dovecot是好的。 这是我的服务器日志: Jul 2 14:01:42 phantastyc postfix/smtpd[20154]: warning: SASL: Connect to private/auth failed: No such file or directory Jul 2 14:01:42 phantastyc postfix/smtpd[20154]: fatal: no SASL authentication mechanisms Jul 2 14:01:43 phantastyc postfix/master[18459]: warning: process /usr/libexec/postfix/smtpd pid 20154 exit status 1 Jul 2 14:01:43 phantastyc postfix/master[18459]: warning: /usr/libexec/postfix/smtpd: bad command startup — throttling […]

Postfix和Dovecot Sieve垃圾邮件filter不起作用

CentOS 6.5 x64 我正在尝试将Sievefilter应用于我的邮件服务器(Postfix + Dovecot + Spamassassin),以便将垃圾邮件自动移至我的垃圾邮件文件夹。 我已经添加了sieve到我的/etc/dovecot/dovecot.conf协议。 这是我的/etc/dovecot/conf.d/90-sieve.conf : plugin { sieve = ~/.dovecot.sieve sieve_global_path = /var/lib/dovecot/sieve/default.sieve sieve_after = /var/lib/dovecot/sieve sieve_dir = ~/sieve sieve_global_dir = /var/lib/dovecot/sieve/ } 这是/var/lib/dovecot/sieve/default.sieve的内容: require "fileinto"; if header :contains "X-Spam-Flag" "YES" { fileinto "Junk"; stop; } 这是用sievec /var/lib/dovecot/sieve/default.sieve编译的 我的Spamassassin工作正常,实际上它在邮件的主题和X-Spam-Flag被设置为YES之前添加了[SPAM]string。 我已经重新启动了dovecot和postfix。 在/ var / log / maillog中运行cat /var/log/maillog | grep […]

如何在CentOS上的audit.log中修复这个dovecot SELinux错误?

我在dovecot /var/log/audit/audit.log遇到了这些SELinux错误。 type=USER_AUTH msg=audit(1404794536.249:100679): user pid=28375 uid=0 auid=0 ses=2700 subj=unconfined_u:system_r:dovecot_auth_t:s0 msg='op=PAM:authentication acct="starrychloe" exe="/usr/libexec/dovecot/auth" hostname=99.99.99.99 addr=99.99.99.99 terminal=dovecot res=success' type=USER_ACCT msg=audit(1404794536.260:100680): user pid=28375 uid=0 auid=0 ses=2700 subj=unconfined_u:system_r:dovecot_auth_t:s0 msg='op=PAM:accounting acct="starrychloe" exe="/usr/libexec/dovecot/auth" hostname=99.99.99.99 addr=99.99.99.99 terminal=dovecot res=success' type=AVC msg=audit(1404794537.473:100681): avc: denied { read } for pid=30020 comm="imap" name="starrychloe" dev=xvde ino=152404 scontext=unconfined_u:system_r:dovecot_t:s0 tcontext=unconfined_u:object_r:home_root_t:s0 tclass=dir type=SYSCALL msg=audit(1404794537.473:100681): arch=c000003e syscall=2 success=no exit=-13 a0=7fc64f910eb0 […]

服务器发送垃圾邮件 – 如何找出原因?

我有一个专用服务器上的CentOS 6。 我是唯一有shell访问它的人。 我主办2个WordPress的和几个简单的PHP网站那里。 我的托pipe公司只是发电子邮件给我,他们阻止我的端口25,因为我发送垃圾邮件。 # cat /var/log/maillog Jul 11 16:43:28 stock postfix/smtp[31689]: 2D55610D3EE: to=<[email protected]>, relay=mail.athoise.com[217.16.10.3]:25, delay=0.53, delays=0.04/0/0.42/0.07, dsn=5.1.1, status=bounced (host mail.athoise.com[217.16.10.3] said: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox table (in reply to RCPT TO command)) Jul 11 16:43:28 stock postfix/qmgr[15611]: 2D55610D3EE: removed Jul 11 16:45:09 stock postfix/qmgr[15611]: C836D10D3AA: from=<>, […]

Postfix / dovecot删除LDAP用户

我必须删除或黑名单的LDAP / dovecot用户。 身份validation是从活动目录设置,我无法pipe理,所以我认为应该有一种方法,至less在本地邮件服务器上禁用此特定用户。 # Virtual Accoutns – LDAP – MS AD virtual_mailbox_maps = ldap:/etc/postfix/ldap_mailbox_maps.cf virtual_alias_maps = ldap:/etc/postfix/ldap_alias_maps_redirect_true.cf ldap:/etc/postfix/ldap_alias_maps_redirect_false.cf ldap:/etc/postfix/ldap_mailbox _groups.cf virtual_mailbox_domains = domain.com virtual_uid_maps = static:1000 virtual_gid_maps = static:1000 virtual_transport = dovecot dovecot_destination_recipient_limit = 1 任何人都知道如何做到这一点? 我按照这个指南通过postfixes访问文件来禁用1个用户: http://www.cyberciti.biz/faq/howto-blacklist-reject-sender-email-address/ 不幸的是它不工作。 这就像存储在LDAP中的设置不符合访问规则。 而不是拒绝邮件它继续接受它的邮件。 谢谢!

Postfix消息ID始发进程?

昨天晚上,我的postfix邮件服务器(启用了dovecot,roundcube,opendkim和spamassassin的Debian Squeeze)开始从我的单个域发送垃圾邮件,如下所示: $cat mail.log|grep D6930B76EA9 Jul 31 23:50:09 myserver postfix/pickup[28675]: D6930B76EA9: uid=65534 from=<[email protected]> Jul 31 23:50:09 myserver postfix/cleanup[27889]: D6930B76EA9: message-id=<[email protected]> Jul 31 23:50:09 myserver postfix/qmgr[7018]: D6930B76EA9: from=<[email protected]>, size=957, nrcpt=1 (queue active) Jul 31 23:50:09 myserver postfix/error[7819]: D6930B76EA9: to=<[email protected]>, relay=none, delay=0.03, delays=0.02/0/0/0, dsn=4.4.2, status=deferred (delivery temporarily suspended: lost connection with mta5.am0.yahoodns.net[66.196.118.33] while sending RCPT TO) 有问题的域没有启用任何帐户,但只有通过postfixadmin设置的catchall别名 […]

Dovecot:将回复传递到回复消息所在的文件夹中

更新 (2014年9月2日13:01):只是为了澄清,我有兴趣处理来自别人的传入回复,所以通过SMTP进来。 如果它是对已经在某个邮件文件夹中的电子邮件的回复,则该邮件也应该存储在该文件夹中。 我有一个Postfix(SMTP)+ Dovecot(IMAP)设置,用我的/ home / sybren / Maildir目录存储我的邮件。 我有一个筛选筛选器,以确保我的工作电子邮件在“工作”IMAP文件夹中结束。 我的IMAP文件夹结构相当广泛,有几个子文件夹,比如work/research/subject1 , work/research/subject2 , work/education/subject3 work/research/subject2等。 举个例子,假设我给我的同事发了一封电子邮件,内容是“AAAAAA”。 发送后,我将它移动到文件夹work/research/subject1 。 现在,我希望他们的答复“Re:AAAAAA”也可以通过Dovecot存储在work/research/subject1 。 使用main.cf中的设置将电子邮件从Postfix移交给Dovecot(全部在一行中) mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/dovecot.conf -m "${EXTENSION}" 我的main.sieve文件现在包含简单的规则,如: require ["fileinto"]; if header :contains ["To", "Cc", "Bcc", "From"] "@work.nl" { fileinto "work"; } 更新2 (2014年9月2日15:16):这是我希望看到的传入电子邮件的“stream量”: Postfix通过SMTP接收邮件。 Postfix执行垃圾邮件/病毒扫描。 Postfix把邮件交给Dovecot交付。 Dovecot检查邮件ID的某些数据库邮件文件夹映射。 如果发现In-Reply-To消息ID,则传递到相应的邮件文件夹。 如果不是,请使用Sieve脚本确定适当的位置。 当然,最后两个步骤理论上可以是同一个Sieve脚本的一部分。 我希望有人能帮助我! […]