• ベストアンサー
※ ChatGPTを利用し、要約された質問です(原文:postfixでメールが送信できないことについて)

postfixでメールが送信できないことについて

このQ&Aのポイント
  • 初心者ながらFC5でマルチサーバを立ち上げようと考えているが、メールサーバの構築で困っている。
  • ホスト名は「ns1.example.co.jp」、ドメイン名は「example.co.jp」。SMTPサーバには「postfix」、POPサーバには「dovecot」、認証には「SASL」を使っている。
  • メール送信ができないため、問題解決のアドバイスを求めている。

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

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

Postfixはどのように設定を行い、どうメールが送信出来ないのですか? また、メールが送信出来ない時のmaillogにはどのろうなログが出力されていますか?

you_key
質問者

お礼

Lean様 早速のレスありがとうございます。 コチラで皆様にご教授頂こうと思いましたが、 他の掲示板に記載しておいたところ解決方法を 教えて頂けることができました。 Lean様には本当に申し訳なく、感謝とお詫びを 申し上げます。 結果としては、amavisdを導入しており、 postfixのmaster.cfの content_filter=smtp-amavis:[127.0.0.1]:10024 の一文が抜けていることによるエラーでした。 今一度Lean様には感謝とお詫びを申し上げます。

全文を見る
すると、全ての回答が全文表示されます。

