Postfixの起動出来ない

このQ&Aのポイント
  • RedHat AS2.1でメールサーバ構築中の問題
  • Postfix起動時のエラーに関する対処法
  • sendmailとsendmailのシンボリックリンク置換に関する警告
回答を見る
  • ベストアンサー

Postfixの起動出来ない

現在RedHat AS2.1でメールサーバの構築を行っており、 Postfixを使用していますが、Postfixの起動時に 下記のエラーとなり、起動出来ていない状態です。 どのように回避すればよいか教えて下さい。 postfix/postfix-script: warning: /usr/lib/sendmail and /usr/sbin/sendmail differ postfix/postfix-script: warning: Replace one by a symbolic link to the other postfix/postfix-script: starting the Postfix mail system postfix/master[9030]: warning: process /usr/libexec/postfix/smtp pid 9060 exit status 1 postfix/master[9030]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling

質問者が選んだベストアンサー

  • ベストアンサー
  • tk_uc
  • ベストアンサー率68% (33/48)
回答No.2

> RedHatの場合下記コマンドで切り替えが可能なようなのですが、AS2.1には無かったです > update-alternatives ウチはES3.0ですが、標準で入ってますね。 update-alternativesはdebianにしかないと思ってました。 こちらはpostfix自体をソースからインストールしましたので、状況が違うようですね。 # update-alternatives --config mta とかですかね。

その他の回答 (1)

  • tk_uc
  • ベストアンサー率68% (33/48)
回答No.1

postfix/postfix-script: warning: /usr/lib/sendmail and /usr/sbin/sendmail differ postfix/postfix-script: warning: Replace one by a symbolic link to the other とありますので、/usr/lib/sendmail か /usr/sbin/sendmailのどちらかがpostfixがインストールしたものではないのだろうと思います。 RHELインストール時に、元々Sendmailかなにかが入っていたのでは? であれば、そのSendmailをrpmで削除するとかしてから # ln -s /usr/lib/sendmail /usr/sbin/sendmail (またはその逆)とかで良いんじゃないでしょうか。 後半のエラーについてはわかりません。 上述の問題を解決したら解消されるのかもしれません。

question0523
質問者

補足

どうやらMTAの切り替えが必要みたいなのですが、 RedHatの場合下記コマンドで切り替えが可能なようなのですが、AS2.1には無かったです update-alternatives なので、もう少し調べてみます。

