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

このQ&Aのポイント
  • 自宅サーバにてメールサーバーを運用していたが、HDD故障によりFreeBSD 5.3に変更後、メール送受信ができない状況。
  • メールログにはaliases.dbファイルのエラーが表示されており、問題の解決策が見つからない。
  • FreeBSD 5.3以降の設定変更によりメールのトラブルが発生している可能性がある。
回答を見る
  • ベストアンサー

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以降設定が何か変わったのでしょうか? どなたかお力を御貸し願います。

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

  • ベストアンサー
  • anmochi
  • ベストアンサー率65% (1332/2045)
回答No.1

 私はFreeBSDは使用した最後のバージョンが2.2.8なのでFreeBSDうんぬんは分からないのだが、まず、aliases.dbを作成しよう。 portsでインストールしたそうなので、/usr/binや/usr/local/binなどの場所にnewaliasesというコマンドがあるのかも知れない。あればそれを実行すればきっとOK。 他にも、makemapコマンドがあれば # makemap hash /etc/aliases.db < /etc/aliases でaliases.dbを作れるんじゃないかなぁ。 作ってみてまだ別のエラーが出るようならその時また考えましょう。

South_Kishu
質問者

お礼

anmochiさん 早速の回答ありがとうございました。 newaliasesコマンドを実行したところ、即aliases.dbができました。 しかも、メールの送受信もできるようになりました。 コマンド一つで解決するなんて、まだまだ勉強が足りませんね(笑)。 もっと精進します。 これで2週間以上も悩み、何度か再インストールもしていたので凄く助かりました。 本当にありがとうございました。

