我对Debian比较熟悉,一直试图用本教程设置邮件服务器。
现在,我已经通过网站上提供的所有意见,尝试找出问题,但他们似乎并没有工作。 我遇到了一些在serverfault上类似的问题,但他们也不能工作。 我面临的最大挑战就是真正地制作堆栈跟踪的正面或反面。
我看到很多的警告和一些错误,不能告诉路由的原因是什么。 最大的挑战是,这是我第一次处理任何邮件相关/ smtp。
我解决的第一个错误是这个
Fatal: Error reading configuration: Invalid settings: postmaster_address setting not given
通过将"postmaster_address = [email protected]"添加到/etc/dovecot/conf.d/15-lda.conf文件中。
注意
根据许多post,添加这行的文件是不一样的。
现在来了一堆我无法理解的堆栈
Jan 9 00:27:19 xxxxxxxx postfix/smtpd[28713]: warning: cannot get RSA certificate from file /etc/ssl/certs/dovecot.pem: disabling TLS support Jan 9 00:27:19 xxxxxxxx postfix/smtpd[28713]: warning: TLS library problem: 28713:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('/etc/ssl/certs/dovecot.pem','r'): Jan 9 00:27:19 xxxxxxxx postfix/smtpd[28713]: warning: TLS library problem: 28713:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400: Jan 9 00:27:19 xxxxxxxx postfix/smtpd[28713]: warning: TLS library problem: 28713:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:722: Jan 9 00:27:19 xxxxxxxx postfix/submission/smtpd[28714]: warning: cannot get RSA certificate from file /etc/ssl/certs/dovecot.pem: disabling TLS support Jan 9 00:27:19 xxxxxxxx postfix/submission/smtpd[28714]: warning: TLS library problem: 28714:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('/etc/ssl/certs/dovecot.pem','r'): Jan 9 00:27:19 xxxxxxxx postfix/submission/smtpd[28714]: warning: TLS library problem: 28714:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400: Jan 9 00:27:19 xxxxxxxx postfix/submission/smtpd[28714]: warning: TLS library problem: 28714:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:722: Jan 9 00:27:19 xxxxxxxx postfix/smtpd[28713]: warning: hostname xxx.xxx.xx.x.hostname.com does not resolve to address xxx.xxx.xx.x: No address associated with hostname Jan 9 00:27:19 xxxxxxxx postfix/smtpd[28713]: connect from unknown[xxx.xxx.xx.x] Jan 9 00:27:19 xxxxxxxx postfix/submission/smtpd[28714]: warning: hostname xxx.xxx.xx.x.hostname.com does not resolve to address xxx.xxx.xx.x: No address associated with hostname Jan 9 00:27:19 xxxxxxxx postfix/submission/smtpd[28714]: connect from unknown[xxx.xxx.xx.x] Jan 9 00:27:19 xxxxxxxx postfix/smtpd[28718]: warning: cannot get RSA certificate from file /etc/ssl/certs/dovecot.pem: disabling TLS support Jan 9 00:27:19 xxxxxxxx postfix/smtpd[28718]: warning: TLS library problem: 28718:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('/etc/ssl/certs/dovecot.pem','r'): Jan 9 00:27:19 xxxxxxxx postfix/smtpd[28718]: warning: TLS library problem: 28718:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400: Jan 9 00:27:19 xxxxxxxx postfix/smtpd[28718]: warning: TLS library problem: 28718:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:722: Jan 9 00:27:19 xxxxxxxx postfix/submission/smtpd[28719]: warning: cannot get RSA certificate from file /etc/ssl/certs/dovecot.pem: disabling TLS support Jan 9 00:27:19 xxxxxxxx postfix/submission/smtpd[28719]: warning: TLS library problem: 28719:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('/etc/ssl/certs/dovecot.pem','r'): Jan 9 00:27:19 xxxxxxxx postfix/submission/smtpd[28719]: warning: TLS library problem: 28719:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400: Jan 9 00:27:19 xxxxxxxx postfix/submission/smtpd[28719]: warning: TLS library problem: 28719:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:722: Jan 9 00:27:19 xxxxxxxx postfix/smtpd[28718]: warning: hostname xxx.xxx.xx.x.hostname.com does not resolve to address xxx.xxx.xx.x: No address associated with hostname Jan 9 00:27:19 xxxxxxxx postfix/smtpd[28718]: connect from unknown[xxx.xxx.xx.x] Jan 9 00:27:19 xxxxxxxx postfix/submission/smtpd[28719]: warning: hostname xxx.xxx.xx.x.hostname.com does not resolve to address xxx.xxx.xx.x: No address associated with hostname Jan 9 00:27:19 xxxxxxxx postfix/submission/smtpd[28719]: connect from unknown[xxx.xxx.xx.x] Jan 9 00:27:19 xxxxxxxx postfix/smtpd[28713]: improper command pipelining after EHLO from unknown[xxx.xxx.xx.x]: QUIT\r\n Jan 9 00:27:19 xxxxxxxx postfix/smtpd[28713]: disconnect from unknown[xxx.xxx.xx.x] Jan 9 00:27:19 xxxxxxxx postfix/submission/smtpd[28714]: improper command pipelining after EHLO from unknown[xxx.xxx.xx.x]: QUIT\r\n Jan 9 00:27:19 xxxxxxxx postfix/submission/smtpd[28714]: disconnect from unknown[xxx.xxx.xx.x] Jan 9 00:27:19 xxxxxxxx postfix/smtpd[28718]: improper command pipelining after EHLO from unknown[xxx.xxx.xx.x]: QUIT\r\n Jan 9 00:27:19 xxxxxxxx postfix/smtpd[28718]: disconnect from unknown[xxx.xxx.xx.x] Jan 9 00:27:19 xxxxxxxx postfix/submission/smtpd[28719]: improper command pipelining after EHLO from unknown[xxx.xxx.xx.x]: QUIT\r\n Jan 9 00:27:19 xxxxxxxx postfix/submission/smtpd[28719]: disconnect from unknown[xxx.xxx.xx.x]
看起来像/etc/ssl/certs/dovecot.pem问题检查文件是否存在,Dovecot是否有权读取它,或者禁用SSLfunction。
在我的Ubuntu机器上,dovecot.pem在/ etc / dovecot中,用户root和组dovecot。
Dovecot包通常提供一个包装脚本/usr/share/doc/dovecot-<version>/mkcert.sh 。 尝试它来生成您的自签名证书。