エラー対応の最新の日記
<< 前の日記へ 一覧を見る 次の日記へ >>

 

postfix メールサーバ 接続エラー

環境
CentOS + postfix

エラー状況】
テスト用のメールサーバ構築中にPCからメールサーバに接続できないとのこと
(/var/log/maillogにもログがでない)


対応
/etc/postfix/main.cf をチェックしたところ
”inet_interfaces = localhost” となっていた。
とりあえずテストなので
inet_interfaces = all
としておく。
ただし、今後のスパム対応注意。

他基本設定内容
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = mail.XXXXXX.jp
mydomain = XXXXXX.jp # メールドメイン
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
smtpd_banner = $myhostname ESMTP unknown
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $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.3.3/samples
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES

#### メール中継制限
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,check_policy_service unix:private/policy

コメント

コメントはまだありません

コメントできません (ログインするとコメントできます)