• ベストアンサー

Fedora Core5でPostfixでメール送受信不可

自宅で初めてサーバを立てメールサーバの立ち上げで止まっています。 ソーテック社出版の「Fedora Core5で作る最強の自宅サーバ」を読みながら進めていっているのですが、メールの送受信が出来ていません。 内部→内部 外部→内部 内部→外部全て不可です。 インストールしたものは、postfix,cyrus-sasl,system-switch-mail-gnome,dovecot,amavisd-new,clamav,clamav-servsr,clamav-update,spamassassin,parl,parl-Archive-Tar,parl-IO-Stringで、設定は本の通りにし、プロバイダで@niftyを使用しているためOP25Bに引っかかりネットで調べ/etc/postfix/main.cfにrelayhost=[smtp.nifty.com]を追記しました。 動的IPでdyndnsでドメインを取得しています。 超初心者で大変申し訳ありませんが、ご指摘、ご指南よろしくお願いいたします。

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

  • ベストアンサー
回答No.1

まずはエラーログを見るところからですね。 何がエラーを出しているのか、どの処理中にエラーになるのか突き止めないと何も始まりません。 /var/log/maillog あたりにありませんか?

ksk726
質問者

お礼

http://okwave.jp/qa2452533.htmlにて改めて質問をさせていただきました。このたびはどうもありがとうございました。

ksk726
質問者

補足

ログですが、どこを切り出してよいのか判りませんでしたので、1分間に起きていたログを掲載します。情報不足かもしれませんがよろしくお願いいたします。 Oct 4 20:11:55 *NAME* postfix/qmgr[1951]: 685BADE8066: removed Oct 4 20:12:15 *NAME* master[3769]: fatal: master_spawn: exec /usr/libexec/postfix/2: No such file or directory Oct 4 20:12:16 *NAME* postfix/master[1939]: warning: process /usr/libexec/postfix/2 pid 3769 exit status 1 Oct 4 20:12:16 *NAME* postfix/master[1939]: warning: /usr/libexec/postfix/2: bad command startup -- throttling Oct 4 20:12:37 *NAME* postfix/smtpd[3741]: connect from defg501.nifty.com[202.248.238.128] Oct 4 20:12:37 *NAME* postfix/smtpd[3741]: warning: unknown smtpd restriction: "premit_auth_destination" Oct 4 20:12:37 *NAME* postfix/smtpd[3741]: NOQUEUE: reject: RCPT from defg501.nifty.com[202.248.238.128]: 451 Server configuration error; from=<> to=<*******@*NAME*.dyndns.org> proto=ESMTP helo=<defg501.nifty.com> Oct 4 20:12:38 *NAME* postfix/cleanup[3761]: 35A50DE8066: message-id=<20061004111238.35A50DE8066@*NAME*.dyndns.org> Oct 4 20:12:38 *NAME* postfix/qmgr[1951]: 35A50DE8066: from=<double-bounce@*NAME*.dyndns.org>, size=920, nrcpt=1 (queue active) Oct 4 20:12:38 *NAME* postfix/smtpd[3741]: disconnect from defg501.nifty.com[202.248.238.128] Oct 4 20:12:38 *NAME* postfix/local[3762]: 35A50DE8066: to=<root@*NAME*.dyndns.org>, orig_to=<postmaster>, relay=local, delay=0, status=sent (delivered to mailbox) Oct 4 20:12:38 *NAME* postfix/qmgr[1951]: 35A50DE8066: removed Oct 4 20:12:54 *NAME* postfix/smtpd[3741]: connect from defg500.nifty.com[202.248.238.127] Oct 4 20:12:54 *NAME* postfix/smtpd[3741]: warning: unknown smtpd restriction: "premit_auth_destination"

その他の回答 (1)

  • Lean
  • ベストアンサー率72% (435/603)
回答No.2

