Articles of dovecot

后缀别名只能转发给本地用户

我已经使用这个教程设置了Dovecot和Postfix,它可以用来接收和发送邮件。 别名也可以正常工作,但只适用于本地用户。 即我可以从[email protected]转发到[email protected],其中只有realaddress被定义为虚拟用户(使用MySQL)。 我想要做的是转发到外部地址,如Gmail或其他邮件服务器。 我所有的configuration文件都完全符合上面的链接。 我试过添加 virtual_alias_domains = 到postfix / main.cf,但是没有解决任何问题。 也手动添加域,即 virtual_alias_domains = forwarddomain.com 没有工作。 我得到的错误是 to=<[email protected]>, orig_to=<[email protected]>, relay=mydomain.com[private/dovecot-lmtp], delay=0.07, delays=0.05/0.01/0/0.01, dsn=5.1.1, status=bounced (host mydomain.com[private/dovecot-lmtp] said: 550 5.1.1 <[email protected]> User doesn't exist: [email protected] (in reply to RCPT TO command)) 。 输出postconf -n: alias_database = hash:/ etc / aliases alias_maps = hash:/ etc / aliases […]

用Dovecot电子邮件服务器的特定attrs创buildLDAP目录用户

我已经将openldap-2.4.39-8.el6.x86_64安装到我的CentOS发行版6.4(Final)机器中。 我有另一台机器,我安装了dovecot,我想为我的dovecot邮件用户执行ldap身份validation。 这是我的ldapsearch结果目前的样子: dn: dc=mailtest,dc=example,dc=net objectClass: top objectClass: dcObject objectClass: organization o: Test-Dovecot Lab, Inc. dc: mailtest dn: ou=People,dc=mailtest,dc=example,dc=net objectClass: organizationalUnit ou: People 这就是我configuration我的dovecot-ldap.conf.ext文件的方法: user_attrs = \ =user=%{ldap:mailRoutingAddress}, \ =quota_rule=*:storage=%{ldap:messageQuotaHard}k user_filter = (mailRoutingAddress=%u) pass_attrs = \ =user=%{ldap:mailRoutingAddress}, \ =password=%{ldap:userPassword}, \ =userdb_quota_rule=*:storage=%{ldap:messageQuotaHard}k pass_filter = (mailRoutingAddress=%u) iterate_attrs = mailRoutingAddress=user iterate_filter = (objectClass=messageStoreRecipient) 我想添加用户到ldap目录中,如果可能的话包括下列属性: mailRoutingAddress userPassword mailRoutingHost or […]

在提供客户端证书时,跳过Dovecot的密码validation

使用Dovecot版本2.1.7,我已经获得了客户端证书,只需付出很less的努力,此时我可以select在证书检查之后进行密码validation,或者使证书成为强制性的,并且完全跳过密码。 我想要做的是保留可选的证书authentication,并禁用密码只有当用户使用证书。 这个想法是,具有移动设备的用户可以获得设备特定的密钥/证书,这些密钥/证书可以在被盗窃的情况下被撤销,而不会影响用户的其他客户端login的能力。 我想要做的事似乎不可能从我的文档阅读,但也许有人在这里pipe理它。

具有多个IP地址的服务器上的Postfix会在头中发送错误的HELO邮件

我有一个VPS多个IP地址: venet0:0 xxx2 venet0:1 xxx3 venet0:2 xxx4 venet0:3 xxx5 所有IP都有Alogging m2.domain.com – > xxx2 m3.domain.com – > xxx3 m4.domain.com – > xxx4 m5.domain.com – > xxx5 和rDNSlogging xxx2 – > m2.domain.com xxx3 – > m3.domain.com xxx4 – > m4.domain.com xxx5 – > m5.domain.com 我已经安装了postfix + dovecot + mysql + opendkim。 这是我的master.cf启动SMTP的一部分: xxx2:smtp inet n – […]

Postfix / Dovecot多重身份validation后端

我试图在所有这些的postfix / dove服务器上configuration多个来源: virtual_alias_maps = ldap:/etc/postfix/valiases.cf,ldap:/etc/postfix/useraliases.cf,ldap:/etc/postfix/groupaliases.cf virtual_mailbox_maps= ldap:/etc/postfix/mailbox.cf virtual_mailbox_domains = ldap:/etc/postfix/vdomains.cf smtpd_sender_login_maps = ldap:/etc/postfix/login.cf 所以例如我会扩展virtual_alias_maps: virtual_alias_maps = virtual_alias_maps = mysql:/etc/postfix/valiases2.cf, ldap:/etc/postfix/valiases.cf 我怎么能告诉后缀,即使第二个LDAPauthentication失败(例如服务器完全closures),然后忽略它? 我有MySQL身份validation工作,但如果我添加辅助LDAP源和LDAP服务器没有configuration,我将永远结束: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 451 4.3.0 <[email protected]>: Temporary lookup failure;

dovecot中的密码不匹配与postafixadmin

几个小时后,试图build立一个新的邮件服务器,我只是不知道为什么postfixadmin存储的密码与dovecot通过validation的不匹配。 在postfixadmin中,密码encryption设置是: $CONF['encrypt'] = 'md5crypt'; 在鸽舍里 default_pass_scheme = MD5-CRYPT 我试图login使用 telnet doveadm desktop mail client 在这三种情况下,mail.log始终显示相同的结果 Jun 4 19:02:14 mail dovecot: auth-worker(8215): sql([email protected]): Password mismatch Jun 4 19:02:14 mail dovecot: auth-worker(8215): Debug: sql([email protected]): MD5-CRYPT(oSPYmCa5Lhzc2ok2bLfQNqDCx) != '$1$37cc98c3$FeIfz2v7CfeSroJkyH4rK0' Jun 4 19:02:16 mail dovecot: auth: Debug: client passdb out: FAIL#0111#[email protected] 对我来说,dovecot看起来像用MD5-CRYPT()encryption密码的方式不匹配postfixadmin所做的数据库input。 这是问题吗? 如果是这样,我该如何解决呢?

电子邮件损坏,并添加一个winmail.dat文件附件只有一个邮箱

我有一个邮箱接收来自使用Outlook的特定公司的电子邮件,并且发送到该地址的所有电子邮件都被剥离了正确的结构,并附上了一个winmail.dat文件。 这只发生在我的服务器上的单个邮箱。 我们在同一台服务器上的其他员工从相同的发件人那里接收未修改和完整的消息。 我们使用Ubuntu 14.04,Virtualmin,Procmail,Postfix和Dovecot组合。 我已经尝试在新服务器上创build一个新的邮箱,并通过IMAP同步脚本将所有邮件复制到新帐户,但电子邮件仍然通过剥离只为该帐户,其他人都很好。 我设法查看发送到我们的服务器的电子邮件的样本,并比较了源代码。 一个不同之处在于在Received:之后,在From:之前,下面一行被插入到不好的电子邮件中: Content-Type: multipart/mixed; boundary="_000_2A63131FAB54A14B88827878643A8A4221489EEBKELLYEX01domain_" 另一个区别是看起来不错的电子邮件没有X-MS-TNEF-Correlator: X-MS-TNEF-Correlator: 而破损的电子邮件有: X-MS-TNEF-Correlator: <[email protected]> 我检查了/var/log/procmail.log,那里没有任何内容表明额外的过滤。 有一个邮箱的个别设置,可能导​​致这个?

Dovecot – 致命:execv(/ usr / lib / dovecot / imap-login)失败:权限被拒绝

我正在试图根据本指南合理地设置自己的邮件服务器: http : //sealedabstract.com/code/nsa-proof-your-e-mail-in-2-hours/ 我刚开始testingconfiguration,我似乎无法得到一个SSL连接。 当我运行这个命令时: openssl s_client -prexit -state -debug -connect localhost:993 它说“SSL握手读取了0字节并写入了298字节”,检查/var/log/dovecot.log显示: 致命:execv(/ usr / lib / dovecot / imap-login)失败:权限被拒绝 这很奇怪,因为ls -lL /usr/lib/dovecot | grep imap-login ls -lL /usr/lib/dovecot | grep imap-login呈现: drwxrwxrwx 2 mail dovecot 4096 Jul 8 12:25 imap-login 和http://wiki.dovecot.org/UserIds似乎表明,那些permisions应该是足够的。 因为我真的不知道这里发生了什么是dovecot -n : # 2.1.7: /etc/dovecot/dovecot.conf # OS: Linux 4.0.4-x86_64-linode57 x86_64 […]

dovecot-antispam错误存储邮件

我有一个运行dovecot与dovecot反垃圾邮件插件的服务器。 这些来源于标准的Ubuntu 14.04版本库。 我知道邮件不应该被转移到“不确定”types的邮箱中。 服务器应该拒绝这个动作。 实际上发生的事情是,imap进程抛出一个错误,并死亡: Aug 12 17:53:07 255c7fc2d2f0 imap: antispam: mailbox_is_unsure(Review-Classification): 1 Aug 12 17:53:07 255c7fc2d2f0 dovecot: imap([email protected]): Panic: file mail-storage.c: line 2141 (mailbox_copy): assertion failed: (!ctx->unfinished) Aug 12 17:53:07 255c7fc2d2f0 dovecot: imap([email protected]): Error: Raw backtrace: /usr/lib/dovecot/libdovecot.so.0(+0x5e271) [0x7f718e7dd271] -> /usr/lib/dovecot/libdovecot.so.0(+0x5e34e) [0x7f718e7dd34e] -> /usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f718e798a9e] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0x7196f) [0x7f718eab896f] -> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_move+0x15) [0x7f718eab8985] -> dovecot/imap(+0xded5) [0x7f718ef84ed5] […]

Dovecot不从Postfix获取邮件

我已经在远程机器上安装了成功发送邮件以及接收邮件的Postfix。 为了通过电子邮件客户端(Thunderbird)连接到远程服务器,我已经安装了Dovecot。 现在我可以通过Thunderbird连接到远程服务器,甚至发送邮件,但不能接收任何东西。 当我为虚拟电子邮件用户检查我的Dovecot目录时,他们的cur和新目录是空的。 你有什么想法,为什么? 鸽子configuration: /etc/dovecot/dovecot.conf: # Enable installed protocols !include_try /usr/share/dovecot/protocols.d/*.protocol /etc/dovecot/conf.d/10-master.conf: service imap-login { inet_listener imap { #port = 143 } inet_listener imaps { port = 993 ssl = yes } } service pop3-login { inet_listener pop3 { #port = 110 } inet_listener pop3s { port = 995 ssl = yes } […]