我设置了 Dovecot 和 Postfix,但是当我尝试使用 Thunderbird 进行身份验证时,出现以下错误:“Thunderbird 无法找到您的电子邮件帐户的设置。”
==> /var/log/dovecot-info.log <==
Apr 06 10:42:16 auth: Debug: auth client connected (pid=13243)
Apr 06 10:42:16 imap-login: Info: Disconnected (no auth attempts): rip=76.xx.xx.xx, lip=172.31.15.65, TLS: SSL_read() failed: error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate: SSL alert number 42
==> /var/log/maillog <==
Apr  6 10:42:16 ip-172-31-15-65 postfix/smtpd[13238]: lost connection after UNKNOWN from user-xxxxxx.cable.mindspring.com[76.xx.xx.xxx]
Apr  6 10:42:16 ip-172-31-15-65 postfix/smtpd[13238]: disconnect from user-xxxxxx.cable.mindspring.com[76.xx.xx.xx]
Run Code Online (Sandbox Code Playgroud)
我可以用telnet连接。
这是雷鸟错误。

我运行 Postfix/Dovecot 邮件服务器供个人使用。只有少数实际邮箱,基本上只有postmaster@domain.com和username@domain.com。
我经常使用该virtual文件来创建转发到username@domain.com. 我有很多这样的一次性账户,比如从在线商店一次性购买,我想尝试在线游戏而不用担心持续的垃圾邮件等。为此,我通过 SSH 运行以下命令:
sudo vim /etc/postfix/virtual
# add a line that looks like:
# # username_servicename@domain.com      username@domain.com
sudo postmap virtual
sudo service postfix restart
Run Code Online (Sandbox Code Playgroud)
我以足够的频率执行此操作,因此我希望在某种程度上使该过程自动化。我考虑过简单地编写一个 shell 脚本,将虚拟邮箱和真实邮箱作为参数并自己进行更改,但我希望能有更多的东西可以放手。
我希望能够username@domain.com使用虚拟邮箱名称作为邮件正文向服务器上的某个其他邮箱发送电子邮件。问题是sudo调用,但我可以创建一个新用户,其唯一的责任是处理这个应该处理那个。
主要的问题是:我将如何创建由电子邮件触发的事件?是否有服务可以做到这一点?我可以配置 Postfix 或 Dovecot 来侦听该电子邮件并在该事件上运行命令吗?
我最终得到了一个包含超过 350,000 个文件的 cur 文件夹。太多了,我找不到一个邮件程序来管理它们。在同一台服务器上尝试部落,它给出了错误。
我可以手动删除或移动其中一些文件(shell)吗?或者这会产生其他问题(索引)?
我的第一个目标是每年都有存档文件夹。否则我只能删除旧文件,直到大小再次变得可管理。
我在 中收到以下错误消息/var/mail/mail.err:
Jun 14 00:03:42 max dovecot: IMAP(bernhard): 
Corrupted index cache file /home/bernhard/Mail/.indexes/.imap/INBOX/dovecot.index.cache: 
Broken virtual size for mail UID 5618
Run Code Online (Sandbox Code Playgroud)
恢复索引的首选方法是什么?
我正在运行使用 Dovecot LMTP 进行邮件传递的 Postfix 服务器。我这样做是因为它与筛子配合得很好。
但是,我最近收到了一些主题行中带有 Unicode 的电子邮件。
这封邮件被 Postfix 接收正常,它显然支持 SMTPUTF8 - 但是,当它到达 LMTP 时它就死了:
<me@myhost> (expanded from <meother@mhost>): SMTPUTF8 is required, but
    was not offered by host myhost[public/lmtp]