関連するQ&A

  • 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設定について

    こんにちは、 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

  • /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の起動出来ない

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

  • telnet localhost 25が成功しない

    FreeBSD 11.1環境でメール環境を構築しています。 postfixは3.2.2,1です。 「FreeBSDサーバー構築マニュアル」を参考に設定し、設定内容確認のために telnet localhost 110は成功するのですが、telnet localhost 25を実行すると/var/log/maillogに以下のメッセージが表示され成功しません。 --- Aug 16 22:51:12 [サーバ名] postfix/smtpd[8930]: connect from localhost[127.0.0.1] Aug 16 22:51:12 [サーバ名] postfix/smtpd[8930]: warning: SASL: Connect to smtpd failed: No such file or directory Aug 16 22:51:12 [サーバ名] postfix/smtpd[8930]: fatal: no SASL authentication mechanisms Aug 16 22:51:13 [サーバ名] postfix/master[855]: warning: process /usr/local/libexec/postfix/smtpd pid 8930 exit status 1 Aug 16 22:51:13 [サーバ名] postfix/master[855]: warning: /usr/local/libexec/postfix/smtpd: bad command startup -- throttling --- 「postconf -n」の結果は以下の通りです。 alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases broken_sasl_auth_clients = yes command_directory = /usr/local/sbin compatibility_level = 2 daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 home_mailbox = Maildir/ html_directory = /usr/local/share/doc/postfix inet_interfaces = all inet_protocols = ipv4 mail_owner = postfix mailbox_command = /usr/local/bin/procmail mailq_path = /usr/local/bin/mailq manpage_directory = /usr/local/man meta_directory = /usr/local/libexec/postfix mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mydomain = example.com myhostname = example.com mynetworks_style = host myorigin = $mydomain newaliases_path = /usr/local/bin/newaliases queue_directory = /var/spool/postfix readme_directory = /usr/local/share/doc/postfix relay_domains = $mydestination sample_directory = /usr/local/etc/postfix sendmail_path = /usr/local/sbin/sendmail setgid_group = maildrop shlib_directory = /usr/local/lib/postfix smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $mydomain smtpd_sasl_security_options = noanonymous unknown_local_recipient_reject_code = 550 IP Filterで25番は開けています。 解決方法が分かる方よろしくお願いいたします。 その他足りない情報がありましたらご指摘ください。 よろしくお願いします。

  • 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

  • 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

  • PostFixでTLSへの接続が失敗します。

    初めて質問させて頂きます。 BSD初心者ですが宜しくお願い致します。 前日まで問題なくメール送信できておりましたメールサーバーですが 今朝から PstFix START TLS 接続が出来なくなりメールが送れなくて困っております。 START TLS を使わない状態ならば、メールの送信は出来ております。  受信側は上手く稼働しております。 原因を調べようとしてtail /var/log/maillog でエラーを確認しようとしました所 下記のような内容で素人としては、原因のつかみ所がなく、色々検索はして みたものの決め手が得られず困っております。   お解りになる方がおられましたら、ご教授願いたく存じます。 【環境】 自作PC ATOM D510MO OS:FreeBSD 7.3    postfix-2.8.0,1    cyrus-sasl-2.1.23_1    cyrus-sasl-saslauthd-2.1.23    dovecot-1.2.16 【tail /var/log/maillog 】 Feb 12 17:03:30 ns postfix/smtpd[6323]: initializing the server-side TLS engine Feb 12 17:03:30 ns postfix/smtpd[6323]: connect from unknown[192.168.2.51] Feb 12 17:03:30 ns postfix/smtpd[6323]: setting up TLS connection from unknown[192.168.2.51] Feb 12 17:03:30 ns postfix/smtpd[6323]: unknown[192.168.2.51]: TLS cipher list "ALL:+RC4:@STRENGTH" Feb 12 17:03:30 ns postfix/master[6160]: warning: process /usr/local/libexec/postfix/smtpd pid 6323 killed by signal 11 Feb 12 17:03:30 ns postfix/master[6160]: warning: /usr/local/libexec/postfix/smtpd: bad command startup -- throttling ここが原因だと思うのですが・・・・ : TLS cipher list "ALL:+RC4:@STRENGTH" 【メールクライアントの接続ログ】 I サーバーを検索中 - mail I 接続中 - 192.168.2.14 I 接続完了 R 220 ver   S EHLO abcdefg.com R 250-mail.abcdefg.com R 250-PIPELINING R 250-SIZE 10240000 R 250-ETRN R 250-STARTTLS R 250-AUTH DIGEST-MD5 CRAM-MD5 R 250-AUTH=DIGEST-MD5 CRAM-MD5 R 250-ENHANCEDSTATUSCODES R 250-8BITMIME R 250 DSN S STARTTLS R 220 2.0.0 Ready to start TLS I SSL初期化中(TLS1.0/SSL3.0/SSL2.0) E ホストからのデータ受信に失敗しました。エラーコード=10053 宜しくお願い申し上げます。

  • 自宅mailサーバからPHSにメールが送信されない

    最近、自宅でMailサーバを立ち上げました。WBEL3にPOSTFIXを導入し、SquirrelMailでweb上からmailを送受信していますが、ウィルコムのPHSにmailが届かない(多分携帯にも)ので、postfixのmain.cfに下記の設定を追加し、  transport_maps = hash:/etc/postfix/transport postmapで下記の記載のtransportをtransport.dbにした上でPOSTFIXを再起動してみました。  pdx.ne.jp :[smtp.pdx.ne.jp] .pdx.ne.jp :[smtp.pdx.ne.jp] それでも、mailが届きません。設定の仕方がおかしいのでしょうか?ご教示下さい。 main.cfの上記以外の設定は下記の通りです。 queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix mail_owner = postfix myhostname =****** mydomain = ****** myorigin = $mydomain inet_interfaces = all mydestination = $myorigin, $myhostname, mail.$myorigin unknown_local_recipient_reject_code = 550 mynetworks = ***.***.***.***/24, 127.0.0.0/8 alias_maps = hash:/etc/aliases 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 manpage_directory = /usr/share/man sample_directory = /usr/share/doc/postfix-2.0.16/samples readme_directory = /usr/share/doc/postfix-2.0.16/README_FILES smtpd_client_restrictions = permit_mynetworks, reject_unknown_client, permit mailbox_size_limit = 1000000000 message_size_limit = 20000000 smtpd_recipient_limit = 50 smtpd_recipient_restrictions = permit_mynetworks, check_client_access hash:/etc/postfix/pop-before-smtp, reject_unauth_destination transport_maps = hash:/etc/postfix/transport

  • 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 配下に指定してあります。 説明不足だとは思いますが、お分かりになる方がいらっしゃいましたらご教授願います。 よろしくお願い致します。