AWSのEC2のメールサーバーを用いて、
メールの送受信をしようと考えております。
色々設定を変えたりして、
現在下記のエラーになっております。
to=<宛先>, relay=none, delay=35, delays=35/0/0/0, dsn=4.3.5, status=deferred (Host or domain name not found. Name service error for name=(hostnameを記載) type=A: Host found but no data record of requested type)
原因としては、hostnameの部分が間違っているのかと思っているのですが、
解決策がわからず困っています。
また、main.cfの設定は以下のようにしております。
alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 home_mailbox = Maildir/ html_directory = no inet_interfaces = all inet_protocols = ipv4 mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man message_size_limit = 10485760 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mydomain = eglunch.jp myhostname = mail.eglunch.jp mynetworks = 127.0.0.0/8,192.168.0.0/24,10.0.0.0/16 myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES relay_domains = $mydestination relayhost = [mail.eglunch.jp] sample_directory = /usr/share/doc/postfix-2.6.6/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtp_sasl_mechanism_filter = plain smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $myhostname unknown_local_recipient_reject_code = 550
何卒よろしくお願い致します。
追記
現在、エラーは次のようになっております。
status=bounced (mail for [mail.eglunch.jp] loops back to myself)
ネットで検索してみたところ、
main.cfのmydestinationの設定が足りないとのことでしたが、
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
で設定してみましたが、
エラーが変わりませんでした。
他のところの設定に不備があるのでしょうか?
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/07/20 06:13
2015/07/20 06:34
2015/07/20 08:30 編集
2015/07/20 09:34
2015/07/20 09:58
2015/07/21 00:40
2015/07/23 04:21