>設定は本の通りにし これではこの本を持っている人だけがどのような設定をするのか書かれている内容がわかり、実際貴方がどのように設定したのかは誰にも分かりません。 ただ、出されたログを見ると「unknown smtpd restriction: "premit_auth_destination"」とか「451 Server configuration error」のメッセージが出力されているようでは、設定が出来ているようには思えません。 少なくとも、どういう設定をしたか書かれないとどこが悪いのか誰にも分からないと思います。 あと、インターネットに向けてサーバを立てるおつもりなら一度以下のページをお読みになってください。 http://tmaeda.s45.xrea.com/20041101.html

ksk726
質問者

お礼

http://okwave.jp/qa2452533.htmlに改めて質問をし、設定内容を書き込みました。文字数制限から・amavisd amavisd.conf・clamd_d amavisd.conf・freshclam・sasl2 smtpd.confの設定は書ききれませんでしたが、お時間ございましたら一読ください。どうもありがとうございました。

ksk726
質問者

補足

確かに仰るとおりだと思います。 設定云々は再度やり直してみたいと思います。postfixを再起動したときのログが取得できましたので貼っておきたいと思います。 Oct 4 21:18:14 *HOSTNAME* postfix/smtpd[2349]: connect from defg500.nifty.com[202.248.238.127] Oct 4 21:18:14 *HOSTNAME* postfix/smtpd[2349]: warning: unknown smtpd restriction: "premit_auth_destination" Oct 4 21:18:14 *HOSTNAME* postfix/smtpd[2349]: NOQUEUE: reject: RCPT from defg500.nifty.com[202.248.238.127]: 451 Server configuration error; from=<*USERNAME*@*HOSTNAME*.dyndns.org> to=<*USERNAME*@*HOSTNAME*.dyndns.org> proto=ESMTP helo=<defg500.nifty.com> Oct 4 21:18:29 *HOSTNAME* master[2531]: fatal: master_spawn: exec /usr/libexec/postfix/2: No such file or directory Oct 4 21:18:30 *HOSTNAME* postfix/master[1945]: warning: process /usr/libexec/postfix/2 pid 2531 exit status 1 Oct 4 21:18:30 *HOSTNAME* postfix/master[1945]: warning: /usr/libexec/postfix/2: bad command startup -- throttling Oct 4 21:18:33 *HOSTNAME* postfix/postfix-script: stopping the Postfix mail system Oct 4 21:18:33 *HOSTNAME* postfix/master[1945]: terminating on signal 15 Oct 4 21:18:34 *HOSTNAME* postfix/postfix-script: starting the Postfix mail system Oct 4 21:18:34 *HOSTNAME* postfix/master[2599]: daemon started -- version 2.2.8, configuration /etc/postfix Oct 4 21:18:34 *HOSTNAME* postfix/qmgr[2611]: 0AB9FDE8060: from=<*USERNAME*@*HOSTNAME*.dyndns.org>, size=598, nrcpt=1 (queue active) Oct 4 21:18:34 *HOSTNAME* postfix/qmgr[2611]: 36C16DE8061: from=<*USERNAME*@*HOSTNAME*.dyndns.org>, size=545, nrcpt=1 (queue active) Oct 4 21:18:34 *HOSTNAME* postfix/qmgr[2611]: 05FE7DE8063: from=<root@*HOSTNAME*.dyndns.org>, size=837, nrcpt=4 (queue active) Oct 4 21:18:34 *HOSTNAME* postfix/qmgr[2611]: E6AF7DE806F: from=<*USERNAME*@*HOSTNAME*.dyndns.org>, size=2144, nrcpt=1 (queue active) Oct 4 21:18:34 *HOSTNAME* postfix/qmgr[2611]: 298A6DE8064: from=<*USERNAME*@*HOSTNAME*.dyndns.org>, size=2269, nrcpt=1 (queue active) Oct 4 21:18:34 *HOSTNAME* master[2612]: fatal: master_spawn: exec /usr/libexec/postfix/2: No such file or directory Oct 4 21:18:34 *HOSTNAME* postfix/qmgr[2611]: D106FDE805F: from=<*USERNAME*@*HOSTNAME*.dyndns.org>, size=528, nrcpt=1 (queue active) Oct 4 21:18:34 *HOSTNAME* postfix/qmgr[2611]: 3EC9ADE8076: from=<root@*HOSTNAME*.dyndns.org>, size=40789, nrcpt=1 (queue active) Oct 4 21:18:34 *HOSTNAME* postfix/qmgr[2611]: 38E3EDE8065: from=<*USERNAME*@*HOSTNAME*.dyndns.org>, size=913, nrcpt=1 (queue active) Oct 4 21:18:34 *HOSTNAME* postfix/qmgr[2611]: 9094EDE8068: from=<*USERNAME*@*HOSTNAME*.dyndns.org>, size=528, nrcpt=1 (queue active) Oct 4 21:18:34 *HOSTNAME* postfix/qmgr[2611]: 713F9DE806C: from=<*USERNAME*@*HOSTNAME*.dyndns.org>, size=528, nrcpt=1 (queue active) Oct 4 21:18:34 *HOSTNAME* postfix/qmgr[2611]: 2B0F0DE8067: from=<*USERNAME*@*HOSTNAME*.dyndns.org>, size=501, nrcpt=1 (queue active) Oct 4 21:18:34 *HOSTNAME* postfix/qmgr[2611]: 92DC0DE806D: from=<*USERNAME*@*HOSTNAME*.dyndns.org>, size=545, nrcpt=1 (queue active) Oct 4 21:18:34 *HOSTNAME* postfix/qmgr[2611]: E0EF0DE805D: from=<*USERNAME*@*HOSTNAME*.dyndns.org>, size=1005, nrcpt=1 (queue active) Oct 4 21:18:34 *HOSTNAME* postfix/qmgr[2611]: D5E11DE8059: from=<*USERNAME*@*HOSTNAME*.dyndns.org>, size=528, nrcpt=1 (queue active) Oct 4 21:18:34 *HOSTNAME* postfix/qmgr[2611]: F0BCBDE805C: from=<*USERNAME*@*HOSTNAME*.dyndns.org>, size=548, nrcpt=1 (queue active) アドバイスありがとうございました。

