我的postfix遇到了一些市长问题。我可以用outlook完美地发送邮件,但是当我尝试使用wordpress上的邮递员发送邮件时它不起作用。
对我而言,邮递员似乎不接受SSL证书。
邮件服务器在Raspbian上工作,网络服务器运行Debian Jessie。
邮件服务器配置为在端口465上使用SSL,其中包含一些购买的证书。在我的网站上使用相同的证书。
Postfix main.cf:
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_cert_file=/etc/postfix/SSL/privates.cert
smtpd_tls_key_file=/etc/postfix/SSL/private.key
smtpd_tls_CAfile=/etc/postfix/SSL/privateRoot.cert
smtpd_use_tls=yes
smtpd_tls_auth_only = yes
smtpd_tls_loglevel = 3
smtp_sasl_auth_enable=yes
smtp_sasl_password_maps=hash:/etc/postfix/mysql-virtual-mailbox-maps.cf
smtp_sasl_mechanism_filter = digest-md5
smtp_sasl_security_options=
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtp_host_lookup = native
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination
# reject_unknown_reverse_client_hostname
myhostname = Harry
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = example.nl, Harry, localhost.localdomain, localhost,
mydestination = localhost, 127.0.0.1
#relayhost =
mynetworks = 127.0.0.0/8, x.x.x.x
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
virtual_transport = lmtp:unix:private/dovecot-lmtp
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf`
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf
Postfix master.cf:
# copy made in smae folder for backup .orig
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - - - - smtpd
submission inet n - - - - smtpd
-o syslog_name=postfix/submission
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
smtps inet n - - - - smtpd
-o syslog_name=postfix/smtps
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp
relay unix - - - - - smtp
showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
Outlook工作正常,SSL已被接受,但使用Postman(Wordpress):
SSL_accept:SSLv3 flush data
Oct 2 07:52:13 Harry postfix/smtps/smtpd[23113]: read from B80F69D0 [B80FBFC3] (5 bytes => 5 (0x5))
Oct 2 07:52:13 Harry postfix/smtps/smtpd[23113]: 0000 15 03 03 00 02 .....
Oct 2 07:52:13 Harry postfix/smtps/smtpd[23113]: read from B80F69D0 [B80FBFC8] (2 bytes => 2 (0x2))
Oct 2 07:52:13 Harry postfix/smtps/smtpd[23113]: 0000 02 30 .0
Oct 2 07:52:13 Harry postfix/smtps/smtpd[23113]: SSL3 alert read:fatal:unknown CA
Oct 2 07:52:13 Harry postfix/smtps/smtpd[23113]: SSL_accept:failed in SSLv3 read client certificate A
Oct 2 07:52:13 Harry postfix/smtps/smtpd[23113]: SSL_accept error from unknown[x.x.x.x]: 0
Oct 2 07:52:13 Harry postfix/smtps/smtpd[23113]: warning: TLS library problem: 23113:error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:s3_pkt.c:1260:SSL alert number 48:
Oct 2 07:52:13 Harry postfix/smtps/smtpd[23113]: lost connection after CONNECT from unknown[x.x.x.x]
请帮忙! :(
亲切的问候,
森