我在 Postfix SMTPUTF8 文档中读到,
当收到带有 SMTPUTF8 请求的消息时,仅在以下情况下,Postfix 才会将消息传送到非 SMTPUTF8 SMTP 或 LMTP 服务器:
没有消息头值包含 UTF-8。
信封发件人地址不包含 UTF-8,
该特定 SMTP/LMTP 传送事务的信封收件人地址不包含 UTF-8。
注意:同一消息的其他电子邮件传送事务中的收件人可能仍包含 UTF-8。
否则,Postfix 会将邮件投递交易的收件人视为无法投递。传递状态通知消息将是 SMTPUTF8 消息。因此,它将受到与通过 SMTPUTF8 请求接收的电子邮件相同的限制。
-- http://www.postfix.org/SMTPUTF8_README.html#detecting
相关部分是“Postfix 将交付...到非 SMTPUTF8 ... LMTP 服务器,仅当... [消息中没有 UTF8]”。
这措辞笨拙,但暗示 Postfix 只会将 UTF8 邮件传递到支持 UTF8 的下游服务器。
因为我正在接收 UTF8 邮件,Postfix …
我安装了 certbot 并成功使用它来加密我的主页。
现在我尝试使用 dovecot 和 postfix 为我的网站设置电子邮件系统。
我大部分时间都在运行,唯一的问题是,thunderbird 向我发出有关地址欺诈的警告,因为我将 mysite.com 的 ssl 密钥用于 imap.mysite.com(与 smtp 相同)那么我如何添加 imap.mysite使用 certbot 将 .com 和 smtp.mysite.com 转换为现有的 mysite.com 证书以避免警告?
在 Postfix 中,我已经指定了我的私钥、我的证书和我的 CA 的证书
smtpd_tls_CAfile     = /etc/ssl/cacert.pem
smtpd_tls_key_file   = /etc/ssl/server.key
smtpd_tls_cert_file  = /etc/ssl/server.pem
Run Code Online (Sandbox Code Playgroud)
在 dovecot 中,只有指定我的密钥和我的证书的选项:
ssl_cert = </etc/ssl/server.pem
ssl_key = </etc/ssl/server.key
Run Code Online (Sandbox Code Playgroud)
如何指定我的 CA 的证书?
问题是,当我将客户端连接到端口 993 时,出现证书错误。使用openssl s_client -connect server:993我得到这个错误:
verify return:1
verify error:num=27:certificate not trusted
verify return:1
verify error:num=21:unable to verify the first certificate
verify return:1
Run Code Online (Sandbox Code Playgroud)
当我连接到端口 465 (Postfix) 时,我没有收到此错误:
openssl s_client -connect server:465
Run Code Online (Sandbox Code Playgroud) 我的邮件服务器上有Postfix+ Maildir+ Dovecot+ IMAP。我正在通过IMAP一个或多个客户端 (Thunderbird)远程访问我的邮箱。此外,在服务器上,我为本地 ( Maildir) 访问配置了 mutt 。
当我IMAP与 Thunderbird连接并同时mutt在服务器上本地启动时,Mutt似乎很困惑。当我在 Thunderbird (over IMAP) 中移动消息时,Mutt注意到某些内容发生了变化并报告:
Mailbox was externally modified.  Flags may be wrong
Run Code Online (Sandbox Code Playgroud)
问题似乎是片面的。当我在 中操作消息时Mutt,Thunderbird 会注册更改并且没有问题。
因此我的问题:
如何在没有任何冲突/数据损坏/错误的情况下进行远程IMAP客户端和本地Mutt客户端访问Maildir?
重要的:
我正在寻找一种Mutt本地访问的解决方案。出于本讨论之外的原因,我不想Mutt通过以下方式访问 MaildirIMAP.
边注:
我不明白为什么Mutt抱怨邮箱被外部修改。毕竟,Postfix 在发送新邮件时也会修改邮箱。
我正在尝试(目前收效甚微)在我的 Fedora 24 服务器上设置 Dovecot 邮件服务器。我已经安装了 Dovecot 并设置了 conf 文件,一切都很好。但是当我运行时:
systemctl restart dovecot
Run Code Online (Sandbox Code Playgroud)
编辑 conf 文件后,我收到此消息
Job for dovecot.service failed because the control process exited with error code. See "systemctl status dovecot.service" and "journalctl -xe" for details
Run Code Online (Sandbox Code Playgroud)
跑步systemctl status dovecot.service给了我一个不同的错误
[root@fedora app]# systemctl status dovecot.service
? dovecot.service - Dovecot IMAP/POP3 email server
   Loaded: loaded (/usr/lib/systemd/system/dovecot.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2016-08-16 15:02:30 UTC; 37min ago
     Docs: man:dovecot(1)
           http://wiki2.dovecot.org/
  Process: 11293 ExecStart=/usr/sbin/dovecot (code=exited, status=89) …Run Code Online (Sandbox Code Playgroud) 我成功地使用 froxlor 等设置了我的服务器,但现在我的邮件传递代理出现错误,因为我在我的 mysql-pw 中使用了“#”。我试图用 '\' 转义它,但它似乎不起作用。:(
如何更改 /etc/dovecot/covecot-sql.conf.ext 以使其使用带有特殊字符的密码(让我们以密码“test#this”为例)?
我当前的配置:
driver = mysql
connect = host=127.0.0.1 dbname=froxlor user=froxlor password=test#test
default_pass_scheme = CRYPT
Run Code Online (Sandbox Code Playgroud)
这是错误消息:
dovecot: auth: Warning: Configuration file /etc/dovecot/dovecot-sql.conf.ext line 2: Ambiguous '#' character in line, treating it as comment. Add a space before it to remove this warning.
Run Code Online (Sandbox Code Playgroud)