先日は御世話になりました。またご教授頂ければ幸いです。
こちらのサイトを見ながら少しづつ進めていますが、メールサーバーを構築しようとPOP before SMTP(PbS)編を進めていたのですが、Postfixの設定を終え再起動したところ以下のエラーが出て起動できません。
Postfixを起動中: newaliases: fatal: config variable inet_interfaces: host not found: =
postmap: fatal: config variable inet_interfaces: host not found: =
postmap: fatal: config variable inet_interfaces: host not found: =
postmap: fatal: config variable inet_interfaces: host not found: =
postmap: fatal: config variable inet_interfaces: host not found: =
postmap: fatal: config variable inet_interfaces: host not found: =
[ 失敗 ]
postconf -n は以下の通りです。
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_privs = nobody
default_rbl_reply = $rbl_code <$recipient>: Recipient address rejected: User unknown in local recipient table
disable_vrfy_command = yes
header_checks = regexp:/etc/postfix/header_checks smtpd_banner = $myhostname ESMTP unknown
home_mailbox = Maildir/
inet_interfaces = all mydestination = $myhostname, localhost.$mydomain $mydomainmail_owner = postfix
mailbox_size_limit = 30720000
maps_rbl_reject_code = 550
message_size_limit = 1024000
mydomain = xxxx.xxx
myhostname = xxxx.xxxx.xxx
myorigin = $mydomain
queue_directory = /var/spool/postfix
relay_domains = $mydestination
smtpd_client_restrictions = permit_mynetworks, reject_rbl_client sbl-xbl.spamhaus.org, permit
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks, regexp:/etc/postfix/recipient_checks.reg, reject_non_fqdn_recipient, reject_unauth_destination
smtpd_sender_restrictions = reject_unknown_sender_domain, reject_non_fqdn_sender
unknown_local_recipient_reject_code = 550 mynetworks = 127.0.0.0/8, 192.168.0.0/24, check_client_access hash:/etc/mail/dracd
どうもHOSTが見つからないみたいなのですが、どこを直せばいいのでしょうか?宜しくお願い致します。
メールログはどのようになってますか?
このコマンドの結果はどうなりますか?
# /usr/sbin/postfix check
> メールログはどのようになってますか?
Oct 7 13:56:36 EBS authdaemond: modules="authuserdb authpam authpgsql authldap authmysql authcustom authpipe", daemons=5
Oct 7 13:56:36 EBS authdaemond: Installing libauthuserdb
Oct 7 13:56:36 EBS authdaemond: Installation complete: authuserdb
Oct 7 13:56:36 EBS authdaemond: Installing libauthpam
Oct 7 13:56:36 EBS authdaemond: Installation complete: authpam
Oct 7 13:56:36 EBS authdaemond: Installing libauthpgsql
Oct 7 13:56:36 EBS authdaemond: libauthpgsql.so: cannot open shared object file: No such file or directory
Oct 7 13:56:36 EBS authdaemond: Installing libauthldap
Oct 7 13:56:36 EBS authdaemond: libauthldap.so: cannot open shared object file: No such file or directory
Oct 7 13:56:36 EBS authdaemond: Installing libauthmysql
Oct 7 13:56:36 EBS authdaemond: libauthmysql.so: cannot open shared object file: No such file or directory
Oct 7 13:56:36 EBS authdaemond: Installing libauthcustom
Oct 7 13:56:36 EBS authdaemond: Installation complete: authcustom
Oct 7 13:56:37 EBS authdaemond: Installing libauthpipe
Oct 7 13:56:37 EBS authdaemond: Installation complete: authpipe
Oct 7 13:56:45 EBS postfix/sendmail[2027]: fatal: config variable inet_interfaces: host not found: =
Oct 7 13:56:46 EBS postfix/postmap[2028]: fatal: config variable inet_interfaces: host not found: =
Oct 7 13:56:47 EBS postfix/postmap[2029]: fatal: config variable inet_interfaces: host not found: =
Oct 7 13:56:48 EBS postfix/postmap[2030]: fatal: config variable inet_interfaces: host not found: =
Oct 7 13:56:49 EBS postfix/postmap[2031]: fatal: config variable inet_interfaces: host not found: =
Oct 7 13:56:50 EBS postfix/postmap[2032]: fatal: config variable inet_interfaces: host not found: =
Oct 7 13:56:51 EBS postfix[2035]: fatal: config variable inet_interfaces: host not found: =
Oct 7 16:14:22 EBS postfix[4285]: fatal: config variable inet_interfaces: host not found: =
> このコマンドの結果はどうなりますか?
> # /usr/sbin/postfix check
postfix: fatal: config variable inet_interfaces: host not found: =
上記コマンドとメールログは上記の通りです。
宜しくお願いします。
> postfix: fatal: config variable inet_interfaces: host not found: =
host not found: =の後には何も表示されていませんでしたか?
/etc/postfix/main.cfのinet_interfacesの部分の記述に誤りがあるのではないでしょうか?
> > postfix: fatal: config variable inet_interfaces: host not found: =
>
> host not found: =の後には何も表示されていませんでしたか?
>
> /etc/postfix/main.cfのinet_interfacesの部分の記述に誤りがあるのではないでしょうか?
はい。何も表示されませんでした。
それで inet_interfaces = all の箇所を再度書き直して、 /usr/sbin/postfix checkをしてみたら以下の表示が表れました。
postfix: fatal: myorigin parameter setting must not contain multiple values: u2j pn.biz inet_interfaces = all mydestination = EBS.Server.u2jpn.biz, localhost.u2j pn.biz u2jpn.biz
> postfix: fatal: myorigin parameter setting must not contain multiple values: u2j pn.biz inet_interfaces = all mydestination = EBS.Server.u2jpn.biz, localhost.u2j pn.biz u2jpn.biz
mydomainの設定を、間違ってませんか?
u2j pn.biz ← u2jの後のスペース
> > postfix: fatal: myorigin parameter setting must not contain multiple values: u2j pn.biz inet_interfaces = all mydestination = EBS.Server.u2jpn.biz, localhost.u2j pn.biz u2jpn.biz
>
> mydomainの設定を、間違ってませんか?
> u2j pn.biz ← u2jの後のスペース
mydomain = u2jpn.bizになっています。スペース無しです。
念の為pcを再起動して再度/usr/sbin/postfix checkをしてみたら、又
postfix: fatal: config variable inet_interfaces: host not found: =
になってしまい表示されません。今度は inet_interfaces = allを新たに書き直しても駄目でした。宜しくお願いします。
もう一度
# postconf -n
の内容をそのまま記載してください。
> もう一度
> # postconf -n
> の内容をそのまま記載してください。
こちらになります。
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_privs = nobody
default_rbl_reply = $rbl_code <$recipient>: Recipient address rejected: User unknown in local recipient table
disable_vrfy_command = yes
header_checks = regexp:/etc/postfix/header_checks smtpd_banner = $myhostname ESMTP unknown
home_mailbox = Maildir/
inet_interfaces = all mydestination = $myhostname, localhost.$mydomain $mydomainmail_owner = postfix
mailbox_size_limit = 30720000
maps_rbl_reject_code = 550
message_size_limit = 1024000
mydomain = u2jpn.biz
myhostname = EBS.Server.u2jpn.biz
myorigin = $mydomain
queue_directory = /var/spool/postfix
relay_domains = $mydestination
smtpd_client_restrictions = permit_mynetworks, reject_rbl_client sbl-xbl.spamhaus.org, permit
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks, regexp:/etc/postfix/recipient_checks.reg, reject_non_fqdn_recipient, reject_unauth_destination
smtpd_sender_restrictions = reject_unknown_sender_domain, reject_non_fqdn_sender
unknown_local_recipient_reject_code = 550 mynetworks = 127.0.0.0/8, 192.168.0.0/24, check_client_access hash:/etc/mail/dracd
回りに聞ける人もおらず、つい管理人さんに甘えて頼ってしまいましたが、前出の方のようにやはりどこかで設定やら方法を間違えているのだと思います。これ以上御迷惑をかけるわけにもいかず、後学の為にも再度インストールからやり直してみたいと思います。
長々と付き合って頂いてありがとう御座いました。
>inet_interfaces = all mydestination = $myhostname, localhost.$mydomain $mydomainmail_owner = postfix
この部分は実際には
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain $mydomain
mail_owner = postfix
この様な感じに、別のコメントになっていますか?
> >inet_interfaces = all mydestination = $myhostname, localhost.$mydomain $mydomainmail_owner = postfix
>
> この部分は実際には
> inet_interfaces = all
>
> mydestination = $myhostname, localhost.$mydomain $mydomain
>
> mail_owner = postfix
>
> この様な感じに、別のコメントになっていますか?
はい、別行になっています。
main.cfを下記にUPしておきます。
http://cgi31.plala.or.jp/~u2/main.cf.txt
重々ありがとう御座いました。
myhostname = EBS.Server.u2jpn.biz
この部分の「EBS.」が問題ではないですかね。
Server.u2jpn.biz
または
u2jpn.biz
にしたらどうでしょうか?
mydestination = $myhostname, localhost.$mydomain $mydomainや
mynetworks = 127.0.0.0/8, 192.168.0.0/24, check_client_access hash:/etc/mail/dracd
の手前のスペースも無いほうがいいと思います。
> myhostname = EBS.Server.u2jpn.biz
>
> この部分の「EBS.」が問題ではないですかね。
>
> Server.u2jpn.biz
> または
> u2jpn.biz
> にしたらどうでしょうか?
>
> mydestination = $myhostname, localhost.$mydomain $mydomainや
> mynetworks = 127.0.0.0/8, 192.168.0.0/24, check_client_access hash:/etc/mail/dracd
> の手前のスペースも無いほうがいいと思います。
起動しました!
ご指摘を受けた3箇所を1づつ直してみた所、mydestination = $myhostname, localhost.$mydomain $mydomain の箇所の前にあった半角スペースを無くした所で再起動致しました。念の為3箇所共修正しておきました。
最初からmain.cfファイルをUPしていればYosiさんに余分な手間をかけずに済んだのでは・・・と少々悔やんでおります。これで原因も判り、わざわざ無駄な再インストールもせずに済みました。
本当に有難うございました。