関連するQ&A

  • postfixでsmtp認証が有効になりません。

    ■環境 CentOS 5.6 postfix-2.3.3-2.2.el5_6 cyrus-sasl-lib-2.1.22-5.el5_4.3 cyrus-sasl-2.1.22-5.el5_4.3 cyrus-sasl-plain-2.1.22-5.el5_4.3 cyrus-sasl-plain-2.1.22-5.el5_4.3 cyrus-sasl-lib-2.1.22-5.el5_4.3 dovecot-1.0.7-7.el5 ■状況 postfixは、yumでインストールしています。 postfixのmain.cfには以下の内容を記述しています。 main.cf =========================================== smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination #broken_sasl_auth_clients = yes message_size_limit = 10485760 virtual_alias_maps = hash:/etc/postfix/virtual ============================================ 上記状態にて、smtp認証を使用しなくてもメールクライアントからメールを送付できてしまいます。 ■質問内容 1.なぜpostfixにてsmtp認証が有効にならないのでしょうか?

  • Postfix 内部から内部の認証

    現在、Dovecot+Postfix+Cyrus-sasl+MySQLを利用して社内メールサーバーを構築しています。 送信テストをしていたところ、SMTP Auth認証のところでつまづいています。 内部→外部 外部→内部 は問題なく認証を通るのですが、どうしても 内部→内部 が認証をすり抜けてしまいます。 テスト方法としてはLAN内のPCからOutlookを使用して「パスワードなし」「認証なし」の状態でLAN内の別のユーザーに対してメールを送信できてしまいます。 つまり、内部の成りすましが可能な状態です。 これを制御するためには、postfix側の設定だと思い、色々調べてはいるのですが、中々うまくいきません。 自分としては下記の設定でいけそうだと思ったのですが、ダメでした。 #mynetworks = 127.0.0.0/8, 192.168.10.0/24 mynetworks = 127.0.0.0/8 smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes #smtpd_recipient_restrictions= permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination smtpd_recipient_restrictions = permit_sasl_authenticated,reject_unauth_destination ご指摘頂けたらと思います。

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

  • EC2のpostfix+dovecotのメール受信

    初めて投稿させて頂きます。宜しくお願い致します。 現在アマゾンのEC2において、「postfix+dovecot」を使用しメール環境を設置しております。メールの送受信がほぼできたのですが、メールクライアントからメールの送信のみが出来ない状態です。まる2日かかっても修正できず、あせっている状態です。下記が症状や各種設定詳細です。 ▼症状 1.outlook2003エラーメッセージ タスク 'test@xxxxx.la - 送信中'でエラー(0x800CCC0f)が報告されました: 'サーバーへの接続が中断されました。 この問題が引き続き発生する場合は、サーバー管理者かインターネットサービスプロパイダ(ISP)に連絡して下さい。 ※Winで2003、マックで2007の両方で検証したが同様のエラー 2.Maillog エラーは表示されず 3.その他  ・メールコマンドによるメール送信は内外にOK  ・phpのPearによるメール送信は内外にOK  ・各種メーラーによる送信ができず ■Outlook設定内容 ・電子メールアドレス:test@xxxxx.la ・受信メールサーバー(I):xxxxx.la ・受信メールサーバー(SMTP):xxxxx.la ・アカウント名:test ・送信サーバー  ・「送信サーバー(SMTP)は認証が必要」をチェック  ・受信メールサーバーと同じ設定を使用する  ※認証不要でもテストしたが同様のエラー ・詳細設定 ・送信サーバー(SMTP):「25」と「587」にてテスト ・使用する暗号化接続の種類:なし ■AWS各種設定  ・Instance :Basic 32-bit Amazon Linux AMI 2011.02.1 Beta Small  ・OS :Amzon Linux  ・開放ポート :22/25/80/110/143/587  ・saslauthd :稼働中 ■postfix設定(# postconf -n 実行時結果) alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 home_mailbox = Maildir/ html_directory = no inet_interfaces = all inet_protocols = all mail_owner = postfix mailbox_command = /usr/bin/procmail mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man message_size_limit = 10485760 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mydomain = xxxxx.la myhostname = xxxxx.la mynetworks = 168.100.189.0/28, 127.0.0.0/8,127.0.0.0/8, 192.168.0.0/24 myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES sample_directory = /usr/share/doc/postfix-2.6.6/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_banner = $myhostname ESMTP unknown 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 ■/etc/postfix/master.cfの設定 ・・・・・・・・・・・・・・・・・・・・・・・・・・・・ smtp inet n - n - - smtpd #submission inet n - n - - smtpd # -o smtpd_tls_security_level=encrypt # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATING #smtps inet n - n - - smtpd # -o smtpd_tls_wrappermode=yes # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATIN ・・・・・・・・・・・・・・・・・・・・・・・・・・・・ ■dovecot設定 ・・・・・・・・・・・・・・・・・ # Protocols we want to be serving. #protocols = imap pop3 lmtp #protocols = imap imaps pop3 pop3s ・・・・・・・・・・・・・・・・・・・ disable_plaintext_auth = no ■DNS設定 ・使用サービス:お名前ドットコム ・設定内容 ホスト名 TYPE VALUE xxxxx.la NS 01.dnsv.jp xxxxx.la NS 02.dnsv.jp xxxxx.la MX xxxxx.la /10 xxxxx.la A 175.41.239.125 www.xxxxx.la A 175.41.239.125 ■その他実行コマンド結果 [root@mail ~]# /etc/rc.d/init.d/saslauthd restart Stopping saslauthd: [ OK ] Starting saslauthd: [ OK ] [root@mail ~]# rpm -qa cyrus-sasl* cyrus-sasl-2.1.23-8.6.amzn1.i686 cyrus-sasl-sql-2.1.23-8.6.amzn1.i686 cyrus-sasl-devel-2.1.23-8.6.amzn1.i686 cyrus-sasl-plain-2.1.23-8.6.amzn1.i686 cyrus-sasl-ntlm-2.1.23-8.6.amzn1.i686 cyrus-sasl-md5-2.1.23-8.6.amzn1.i686 cyrus-sasl-gssapi-2.1.23-8.6.amzn1.i686 cyrus-sasl-ldap-2.1.23-8.6.amzn1.i686 cyrus-sasl-lib-2.1.23-8.6.amzn1.i686 以上、長々となってしまいましたが、何かヒントを頂ければ大変有り難く存じます。 何卒宜しくお願い致します。

  • postfixでプララをリレーさせる方法

    プロバイダにプララをつかっています。 PHPからのプログラムを使い、メール送信を試みているのですが、 どうもプララの認証部分がうまくいっていないようでエラーとなります。 (PHPの質問ではなく、postfixよりの質問と考えこちらにしています) メール送信すると、下記のエラーが出力されます----------------------------------- postfix/qmgr[5547]: 4F0CC1C011: from=<webmaster@my-company.com>, size=652, nrcpt=1 (queue active) postfix/smtp[5564]: connect to peach.mail.plala.or.jp[58.93.255.16]: Connection timed out (port 25) postfix/smtp[5564]: 4F0CC1C011: to=<hogehoge@docomo.ne.jp>, relay=none, delay=30, delays=0.23/0/30/0, dsn=4.4.1, status=deferred (connect to peach.mail.plala.or.jp[58.93.255.16]: Connection timed out) 設定は以下の通りにしてあります。 /etc/postfix/main.cf----------------------------------- smtp_sasl_type = cyrus smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = relayhost = [peach.mail.plala.or.jp] mynetworks = 192.168.11.0/24, 127.0.0.0/8 /etc/postfix/sasl_password----------------------------------- [peach.mail.plala.or.jp]:25 ユーザID@plala.or.jp:パスワード ※plala.or.jp = インターネット接続用サーバ ※peach.mail.plala.or.jp = SMTPサーバ 原因などわかれば教えていただきたいです。 よろしくお願いします。

  • ポート25が開けず、postfixが使えない

    Fedora core3でPostfix + SpamAssassin + Dovecotを利用して Maildirを利用したメールサーバをたてようとしているのですが、 http://scan.sygate.com/prequickscan.html でポートスキャンを行っても何故か25番ポートが「CLOSED」になってしまいました。 sendmailを利用していた昨日まではきちんとメールの送受信ができていたのですが、 どうして今日になってポートが閉じていることになってしまったのでしょうか? どなたか教えてください。

  • SMTP認証で自サーバをniftyとつなぎたい

    火急の悩みゆえ、取り留めない文章にて失礼します。 【環境】 OS = vinelinux6.2 soft = postfix-2.8.10-1vl6.i686 sasl関係 cyrus-sasl-plain-2.1.23-11vl6.i686 cyrus-sasl-2.1.23-11vl6.i686 cyrus-sasl-gssapi-2.1.23-11vl6.i686 cyrus-sasl-devel-2.1.23-11vl6.i686 cyrus-sasl-md5-2.1.23-11vl6.i686 network mail server -- router -- nifty niftyをプロバイダにしてインターネットに接続しています。 自サーバで独自ドメインのサブドメインにて運営しています。 自サーバから他方へメールを送信する場合、OP25Bの制限によりniftyのメールサーバへ 転送してからの送信となります。 先週まで、その設定で出来ていたのですが、今週から突然通信不可のとなり困っています。 1つの原因は「smtp_sasl_auth_enable=yes」と、頭のsmtpがsmtpd出なかったためと思われます。 その時は「said: 451 4.1.8 Sender domain must be resolved (in reply to MAIL FROM command))」というエラーが出ていました。 現在、「smtpd_sasl_auth_enable=yes」に変更したところ 「said: 530 5.7.0 Authentication required (in reply to MAIL FROM command))」に変わりました。 どうやらpostfixがSMTP認証で蹴られているようです。仕事上で利用しているのでとても困っています。 現在のpostfixの設定を記載しますので、ご存知の方、どうかアドバイスをお願いいたします。 mail.cf (関連する部分だけの抜粋とします。ご了承ください) relayhost = [smtp.nifty.com]:587 #add for ob25b smtpd_sasl_auth_enable = yes smtpd_sasl_password_maps = hash:/etc/postfix/nifty.pw smtpd_sasl_security_options = noanonymous smtpd_sasl_mechanism_filter = LOGIN, CRAM-MD5, PLAIN ---- EOF ---- nifty.pw(IDとパスワードは置き換えています) [smtp.nifty.com]:587 id:pass ---- EOF ---- master.cf # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (50) # ========================================================================== smtp inet n - n - - smtpd submission inet n - n - - smtpd -o smtpd_etrn_restrictions=reject -o smtpd_client_restrictions=permit_sasl_authenticated,reject ---- EOF ----

  • postfix mailサーバー構築 受信できない

    Fedora15でサーバーを構築しようとしていて、メールサーバーとしてpostfixを導入しました。 postconf -n の出力は alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 disable_vrfy_command = yes home_mailbox = Maildir/ html_directory = no inet_interfaces = all inet_protocols = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mydomain = xxxxxxxxxxxxxxxxxx.dyndns.org myhostname = yyyyyy.xxxxxxxxxxxx.dyndns.org mynetworks = 192.168.11.0/24, 127.0.0.0/8 myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.8.5/README_FILES relay_domains = $mydestination relayhost = [mail.so-net.ne.jp]:587 sample_directory = /usr/share/doc/postfix-2.8.5/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtp_sasl_auth_enable = yes smtp_sasl_mechanism_filter = LOGIN, PLAIN, CRAM-MD5 smtp_sasl_password_maps = hash:/etc/postfix/authinfo smtp_sasl_security_options = noanonymous smtpd_client_restrictions = permit_mynetworks, reject_rhsbl_client rhsbl.ahbl.org, reject_rbl_client spamcop.net, reject_rbl_client dynablock.wirehub.net, reject_rbl_client sbl.spamhaus.org, reject_unknown_client, permit 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 smtpd_sender_restrictions = reject_unknown_sender_domain smtpd_tls_cert_file = /etc/postfix/server.crt smtpd_tls_key_file = /etc/postfix/server.key smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scache smtpd_use_tls = yes unknown_local_recipient_reject_code = 550 です。 プロバイダがso-netなので、ポート25が開かず、587と465を使っています。 上記の設定で、内部・外部PC操作での内部・外部への「送信」はできるようになったのですが、外部サーバ(携帯等)からの受信がまったくできませんでした。 /var/log/maillogにも何も記述はありません。 プロバイダでのOP25BではなくIP25Bが悪さ(http://www.so-net.ne.jp/option/mail/ip25b/)をしているのでは、と思い、期間限定無料のinterlinkのマイIPを設定し、固定IPにしたところ問題なく動作しました。 ただ、期間限定なので、できれば現在のso-netの状況で受信可能にしたいのですが、解決方法をご存知の方、いらっしゃらないでしょうか?

  • Postfixの設定について

    LAN内にメールサーバA(postfix稼働)を構築し、 LAN内の各サーバからのメールは、全てメールサーバAを経由して、 外部の宛先へ送信されるように設定を行いたいと考えております。 各サーバはMSP(Mail Submission Program)としてsendmailが稼働しており、 /etc/mail/submit.cfを修正し、メールサーバAへメールが転送されるようになりましたが、 各サーバのログに「stat=Deferred: Connection refused」が出力され、メールが送信できておりません。 各サーバからtelnetを利用してメールを送信した場合は、正常に送信できております。 postconf -n の出力は以下の通りです(一部抜粋してあります) home_mailbox = Maildir/ inet_interfaces = all manpage_directory = /usr/share/man message_size_limit = 10485760 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mydomain = aaaaa.net myhostname = aaaaa.net mynetworks_style = subnet newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix relay_domains = $mydestination, bbbbbbb.ne.jp ← 外部へ送信する際のアドレス relayhost = [mail.aaaaaaaaa.ne.jp]:587 ← ISPのメールサーバを指定 smtp_sasl_auth_enable = yes smtp_sasl_mechanism_filter = LOGIN, CRAM-MD5, PLAIN smtp_sasl_password_maps = hash:/etc/postfix/authinfo smtp_sasl_security_options = noanonymous smtpd_banner = $myhostname ESMTP unknown smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $myhostname unknown_local_recipient_reject_code = 550 原因が分かる方がいれば、ご教示いただければと思います。 どうぞ宜しくお願いいたします。