Postfix 在 Ubuntu 不会发送电子邮件“没有这样的文件或目录 '/etc/postfix/cacert.pem'»

我正在努力得到

postfix

安装 Ubuntu 13.04, 但到目前为止不成功。 我在这里找到了几个答案 ServerFault, 这不起作用。 我重新安装了很多次,什么都没有。 我第一次来偶然,我看了这个
http://www.servermom.com/easy- ... /197/

http://rtcamp.com/tutorials/in ... untu/
. 我试过了
https://askubuntu.com/question ... press
, 没有。 这就是我所得到的

telnet localhost 25



ehlo localhost

:

250-elclanrs.localdomain
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

你可以看到,没有

AUTH

那里 ...

这是我的

main.cf

:

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

append_dot_mydomain = no

readme_directory = no
myorigin = /etc/mailname
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8 192.168.1.0/24 [::1]/128 [fe80::]/64
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all

relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes

然后我有它

sasl_passwd

:

[smtp.gmail.com]:587 elclanrs@gmail.com:mypass

我也设置了

php.ini

:

sendmail_path = "/usr/sbin/sendmail -t -i"

没有什么工作,信件不去 PHP. 如何工作?
已邀请:

诸葛浮云

赞同来自:

(基于所呈现的日志条目
https://gist.github.com/elclan ... l.log
)

Apr  9 18:25:41 elclanrs postfix/smtp[13034]: cannot load Certificate Authority data: disabling TLS support
Apr 9 18:25:41 elclanrs postfix/smtp[13034]: warning: TLS library problem: 13034:error:02001002:system library:fopen:No such file or directory:bss_file.c:169:fopen('/etc/postfix/cacert.pem','r'):
[...]
Apr 9 18:25:42 elclanrs postfix/smtp[13034]: 249AD3FFAE: to=<elclanrs@elclanrs.spacirdesigns.com>, relay=smtp.gmail.com[173.194.68.109]:587, delay=0.29, delays=0.03/0/0.21/0.04, dsn=5.7.0, status=bounced (host smtp.gmail.com[173.194.68.109] said: 530 5.7.0 Must issue a STARTTLS command first. ku2sm27631513qeb.4 - gsmtp (in reply to MAIL FROM command))

纠正你的

smtp_tls_CAfile

退房
http://mhawthorne.net/posts/po ... .html
这意味着

smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt


Gmail 仅优惠 SMTP AUTH 只能通过加密连接 (后 STARTTL 或通过 SMTPS).

包裹 Debian, 数据提供 CA, 叫 ca-Certificates.
</elclanrs@elclanrs.spacirdesigns.com>

要回复问题请先登录注册