Articles of dovecot

从系统到虚拟用户的Dovecot / sendmail迁移

我有一个生产邮件系统。 最初的设置是由系统用户完成的。 每个域都有一个系统用户,最后到同一个域的所有邮件都会转到同一个帐户(之后移到基于该系统用户的procmailconfiguration的特定文件夹)。 Dovecot的职责是处理邮件的imap。 Sendmail SMTP。 系统用户在他们的homedir以及Maildir本身都有一个procmailconfiguration。 所以系统用户的邮件在/ home / {user} / Maildir中。 Procmailconfiguration在/ home / {user} /中。 我现在正在考虑切换到虚拟用户,以便使其更容易扩展。 我已经修改了dovecotconfiguration以使用基于passwd文件的虚拟用户。 passwd文件(包括userdb和passdb,以及每个虚拟用户的一个单独的id)path是/ home / {domain} / passwd(我实际上首先想要所有的域都有一个passwd文件,但是我没有得到它去工作,但也许我可以稍后再看一遍)。 passwd文件中的条目指向/ home / {domain} /,为此, {user}部分是系统用户homedir的符号链接(例如/ home / {user}(如果他有这样的条目)。 它使我能够首先迁移Dovecot部分,然后再迁移Sendmail / procmail部分。 鸽舍设置工作正常。 Sendmail仍然提供到/ home / {user}位置,但是由于符号链接,Dovecot可以到达Maildirs。 我现在正在考虑修改我的sendmail安装程序,通过Dovecot的LDAfunction将邮件传递给这些虚拟用户的家庭,但是我担心在那个时候,我的procmail安装程序将被打破。 什么是使Sendmail使用Dovecot LDA仍然处理procmailconfiguration(或者这仍然是sendmail设置)的正确方法? Sendmail现在使用virtusertable将电子邮件发送到特定用户帐户(所以[email protected] domain1user; [email protected] domain1user,…)。 不确定这是否相关。 欢迎任何其他评论,我宁愿有一个完整的画面,不要打破设置。 在稍后的阶段,Sendmail可能会被postfix取代,但现在它正在做它应该做的事情,所以这是低优先级。

是什么导致SSL-“在初始化时closures”在dovecot上的错误?

在我的系统之一,我不时可以看到错误消息,如: TLS: SSL_read() failed: error:140E0197:SSL routines:SSL_shutdown:shutdown while in init 什么可能导致这些错误?

Dovecot邮箱encryption(扰码器) – pem_lib.c无法处理密钥

除了后面的post,Dovecot在从DB读取公钥时遇到了问题: Error: scrambler_pem_read_public_key: 139640300201616:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:696:Expecting: PUBLIC KEY 按键格式似乎有问题,即使按照这个post在pem中被格式化。 我尝试了不同的列数据types(blob,text),并以这种方式将关键字插入到表user_keys中,但是没有解决问题: insert into user_keys (uid, enabled_encryp, public_key, private_key, private_key_salt) values (1, true,'—–BEGIN PUBLIC KEY—– mQENBFkdy48BCAC9FsBgeLEmkmr5UZcS/bnrQpAcewatETpkE3IAQFxu1lhErmtu nyioZ8Oa1e+Xc6KIGk690vMbEmApifIi2FIlnDkVh3Wh1mP3he6HGRs7BgLfl9fc m6QSvjuosmWGMyZ1LiuPtoulXDiHolwGUcLPr5YifazjwdB0pPeFUnpo6kbw4XdF … fBiRS4dBoKz1Jwp5EvGbM3oh9RtDz6qK69cHZ0nKy9ErYjHS0Kw/fKFaou2T3P71 sFuvxOHojGhmxQQRw2ZSOfRgLaG1lpohAF0KNlIsGV5WQSU —–END PUBLIC KEY—–','—–BEGIN PRIVATE KEY—– lQO+BFkdy48BCAC9FsBgeLEmkmr5UZcS/bnrQpAcewatETpkE3IAQFxu1lhErmtu nyioZ8Oa1e+Xc6KIGk690vMbEmApifIi2FIlnDkVh3Wh1mP3he6HGRs7BgLfl9fc m6QSvjuosmWGMyZ1LiuPtoulXDiHolwGUcLPr5YifazjwdB0pPeFUnpo6kbw4XdF … mzN6IfUbQ8+qiuvXB2dJysvRK2Ix0tCsP3yhWqLtk9z+9bBbr8Th6IxoZsUEEcNm Ujn0YC2htZaaIQBdCjZSLBleVkEl —–END PRIVATE KEY—–', 'wZDlM/BRQwCnOVcA'); 任何帮助,欢迎!

不能在端口587上发送带有STMP Postfix的电子邮件?

我按照这个指南行: https : //www.linode.com/docs/email/postfix/email-with-postfix-dovecot-and-mysql 最后收到邮件,但我不能发送他们,我得到的是连接到邮件..我使用Claws邮件客户端,它可以让我login和接收电子邮件,但只是不发送它们。 我把它设置为使用端口587,但它只是在发送时挂起连接 这是我的master.cf: ## # Postfix master process configuration file. For details on the format # of the file, see the master(5) manual page (command: "man 5 master" or # on-line: http://www.postfix.org/master.5.html). # # Do not forget to execute "postfix reload" after editing this file. # # ========================================================================== # service type […]

pop3s不与dovecot合作

我们一直在尝试使用我们的dovecot服务器来实现pop3s ,但现在一段时间都不成功。 这台服务器工作正常, pop3 , imap ,& imaps ,只是不pop3s 。 症状是: 电子邮件客户端报告到服务器的ssl连接不起作用。 使用以下openssl命令进行testing: openssl s_client -connect myhost.net:pop3s 导致消息: 85950:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:/SourceCache/OpenSSL098/OpenSSL098-52/src/ssl/s23_lib.c:182: 当尝试pop3s连接时,dovecot服务器日志只显示以下三行: dovecot: pop3-login: Warning: SSL: where=0x10, ret=1: before/accept initialization dovecot: pop3-login: Warning: SSL: where=0x2001, ret=1: before/accept initialization dovecot: pop3-login: Warning: SSL: where=0x2002, ret=-1: SSLv2/v3 read client hello A (一个成功的ssl连接显示更多的日志信息) 请让我知道什么configuration信息可能是有帮助的,我会通过这一点。 预先感谢您的帮助。 响应请求configuration信息: dovecot版本:2.0.9 […]

Arch Linux:Dovecot Sieve脚本不能编译

Arch Linux Linux内核4.9.36(64位) 鸽舍2.2.31(65cde28) SpamAssassin版本3.4.1在Perl版本5.26.0上运行 鸽子孔0.4.19-1 尝试按照Arch Linux Wiki的Sieve教程 (我遵循虚拟用户邮件系统教程结束了这个教程 )设置邮件服务器。 这应该启用spamtest和spamtestplus 。 逐字sieve_trace_debug Wiki除了sieve_trace_debug之外所要求的sieve_trace_debug并删除文档的可读性。 /etc/dovecot/conf.d/90-sieve.conf : plugin { sieve = file:~/sieve;active=~/.dovecot.sieve # Start Arch Linux Wiki Config <https://wiki.archlinux.org/index.php/Dovecot#Sieve> sieve_extensions = +spamtest +spamtestplus sieve_spamtest_status_type = score sieve_spamtest_status_header = \ X-Spam_score: (-?[[:digit:]]+\.[[:digit:]]).* sieve_spamtest_max_value = 5.0 sieve_before = /var/lib/dovecot/sieve/global_sieves/move_to_spam_folder.sieve # End Arch Linux Wiki Config sieve_trace_debug = […]

后缀CA签名的TLS失败

当我使用来自证书颁发机构的签名SSL证书时,Postfix无法正常运行,并在/var/log/mail.log出现此错误: Sep 8 12:43:03 mail postfix/master[15557]: daemon started — version 3.1.0, configuration /etc/postfix Sep 8 12:43:11 mail postfix/smtpd[15560]: fatal: bad boolean configuration: smtpd_sasl_authenticated_header = yes? smtpd_tls_cert_file=/etc/ssl/certs/mail_centralcloudmanager_com.crt? smtpd_tls_key_file=/etc/ssl/private/mail.centralcloudmanager.com.key Sep 8 12:43:12 mail postfix/master[15557]: warning: process /usr/lib/postfix/sbin/smtpd pid 15560 exit status 1 Sep 8 12:43:12 mail postfix/master[15557]: warning: /usr/lib/postfix/sbin/smtpd: bad command startup — throttling /etc/postfix/main.cf SSL相关部分: smtpd_sasl_type […]

Postfix邮件服务器拒绝从wordpress站点发送邮件

我最近使用Postfix,Dovecot和MySQL在linode上设置了邮件服务器。 我可以发送和接收来自邮件客户端(Outlook)的邮件,但任何时候我尝试从一个WordPress用户从我devise的一个用户发送邮件不起作用。 以下是错误日志的输出: Oct 27 18:36:52 hostname postfix/master[29738]: reload — version 2.11.0, configuration /etc/postfix Oct 27 18:37:00 hostname postfix/master[29738]: terminating on signal 15 Oct 27 18:37:00 hostname postfix/master[8304]: daemon started — version 2.11.0, configuration /etc/postfix Oct 27 18:37:12 hostname postfix/smtpd[8309]: warning: hostname mydomain.com does not resolve to address 2a01:7e00::f03c:91ff:fecf:e7a6 Oct 27 18:37:12 hostname postfix/smtpd[8309]: connect […]

Postfix和dovecotconfiguration问题

我在configurationPostfix和Dovecot作为邮件系统在Ubuntu 9.04虚拟用户VPS上遇到了一个问题。 在哪里我不能发送或接收任何邮件。 从我得到的错误:致命:postmaster_address设置没有给出 请find以下configuration: 后缀main.cf smtpd_banner = $myhostname ESMTP $mail_name MailMin biff = no # appending .domain is the MUA's job. append_dot_mydomain = no # Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h readme_directory = no # ———————- TLS PART START ———————- smtp_use_tls = yes smtpd_tls_received_header = yes smtpd_tls_mandatory_protocols = […]

如何告诉垃圾邮件刺客不要隔离加标签的电子邮件?

我在家里用自己的postfix邮件服务器运行一个类似于这个的设置。 我select通过dovecot将标记的垃圾邮件发送到用户的垃圾邮箱,以便他们可以查看标记的电子邮件,如果他们愿意的话; 这些垃圾邮箱会定期清除,并且SA的bayes正在接受培训。 但令人烦恼的是,SA(或amavisd-new,我甚至不确定)另外将标记的垃圾邮件保存到/var/virusmails/spam-xxx.gz,这是我不想要的。 我无法在configuration中find正确的选项来closures该行为。 任何指针非常感谢。