▼環境
[EC-CUBE] 3.0.15、新規インストール
[レンタルサーバ] さくらのクラウド
[OS] CentOS Linux release 7.3.1611
[PHP] PHP Version 5.6.31
[データベース] MySQL 5.7.19
[WEBサーバ] Apache/2.4.6 PHP/5.6.31
[メールサーバー] postfix 2.10.1 dovecot 2.2.10
[SSL] openssl 1.0.2k
▼現象
EC-CUBEでメールのSSL設定をしたあとお問い合わせや新規会員登録などからメール送信ができなくなりました。
thunderbirdからは問題なくメールの送受信ができます。
EC-CUBEのログにはエラー関係の出力がありませんが
/var/log/maillogにSSL_accept errorが出力されます。
SSL_accept errorについてネット調べた限りsslの設定の問題という情報があったのでここ数日メールの設定を見直していますがどこに問題があるか特定できていないため詳しい方教えてください。
postfix
1/var/log/maillog 2 3Nov 9 14:46:00 ホスト名 postfix/smtpd[5695]: initializing the server-side TLS engine 4Nov 9 14:46:00 ホスト名 postfix/smtpd[5695]: connect from サーバーのドメイン名[サーバーのIPアドレス] 5Nov 9 14:46:00 ホスト名 postfix/smtpd[5695]: setting up TLS connection from サーバーのドメイン名[サーバーのIPアドレス] 6Nov 9 14:46:00 ホスト名 postfix/smtpd[5695]: サーバーのドメイン名[サーバーのIPアドレス]: TLS cipher list "aNULL:-aNULL:ALL:!EXPORT:!LOW:+RC4:@STRENGTH" 7Nov 9 14:46:00 ホスト名 postfix/smtpd[5695]: SSL_accept:before/accept initialization 8Nov 9 14:46:30 ホスト名 postfix/smtpd[5695]: SSL_accept error from サーバーのドメイン名[サーバーのIPアドレス]: lost connection 9Nov 9 14:46:30 ホスト名 postfix/smtpd[5695]: lost connection after CONNECT from サーバーのドメイン名[サーバーのIPアドレス] 10Nov 9 14:46:30 ホスト名 postfix/smtpd[5695]: disconnect from サーバーのドメイン名[サーバーのIPアドレス]
EC
1/var/www/html/app/config/eccube/mail.yml 2 3mail: 4 transport: smtp 5 host: mail.サーバーのドメイン名 6 port: 465 7 username: info 8 password: STMPのパスワード 9 encryption: tls 10 auth_mode: plain 11 charset_iso_2022_jp: false 12 use_spool: true
postfix
1/etc/postfix/main.cf (文字数の都合でコメントを消しています) 2 3queue_directory = /var/spool/postfix 4command_directory = /usr/sbin 5daemon_directory = /usr/libexec/postfix 6data_directory = /var/lib/postfix 7mail_owner = postfix 8 9myhostname = mail.サーバーのドメイン名 10mydomain = サーバーのドメイン名 11myorigin = $mydomain 12 13inet_interfaces = all 14inet_protocols = all 15 16mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain 17local_recipient_maps = 18unknown_local_recipient_reject_code = 550 19alias_maps = hash:/etc/aliases 20alias_database = hash:/etc/aliases 21home_mailbox = Maildir/ 22luser_relay = unknown_user@localhost 23smtpd_banner = $myhostname ESMTP unknown 24 25debug_peer_level = 2 26debugger_command = 27 PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin 28 ddd $daemon_directory/$process_name $process_id & sleep 5 29 30sendmail_path = /usr/sbin/sendmail.postfix 31newaliases_path = /usr/bin/newaliases.postfix 32mailq_path = /usr/bin/mailq.postfix 33setgid_group = postdrop 34html_directory = no 35 36manpage_directory = /usr/share/man 37sample_directory = /usr/share/doc/postfix-2.10.1/samples 38readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES 39 40# add 41smtpd_sasl_auth_enable = yes 42smtpd_sasl_local_domain = $myhostname 43smtpd_recipient_restrictions = 44 permit_mynetworks 45 permit_sasl_authenticated 46 reject_unauth_destination 47message_size_limit = 10485760 48 49# add 50smtpd_use_tls = yes 51smtpd_tls_cert_file = /etc/pki/tls/certs/サーバーのドメイン名.2017.crt 52smtpd_tls_key_file = /etc/pki/tls/private/サーバーのドメイン名.2017.key 53smtpd_tls_CAfile = /etc/pki/tls/certs/dvcacert.cer 54smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scache 55smtpd_tls_security_level = may 56smtpd_tls_loglevel = 2
postfix
1/etc/postfix/master.cf 2 3# 4# Postfix master process configuration file. For details on the format 5# of the file, see the master(5) manual page (command: "man 5 master"). 6# 7# Do not forget to execute "postfix reload" after editing this file. 8# 9# ========================================================================== 10# service type private unpriv chroot wakeup maxproc command + args 11# (yes) (yes) (yes) (never) (100) 12# ========================================================================== 13smtp inet n - n - - smtpd 14#smtp inet n - n - 1 postscreen 15#smtpd pass - - n - - smtpd 16#dnsblog unix - - n - 0 dnsblog 17#tlsproxy unix - - n - 0 tlsproxy 18#submission inet n - n - - smtpd 19# -o syslog_name=postfix/submission 20# -o smtpd_tls_security_level=encrypt 21# -o smtpd_sasl_auth_enable=yes 22# -o smtpd_reject_unlisted_recipient=no 23# -o smtpd_client_restrictions=$mua_client_restrictions 24# -o smtpd_helo_restrictions=$mua_helo_restrictions 25# -o smtpd_sender_restrictions=$mua_sender_restrictions 26# -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject 27# -o milter_macro_daemon_name=ORIGINATING 28smtps inet n - n - - smtpd 29# -o syslog_name=postfix/smtps 30 -o smtpd_tls_wrappermode=yes 31 -o smtpd_sasl_auth_enable=yes 32# -o smtpd_reject_unlisted_recipient=no 33# -o smtpd_client_restrictions=$mua_client_restrictions 34# -o smtpd_helo_restrictions=$mua_helo_restrictions 35# -o smtpd_sender_restrictions=$mua_sender_restrictions 36# -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject 37# -o milter_macro_daemon_name=ORIGINATING 38#628 inet n - n - - qmqpd 39pickup unix n - n 60 1 pickup 40cleanup unix n - n - 0 cleanup 41qmgr unix n - n 300 1 qmgr 42#qmgr unix n - n 300 1 oqmgr 43tlsmgr unix - - n 1000? 1 tlsmgr 44rewrite unix - - n - - trivial-rewrite 45bounce unix - - n - 0 bounce 46defer unix - - n - 0 bounce 47trace unix - - n - 0 bounce 48verify unix - - n - 1 verify 49flush unix n - n 1000? 0 flush 50proxymap unix - - n - - proxymap 51proxywrite unix - - n - 1 proxymap 52smtp unix - - n - - smtp 53relay unix - - n - - smtp 54# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 55showq unix n - n - - showq 56error unix - - n - - error 57retry unix - - n - - error 58discard unix - - n - - discard 59local unix - n n - - local 60virtual unix - n n - - virtual 61lmtp unix - - n - - lmtp 62anvil unix - - n - 1 anvil 63scache unix - - n - 1 scache 64 65(以下コメントのため省略)
cyrus
1/etc/sasl2/smtpd.conf 2 3pwcheck_method: auxprop 4mech_list: plain login
Thunderbirdでは下記アカウント設定で問題なく送受信ができています。
Thunderbird
1受信サーバー: 2 IMAP 3 サーバーのホスト名: mail.サーバーのドメイン名 4 ポート番号: 993 5 SSL:SSL/TLS 6 認証方式: 通常のパスワード認証 7送信サーバー: 8 SMTP 9 サーバーのホスト名: mail.サーバーのドメイン名 10 ポート番号: 465 11 SSL: SSL/TLS 12 認証方式: 通常のパスワード認証 13ユーザ名 14 受信サーバー: info 15 送信サーバー: info 16初回送信時に送信サーバーのパスワードを聞かれるためmail.ymlの「password」の値を設定

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/11/10 10:01
2017/11/10 13:12 編集
2017/11/10 13:24 編集