TOPページ掲示板
作成日:2007年10月07日 作成:Yosi

Vine Linuxで自宅サーバーの掲示板で過去に質問された内容です。

No.2901 POP before SMTP(PbS)編について。


No.2901 投稿時間:2007年10月07日(Sun) 14:04 投稿者名:まる URL:
タイトル:POP before SMTP(PbS)編について。

先日は御世話になりました。またご教授頂ければ幸いです。

こちらのサイトを見ながら少しづつ進めていますが、メールサーバーを構築しようと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が見つからないみたいなのですが、どこを直せばいいのでしょうか?宜しくお願い致します。


No.2902 投稿時間:2007年10月07日(Sun) 15:35 投稿者名:Yosi@管理人 URL:
タイトル:Re: POP before SMTP(PbS)編について。

メールログはどのようになってますか?

このコマンドの結果はどうなりますか?
# /usr/sbin/postfix check


No.2903 投稿時間:2007年10月07日(Sun) 16:32 投稿者名:まる URL:
タイトル:Re^2: POP before SMTP(PbS)編について。

> メールログはどのようになってますか?

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: =

上記コマンドとメールログは上記の通りです。
宜しくお願いします。


No.2905 投稿時間:2007年10月07日(Sun) 17:39 投稿者名:Yosi@管理人 URL:
タイトル:Re^3: POP before SMTP(PbS)編について。

> postfix: fatal: config variable inet_interfaces: host not found: =

host not found: =の後には何も表示されていませんでしたか?

/etc/postfix/main.cfのinet_interfacesの部分の記述に誤りがあるのではないでしょうか?


No.2907 投稿時間:2007年10月07日(Sun) 18:22 投稿者名:まる URL:
タイトル:Re^4: POP before SMTP(PbS)編について。

> > 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


No.2908 投稿時間:2007年10月07日(Sun) 19:03 投稿者名:Yosi@管理人 URL:
タイトル:Re^5: POP before SMTP(PbS)編について。

> 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の後のスペース


No.2911 投稿時間:2007年10月07日(Sun) 20:01 投稿者名:まる URL:
タイトル:Re^6: POP before SMTP(PbS)編について。

> > 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を新たに書き直しても駄目でした。宜しくお願いします。


No.2918 投稿時間:2007年10月08日(Mon) 09:00 投稿者名:Yosi@管理人 URL:
タイトル:Re^7: POP before SMTP(PbS)編について。

もう一度
# postconf -n
の内容をそのまま記載してください。


No.2921 投稿時間:2007年10月08日(Mon) 18:56 投稿者名:まる URL:
タイトル:Re^8: POP before SMTP(PbS)編について。

> もう一度
> # 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


No.2922 投稿時間:2007年10月08日(Mon) 19:14 投稿者名:まる URL:
タイトル:Re^9: POP before SMTP(PbS)編について。

回りに聞ける人もおらず、つい管理人さんに甘えて頼ってしまいましたが、前出の方のようにやはりどこかで設定やら方法を間違えているのだと思います。これ以上御迷惑をかけるわけにもいかず、後学の為にも再度インストールからやり直してみたいと思います。

長々と付き合って頂いてありがとう御座いました。


No.2923 投稿時間:2007年10月08日(Mon) 22:18 投稿者名:Yosi@管理人 URL:
タイトル:Re^9: POP before SMTP(PbS)編について。

>inet_interfaces = all mydestination = $myhostname, localhost.$mydomain $mydomainmail_owner = postfix

この部分は実際には
inet_interfaces = all

mydestination = $myhostname, localhost.$mydomain $mydomain

mail_owner = postfix

この様な感じに、別のコメントになっていますか?


No.2928 投稿時間:2007年10月09日(Tue) 18:05 投稿者名:まる URL:
タイトル:Re^10: POP before SMTP(PbS)編について。

> >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

重々ありがとう御座いました。


No.2929 投稿時間:2007年10月09日(Tue) 18:25 投稿者名:Yosi@管理人 URL:
タイトル:Re^11: POP before SMTP(PbS)編について。

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
の手前のスペースも無いほうがいいと思います。


No.2938 投稿時間:2007年10月10日(Wed) 21:06 投稿者名:まる URL:
タイトル:御礼

> 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さんに余分な手間をかけずに済んだのでは・・・と少々悔やんでおります。これで原因も判り、わざわざ無駄な再インストールもせずに済みました。

本当に有難うございました。



TOPページ掲示板▲頁先頭