さくらVPSで、Postfixを使いメールサーバーを構築しています。
外部からの自ドメイン宛のメールを受信だけ出来るようにしたいのですが
受信できずに困っております。
自分のPCからVPSサーバーにSMTP接続しても応答が帰ってきません。
telnet {VPNサーバーIPアドレス} 25
Trying {VPNサーバーIPアドレス}...
telnet: connect to address {VPNサーバーIPアドレス}: Operation timed out
telnet: Unable to connect to remote host
上記smtp接続をしても、/var/log/maillog に何も表示されません。
Postfix設定ファイルは以下のとおりにしています。
/etc/postfix/main.cf
queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix mail_owner = postfix myhostname = {ホスト名} mydomain = {ドメイン名} myorigin = $mydomain inet_interfaces = all inet_protocols = ipv4 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, www.$mydomain unknown_local_recipient_reject_code = 550 mynetworks_style = host mynetworks = 127.0.0.0/8, {VPSサーバーIPアドレス} relay_domains = $mydestination alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases home_mailbox = Maildir/ smtpd_banner = $myhostname ESMTP debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop html_directory = no manpage_directory = /usr/share/man sample_directory = /usr/share/doc/postfix-2.6.6/samples readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES disable_vrfy_command = yes
環境
- CentOS release 6.7 (Final)
- Postfix 2.6.6
- さくらVPSは、本契約済
- iptables は停止
- SELinux は無効
何かお気付きの点などがあれば、
教えていただけますと幸いです。
よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。