関連するQ&A

  • postfix設定について

    こんにちは、 postfixadminに関する設定を行っているのですが、 アドレス登録時に、下記のようなエラーが発生してしまい、 データベース上には登録されるのですが、 メールボックスが作成されませんでした。 Postfix 2.3 Postfix Admin 2 MySQL 4.1 cyrus-sasl 2.1.19 Sep 8 18:00:20 host postfix/postfix-script: starting the Postfix mail system Sep 8 18:00:20 host postfix/master[5209]: daemon started -- version 2.3.12, configuration /etc/postfix Sep 8 18:01:02 host postfix/smtpd[5284]: warning: unsupported SASL server implementation: cyrus Sep 8 18:01:02 host postfix/smtpd[5284]: fatal: SASL per-process initialization failed Sep 8 18:01:03 host postfix/master[5209]: warning: process /usr/libexec/postfix/smtpd pid 5284 exit status 1 Sep 8 18:01:03 host postfix/master[5209]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Sep 8 18:02:03 host postfix/smtpd[5286]: warning: unsupported SASL server implementation: cyrus Sep 8 18:02:03 host postfix/smtpd[5286]: fatal: SASL per-process initialization failed Sep 8 18:02:04 host postfix/master[5209]: warning: process /usr/libexec/postfix/smtpd pid 5286 exit status 1 Sep 8 18:02:04 host postfix/master[5209]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

  • POSTFIXのエラーについて

    CentOS6.8でメールサーバーをたてています。 Postfixを使ってサーバーを構築したのですが、ログにエラーが貯まっています。 >postfix/smtpd[23899]: fatal: open dictionary: expecting "type:name" form instead of ":" >postfix/master[22762]: warning: process /usr/libexec/postfix/smtpd pid 23899 exit status 1 >postfix/master[22762]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling このようなエラー?が一分おきに出ています。 これはどういう意味なのでしょうか?

  • Postfixで送信ができない

    /var/log/syslog 10:33 solaris postfix/smtp[18719]: [ID 947731 mail.crit] fatal: open database /etc/postfix/saslpasswd.db: No such file or directory 10:34 solaris postfix/master[18715]: [ID 947731 mail.warning] warning: process /usr/libexec/postfix/smtp pid 18719 exit status 1 10:34 solaris postfix/master[18715]: [ID 947731 mail.warning] warning: /usr/libexec/postfix/smtp: bad command startup -- throttling となっているのですがsaslpasswdはあります。saslpasswd.dbにするために何かコマンドを打つ必要があるのでしょうか? また、後に出ているsmtpのエラーがよくわかりません、参考になるサイトなどご紹介いただけると幸いです /etc/postfix/main.cf alias_maps = dbm:/etc/mail/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 inet_interfaces = all mail_owner = postfix mail_spool_directory = /var/spool/mail mailq_path = /usr/bin/mailq manpage_directory = /usr/local/man mydestination = $myhostname, localhost myhostname = solaris mynetworks = 192.168.1.2, 127.0.0.0/8 myorigin = $myhostname newaliases_path = /usr/bin/newaliases queue_directory = /var/spool/postfix relayhost = [192.168.1.3]:587 sample_directory = /etc/postfix sendmail_path = /usr/lib/sendmail setgid_group = postdrop smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/saslpasswd smtp_sasl_security_options = noanonymous smtpd_banner = $myhostname ESMTP $mail_name unknown_local_recipient_reject_code = 550 /etc/postfix/saslpasswd [192.168.1.3]:587 username:password

  • /var/log/maillogに大量にログが発生しています。

    サーバはlinux(fedora core 6),メールサーバはpostfixです。サーバはホスティングしているので外部からのリモート操作のみです。 /var/log/maillogを確認したところ以下のようなログが大量発生しているのですが何を意味しているのかわかりません。お分かりになる方がいましたらお教えください。よろしくお願いします。 Mar 16 03:30:09 localhost postfix/smtpd[13864]: fatal: config variable inet_interfaces: host not found: all Mar 16 03:30:10 localhost postfix/master[27103]: warning: process /usr/libexec/postfix/smtpd pid 13864 exit status 1 Mar 16 03:30:10 localhost postfix/master[27103]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Mar 16 03:30:14 localhost postfix/pickup[13865]: fatal: config variable inet_interfaces: host not found: all Mar 16 03:30:15 localhost postfix/master[27103]: warning: process /usr/libexec/postfix/pickup pid 13865 exit status 1 Mar 16 03:30:15 localhost postfix/master[27103]:warning: /usr/libexec/postfix/pickup: bad command startup -- throttling この組み合わせが一分おきに9時間分ほど溜まっています。

  • Postfixの自動起動について

    こんにちは。 現在以下の環境でPostfixをインストールしたのですが、Postfixの自動起動が判りません。 こちらの過去の質問やインターネットで色々検索してみましたが、納得の行く回答が得られませんでした。 FreeBSDが立ち上がる時、一緒にPostfixも立ち上がるように設定する方法を教えて下さい。 宜しくお願い致します。 ・OS及びソフト FreeBSD4.8-STABLE Postfix-2.0.10 ・Postfixをインストールした場所 temp_directory:[/usr/local/postfix-2.0.10] config_directory:[/etc/postfix] daemon_directory:[/usr/local/libexec/postfix] command_directory:[/usr/local/sbin] queve_directory:[/var/spool/postfix] sendmail_path:[/usr/local/src/postfix-2.0.10/sendmail] newaliases_path:[/usr/bin/newaliases] mailq_path:[/usr/bin/mailq] ※ sendmailは停止させています。 (/etc/rc.confでsendmail_enable="NONE"しています。) 宜しくお願い致します。

  • Postfixのinstall_rootについて

    smtpサーバを構築しようとしています。 MTAはPostfixを採用するものとして、 インストールしたファイルの管理を一元化したいと考えてます。 任意のマウント領域内(/bob)の任意のフォルダ(/bob/mail)にインストールを行おうと考えました。 インストール環境は、 OS:linux ディストリ:Fedora8 です。 ソースからコンパイルします。 postfix-2.5.5.tar.gzを解凍し、root権限で、 # make # make install を行いました。 インストール時には、インストールパスを指定しようと考え、それぞれ以下の設定でインストールを行いました。 install_root:[/] /bob tempdir:[/root/postfix-2.5.5] config_directory:[/etc/postfix] /mail/etc/postfix command_directory:[/usr/sbin] /mail/usr/sbin daemon_directory:[/usr/libexec/postfix] /mail/usr/libexec/postfix data_directory:[/var/lib/postfix] /mail/var/lib/postfix html_directory:[no] mail_owner:[postfix] mailq_path:[/usr/bin/mailq] /mail/usr/bin/mailq manpage_directory:[/usr/local/man] /mail/usr/local/man newaliases_path:[/usr/bin/newaliases] /mail/usr/bin/newaliases queue_directory:[/var/spool/postfix] /mail/var/spool/postfix readme_directory:[no] sendmail_path:[/usr/sbin/sendmail] /mail/usr/sbin/sendmail setgid_group:[postdrop] ・・・インストールが完了したので、設定を確認しようとしました。 # /bob/mail/usr/sbin/postconf -n を行いましたが、エラーが出ました。 ■エラー文章: /bob/mail/usr/sbin/postconf: fatal: open /etc/postfix/main.cf: No such file or directory というメッセージが出ました。 読んだ通り、main.cfがありませんよ、見つかりませんよ、ということだと思いますが、 main.cfは存在しており、そのパスは /bob/mail/etc/postfix/main.cf なので、/etc/postfix/main.cfにはないです。 ですので、 # /bob/mail/usr/sbin/postconf -n の実行時に読み込みを /bob/mail/etc/postfix/main.cf に変更してしまいたいのですが、可能でしょうか。 過去の記事には同じような内容がなかったことと、 ネットや書籍を検索しましたが、install_rootはデフォルト値でのインストールの場合の設定しか発見できませんでしたので、今回投稿させていただきました。 設定を変更できる箇所などございましたら、ご教授お願いできませんでしょうか。 尚、語意不明な点などございましたら、ご指摘くださいますよう、よろしくお願いします。

  • FreeBSD 5.3のメールトラブルシューティング

    初めまして。よろしくお願い致します。 自宅サーバにてメールサーバーを運用していたのですが、HDDが壊れてしまった為、HDDを交換し、従来はFreeBSD 4.8でしたが、今回はFreeBSD 5.3をインストールしました。 その後、Portsにて、postfix2.1とqpopperをインストールしたのですが、メールでのやり取りがうまくいかないのです。 現象としては、 ・外部(internetなど)にwebminなどで送信はできるが、受信できない。 ・qpoperにてクライアントPCからメールの送受信が一切できない。 メールのログ(maillog)を見たところ、以下の表示が出ていました。 Oct 22 00:56:57 *** postfix/master[42973]: warning: /usr/local/libexec/postfi x/local: bad command startup -- throttling Oct 22 00:57:04 *** postfix/smtpd[55445]: fatal: open database /etc/aliases.d b: No such file or directory Oct 22 00:57:05 *** postfix/master[42973]: warning: process /usr/local/libexe c/postfix/smtpd pid 55445 exit status 1 Oct 22 00:57:05 *** postfix/master[42973]: warning: /usr/local/libexec/postfi x/smtpd: bad command startup -- throttling aliases.dbがないという記述は分かるのですが、それいがいの意味合いが今一つわからず、困っております。 aliases.dbファイルも探してみたものの、見つかりません。 aliasesというファイルがあったのですが、これの事でしょうか? 他に確認が必要な点がありましたら、御指摘をお願い致します。 以前の4.8はここまで手間取らなかった為、5.0以降設定が何か変わったのでしょうか? どなたかお力を御貸し願います。

  • PostfixとDovecotでメールサーバ構築

    先日より、PostfixとDovecotを使用してメール環境整えようと作業を進めています。 そこで、認証にはSMTP-Auth設定 (sasldb2認証)を使用しているのですが、ユーザとパスワード設定したのち、 sasldblistusers2 を実行しましたが、しっかりとユーザを作成できているようでした。 /etc/sasldb2の所有グループもpostfixにしており、パーミッションも740に変更しました。 telnetで接続確認(telnet localhost 110)をし、上記で作成したユーザ名とパスワードを入れても認証に失敗します。 [root@centos ~]# telnet localhost 110 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK Dovecot ready. user panasonic +OK pass ********* -ERR Authentication failed. Connection closed by foreign host. ログメッセージ Apr 3 11:42:53 centos52 dovecot: pop3-login: Aborted login: user=<cisco@centos.alhambr.mydns.jp>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured Apr 3 11:43:11 centos52 postfix/smtpd[1930]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms Apr 3 11:43:11 centos52 postfix/smtpd[1930]: fatal: no SASL authentication mechanisms Apr 3 11:43:12 centos52 postfix/master[1887]: warning: process /usr/libexec/postfix/smtpd pid 1930 exit status 1 Apr 3 11:43:12 centos52 postfix/master[1887]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Apr 3 11:51:24 centos52 postfix/smtpd[1971]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms 何が原因なのでしょうか。アドバイスお願い致します。 -環境- postfix-2.3 dovecot-1.0 Centos5.4

  • sendmailとPostfixについて

    現在RedHat7.3でsendmail8.2を使用しています。 さて、いろいろ調べたところMTAはPostfixが使いやすいということをわかり導入しようかなとおもっておりますが、ここで疑問が出てきました。 Postfixをインストールした場合既存のsendmailはどうなるのでしょうか? というのも、現在PerlでCGIをいくつかweb上にアップしているのですがプログラム内でのsendmailのパス /usr/sbin/sendmail これをすべて変更する必要があるのでしょうか? どうかご教授おねがいします。

  • Postfixでmailコマンドを使用したい

    お世話になります。 Cent OSにて、Postfixをソースからインストールしコマンドから送信テストを行おうとしましたが、 /usr/sbin/sendmail No such file or directoryというエラーがでて送信できません。 Postfixのsendmailは/usr/local/postfix/sbin/sendmail なのですが、どうやら既存のsendmailを見にいっているようです。 ちなみに、sendmail、newaliases、mailqはすべて末尾に「.OFF」を付けファイル名を変更してバックアップしてあります。 下記にpostconf -n で表示したmain.cfの構成を掲載させていただきます ============================================ broken_sasl_auth_clients = yes command_directory = /usr/local/postfix/sbin config_directory = /etc/postfix daemon_directory = /usr/local/postfix/libexec data_directory = /usr/local/postfix/var/lib debug_peer_level = 2 home_mailbox = Maildir/ html_directory = no inet_interfaces = all mail_owner = postfix mailq_path = /usr/local/postfix/bin/mailq manpage_directory = /usr/local/postfix/man mydomain = 自分のドメイン myhostname = 自分のホスト myorigin = $mydomain newaliases_path = /usr/local/postfix/bin/newaliases queue_directory = /usr/local/postfix/var/spool readme_directory = no sample_directory = /etc/postfix sendmail_path = /usr/local/postfix/sbin/sendmail setgid_group = postdrop smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $myhostname smtpd_sasl_security_options = noanonymous unknown_local_recipient_reject_code = 550 ============================================ make installでは「config_directory」以外のパスはすべて、/usr/local/postfix 配下に指定してあります。 説明不足だとは思いますが、お分かりになる方がいらっしゃいましたらご教授願います。 よろしくお願い致します。