関連するQ&A

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

    CentOSで下記の設定をpostfix のmain.cfに加えた後、外部サイトのポートスキャンを実施すると失敗します。(iptalbe はstop にして chkconfig off 、selinuxはsetenforce 0 SELINUX =disabled 実施済みです。)  Vinlinuxでは下記の設定をすると、ポートスキャンで成功します。 おそらく、CentOSの場合、セキュリティの関係か何かで、さらに何か設定変更しないとポートスキャンに成功しない仕様だと思ってます。CentOSの場合、maillogを見るとpostfixがスタートしているようには出ているのですが。 ネットで調べたのですが、うまい解決方法が見つかりません。CentOS導入のウエブページにもPostfix Dovecotの組み合わせで設定する方法が結構載っていますが、そのとおり試してもうまくいきません。 そもそも、Postfixの設定完了時点でポートスキャンで失敗しているので、Dovecotの設定などしても意味が無い状態です。 どうすれば、ポートスキャンが成功するでしょうか。 テスト環境  (OSインストール後、すぐにPostfixに設定を加えるだけで、ポートスキャンを実施しています) ------------------------------------------- CentOS5.5 or CentOS6.2 (iptables,selinux 無効実施済み) postfix-postfix-2.3.3 Vinlinux4.2 postfix-2.2.10-10v14 ------------------------------------------- main.cf の設定内容 (試験目的のため最小限の設定をしたつもりです。Vinelinuxではうまく動作します) myhostname = jitaku-server.net mydomain = jitaku-server.net myorigin = $myhostname inet_interfaces = all mydestination = $myhostname, localhost.$mydomain $mydomain mynetworks_style = subnet home_mailbox = Maildir/ ------------------------------------------- よろしくお願いします。

  • 外部(WAN)からのメール送信(Postfix)

    はじめまして。 今回、postfixを使ってメールサーバの設定を行いました。 しかし、外部(WAN)からのメール送信が出来ずに悩んでいます。 いろいろなサイトを参考にしましたが、解決方法がなく、書き込みました。 下記の内容は設定した内容です。 どうかご教授くださいますようお願いします。 メールソフトはOutlookを使用。 メールアドレス:info@test.jp(例) 受信メールアドレス:test.jp 受信サーバーにアクセス可能(外部接続の場合) 送信メールアドレス:test.jp 送信サーバーにはアクセスできません(外部接続の場合) 構成 OS Vinelinux5.2 メールサーバー:Postfix2.6.3 環境 CTU(NTT端末):アンナンバードに設定 固定IP接続回線:IPQ(固定IP)*ポート開放(110,25)されています。 ドメイン取得:VALUEDOMAIN ・SMTP_AUTHを導入 ・CyrusSASLをインストール(認証ユーザーはシステムユーザーを使用)  SASLデーターベースの設定  /usr//lib/sasl2/smtpd.conf pwchek_method:saslauthd ・Dovecotの設定  protocols = imap imps pop3 pop3s  #mail_location  mail_location = maildir:~/Maildir  saslauthd 起動スクリプトは初期状態ではshadowパスワード による認証を行うオプションで起動  /etc/sysconfig/saslauthd  MECH = pam  #SASLAUTHD_AUTHMECH = pam postconf -n alias_database = hash:/etc/postfix/aliases alias_maps = hash:/etc/postfix/aliases allow_percent_hack = yes broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/lib/postfix data_directory = /var/lib/postfix debug_peer_level = 2 default_privs = nobody disable_vrfy_command = yes home_mailbox = Maildir/ inet_interfaces = all mail_owner = postfix mailbox_size_limit = 30720000 message_size_limit = 1024000 mydestination = $myhostname, localhost.$mydomain, $mydomain mydomain = test.jp myhostname = mail.test.jp mynetworks = 21.22.23.24/28, 127.0.0.0/8 → 固定グローバルIPのアドレスを設定(例) mynetworks_style = subnet myorigin = $mydomain queue_directory = /var/spool/postfix relay_domains = $mydestination smtpd_banner = $myhostname ESMTP unknown smtpd_client_restrictions = permit_mynetworks,reject_unknown_client,permit smtpd_etrn_restrictions = permit_mynetworks, reject_invalid_hostname smtpd_helo_required = yes smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname, 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_sender_restrictions = reject_unknown_sender_domain, reject_sender_login_mismatch,reject_sender_login_mismatch swap_bangpath = yes unknown_local_recipient_reject_code = 550

  • 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

  • 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 以上、長々となってしまいましたが、何かヒントを頂ければ大変有り難く存じます。 何卒宜しくお願い致します。

  • centOS4とpostfixを使っているのですが、SMTP認証を設定できない

    centOS4とpostfixを使っているのですが、SMTP認証を設定できない レンタルサーバのVPSを使っています。 本を参考に、 vi /etc/postfix/main.cf で設定ファイルに ↓これコピペです #smtp wo yuukou ni simasu smtpd_sasl_auth_enable = yes #tokumei de no setuzoku wo kyoka simasen smtpd_sasl_security_options = noanonymous #hurui me-ra- no ninsyouyoukyuu nimo taiou dekiru youni settei simasu broken_sasl_auth_clients = yes #ninsyou ni kyoka sareta baai nomi hoka no domain wo kyoka simasu smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination とかき、保存し、 ↓コピペ [root@www ~]$ service saslauthd start Starting saslauthd: [ OK ] ↓ [root@www ~]$ /etc/rc.d/init.d/postfix reload Reloading postfix: [ OK ] としたのですが、 メーラー(Win vista businessのthunderbird)で、 「SMTPサーバの設定」で「セキュリティと認証:ユーザ名とパスワードを使用する」にチェックを入れても、入れなくても、 example.com のSMTPサーバから bar@example.com へメールを送信できてしまいます。 SMTP認証を実現させるには、どうすればいいのでしょうか? (なお、submission portの対策はしていないので、他のドメインのメアドへは送信できません) //とりあえず怖いので今はpostfixはstopさせています 以上、よろしくお願いいたします。

  • postfixおよびdovecotの設定について

    今回、Fedora11にpostfixとdovecotをインストーしてメールサーバーを構築したのですが、構築したアドレスの受信ができません。 逆に、送信はできgmailなど外部のメールに送ることはできます。 DNS、DHCPの設定は、問題ないことは確認できています。 また、dovecotでmail_location=の部分を変更しても設定が反映されません。(dovecotの削除→再インストールでもダメでした。) ファイヤーウォールを全開放しても受信できていません。 postfixやdovecotの設定は”Fedora 11で作る最強の自宅サーバー ”という本に書いてある設定しかしていません。 どのように設定を変更したらメールを受信できるようになりますでしょうか? 何かありきたりなミスなど皆様が御存知のことがありましたら是非、アドバイスお願いします。

  • 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+Dovecotで、Maildir形式と、/var/sp

    Postfix+Dovecotで、Maildir形式と、/var/spool/mail/ 方式が混在してしまう Fedora13 にPostfix+Dovecotをインストールして、LAN内のメール交換に使っています。 ところが、ユーザーによって、Mozilla Thunderbird でメールが取れない現象が発生し、調べたところ、取れないユーザーは、/var/spool/mail/ のユーザー名のファイルが更新されていました。 メールが取れるユーザーは、/home/ユーザー名/Maildir/new/ にファイルが追加され、/var/spool/mail/ は日時が新しくなっていません。 という事は、Maildir形式と、/var/spool/mail/ 方式が混在している事になってしまいます。 /etc/postfix/main.cf には、 home_mailbox = Maildir/ を設定してありますし、 /etc/dovecot.conf にも mail_location = maildir:~/Maildir が設定してあります。 Postfix と、Dovecot のバージョンは、 /usr/sbin/postconf | grep mail_version mail_version = 2.7.0 $ rpm -qa | grep dovecot dovecot-1.2.14-1.fc13.i686 となります。 方式が混在するような事があるのか、また、Maildir形式に統一することは可能かどうか、ご存知の方、ご教授ください。

  • postfix + dovecot

    Red Hat Enterprise Linux6.2上でpostfix + dovecotのメールサーバを構築していますが、送受信とも正常に行えていません。 もともとtubbo linax10で動作していた環境を移植しています。 postfixは現在の設定をほぼそのまま利用しています。 doveco(dovecot-2.0.9-2. el6_1.1.x86_64)は新規の使用です。 外部ネットワークからのメール送信は行わない運用とする為、smtp-authは構成していません。 dovecotも各ユーザでのパスワードは設定せずに、運用したいと考えています。 postfix,dovecot共にサービスは正常に動作しており、ポートも空いている事は確認しています。 LAN内からメールの送受信を行うと、サーバに接続できないエラーとなります。 /var/log/massages,maillogにはpostfixとdovrcotが起動した旨のメッセージしか記録されておらず、 詳細なエラー情報は記録されていません。 第一点は、詳細ログの確認方法をご教授下さい。 devecotを調査している過程で、認証方法を"auth-system.conf.ext"としており、その設定の中でデフォルトが ”driver = pam” 設定されており、それを ”driver = shadow”に変更して再起動すると、下記エラーとなってしまいます。 「doveconf: Fatal:Error in configuration file /etc/dovecot/conf.d/auth-system.conf.ext line 14: Unknow setting: driver」 この辺りが、ポイントではないかと考えているのですが、ご支援頂きたくお願いします。

バッテリーが充電されない
このQ&Aのポイント
  • 正規品のACアダプタで充電されない問題が発生しました。PC側のACアダプタは点灯しており、OSの電源アイコンも充電中と表示されますが、実際には充電されていない状態です。
  • 製造から3年経過し、子供たちに乱暴に扱われたこともあり、ACアダプタかバッテリーの故障が疑われます。Lenovoの診断ツールやチャットボットを利用しているが、バッテリーの取り外し以外は一致しないため、接続不良以外の問題が考えられます。
  • バッテリーは背面のネジを開ける必要があり、現時点では触っていませんが、ランプの点灯やOSの反応から接続不良ではないと判断しています。追加の方法を知りたいです。
回答を見る