• ベストアンサー

postfixで携帯以外に送信が出来ない

koonellの回答

  • koonell
  • ベストアンサー率63% (53/83)
回答No.1

こんにちは。 main.cf で smtp_never_send_ehlo = yes としたらどうでしょう。

korsakov
質問者

補足

ご回答ありがとうございます。 早速試してみましたが症状は同じでした。 postfixの再起動だけでなくPCも念のため再起動してみました。 またelho,heloに関連したスパム対策の2項目もコメントアウト してみましたが駄目なようです。 #smtpd_helo_required = yes #smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname, この問題が生じる前、qpopperがうまく働かず、 OSのダウングレード等いろいろ試していた際、 送信が出来ていたときもあるようでです。 しかし送信可能だった後にOSを入れ直していたため、 ログ等が無く再現不能な状態です。 引き続きよろしくお願いいたします。

関連するQ&A

  • postfixでメールが送受信できません

    現在、Windows機、Linux機の2台のパソコンを有しています。 WindowsはXP、LinuxはFedora10です。 Linuxは触り始めて間もないので、知識不足だとは思うのですが、 postfix,dovecotを導入して、メールサーバーの構築に挑戦しています。 本を参考にしながら、一通り設定はしたのですが、Linux機からメールを送ると、ヤフーメール宛なら送れるのですが、それ以外のアドレスに一切送れません(試したのは携帯、hotmail)。 利用しているプロバイダはヤフーです。 また、携帯やWindows機からメールを送った場合、受信できません。 Linux機からLinux機自身に送った場合は受信できます。 root以外にtarou(仮名)というユーザーを作成しており、 postfix/main.cfの myhostname = mail.tarou.com mydomain = tarou.com としています。他にも、 myorigin = $mydomain inet_interfaces = all mydestination = $myhostname,localhost.$mydomain,localhost,$mydomain を設定しています。 ファイヤーウォールのport25、110は開けています。 ルーターはNECのルーターを使っており、ルーターの設定でそれらのポートも開けています。 他の関係ありそうなメッセージを以下に記します ●WindowsのOutlookExpressからtarou@tarou.com宛にメールを送る→ ~略~ <tarou@tarou.com> 2XX.XX.XX.XX does not like recipient Remotehost said:553 sorry sorry,that domain isnot allowed to relay(#5.7.1) Givien up on 2XX.XX.XX.XX ~略~ ●Linux機から携帯、hotmailにメールを送り、/var/log/maillog確認→ Nov 30 21:53:42 localhost postfix/qmgr[4939]: 53A241432437: from=<root@tarou.com>, size=456, nrcpt=1 (queue active) Nov 30 21:53:42 localhost postfix/smtp[4945]: connect to mfsmax.docomo.ne.jp[2XX.XXX.XXX.XXX]:25: No route to host Nov 30 21:53:51 localhost postfix/smtp[4945]: 53A241432437: to=<xxxxx@docomo.ne.jp>, relay=none, delay=9.3, delays=0.02/0.01/9.3/0, dsn=4.4.1, status=deferred (connect to mfsmax.docomo.ne.jp[2XX.XXX.XXX.XXX]:25: No route to host) Nov 30 22:16:10 localhost postfix/smtp[4985]: connect to mx3.hotmail.com[65.54.244.72]:25: No route to host Nov 30 22:16:13 localhost postfix/smtp[4985]: connect to mx2.hotmail.com[65.54.245.40]:25: No route to host Nov 30 22:16:19 localhost postfix/smtp[4985]: 5DDF01432439: to=<xxxxxx@hotmail.co.jp>, relay=none, delay=12, delays=0.03/0.01/12/0, dsn=4.4.1, status=deferred (connect to mx1.hotmail.com[65.54.244.8]:25: No route to host) ●telnet tarou.com 25 → Trying 2XX.XX.XX.XX... telnet: connect to address 2XX.XX.XX.XX: No route to host どうかご教授お願いします

  • Postfixで外部にメールが送信できません。

    redhatLinux9でプライマリDNSを自分で構築。 Postfix-1.1.11-11にてメールサーバを構築しております。 Postfixにて内部宛のメール送受信は可能ですが、 外部宛のメールが送受信できません。 mail ***@hotmail.comへメールを送信すると /var/log/maillogには Jun 15 17:44:26 ns postfix/smtp[2547]: 0D6F9152C96: to=<****@hotmail.com>, relay=mx3.hotmail.com[65.54.245.72], delay=38, status=deferred (lost connection with mx3.hotmail.com[65.54.245.72] while sending HELO) ↓ Jun 15 19:00:52 ns postfix/nqmgr[2682]: 4743A152C76: from=<>, size=2023, nrcpt=1 (queue active) Jun 15 19:00:52 ns postfix/local[2785]: 4743A152C76: to=<postfix@ABCDE.gr.jp>, relay=local, delay=0, status=sent (mailbox) ************************** /var/spool/mail/postfixは --0D6F9152C96.1150365383/ns.ABCDE.gr.jp Content-Description: Notification Content-Type: text/plain This is the Postfix program at host ns.ABCDE.gr.jp. I'm sorry to have to inform you that the message returned below could not be delivered to one or more destinations. For further assistance, please send mail to <postmaster> If you do so, please include this problem report. You can delete your own text from the message returned below. The Postfix program <**@hotmail.com>: lost connection with mx2.hotmail.com[65.54.244.40] while sending HELO 文字数の制限でここまでしか記述できませんでした。 長々記述しましたが、お分かりになる方、お教えください。お願いいたします。

  • postfix 送信できるが受信できない

    postfixでmailコマンドで送信できますが、受信ができません。 サーバー→GMail ok GMail→サーバー ng どなたかアドバイスをください。よろしくお願いします ダイナミックドメインサービスを利用(ddo) /var/log/maillog Nov 6 11:59:06 linuxpc postfix/smtpd[3759]: connect from mail-vx0-f177.google.com[209.85.220.177] Nov 6 11:59:07 linuxpc postfix/smtpd[3759]: warning: restriction `reject_authenticated_sender_login_mismatch' ignored: no SASL support Nov 6 11:59:07 linuxpc postfix/smtpd[3759]: warning: restriction `reject_unauthenticated_sender_login_mismatch' ignored: no SASL support Nov 6 11:59:07 linuxpc postfix/smtpd[3759]: warning: restriction `reject_authenticated_sender_login_mismatch' ignored: no SASL support Nov 6 11:59:07 linuxpc postfix/smtpd[3759]: warning: restriction `reject_unauthenticated_sender_login_mismatch' ignored: no SASL support Nov 6 11:59:07 linuxpc postfix/smtpd[3759]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead Nov 6 11:59:07 linuxpc postfix/smtpd[3759]: 857FD2680C1D: client=mail-vx0-f177.google.com[209.85.220.177] Nov 6 11:59:07 linuxpc postfix/cleanup[3755]: 857FD2680C1D: message-id=<CABuErQ5w08WXR65H1mVssgOLQXKEVHm7K3CzWPQCfSySKmY_HA@mail.gmail.com> Nov 6 11:59:07 linuxpc postfix/qmgr[3751]: 857FD2680C1D: from=<test@gmail.com>, size=1451, nrcpt=1 (queue active) Nov 6 11:59:07 linuxpc postfix/local[3763]: 857FD2680C1D: to=<user@domain.ddo.jp>, relay=local, delay=0.63, delays=0.58/0.01/0/0.04, dsn=2.0.0, status=sent (delivered to maildir) Nov 6 11:59:07 linuxpc postfix/qmgr[3751]: 857FD2680C1D: removed Nov 6 11:59:38 linuxpc postfix/smtpd[3759]: disconnect from mail-vx0-f177.google.com[209.85.220.177] /etc/postfix/main.cf queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix mail_owner = postfix myhostname = domain.ddo.jp mydomain = domain.ddo.jp myorigin = $mydomain inet_interfaces = all inet_protocols = all unknown_local_recipient_reject_code = 550 mynetworks = 192.168.1.0/24, 127.0.0.0/8 relayhost = [smtp.nifty.com]:587 alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases home_mailbox = Maildir/ 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 sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop html_directory = no manpage_directory = /usr/share/man ectory: The location of the Postfix sample configuration files. sample_directory = /usr/share/doc/postfix-2.6.6/samples #HELOコマンドで応答のないホストの接続拒否 smtpd_helo_required = yes #不正中継の対策 allow_percent_hack = yes swap_bangpath = yes #VRFYコマンドの禁止 disable_vrfy_command = yes #SMTPの受信者を制限 smtpd_client_restrictions = permit_mynetworks, reject_unknown_client, permit #転送可能なドメイン名の確認 smtpd_recipient_restrictions = permit_mynetworks, reject_sender_login_mismatch, check_relay_domains #正しいホスト名を通知してきたホストのみ接続許可 smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname, reject_unknown_client, permit #送信アドレスが存在しない場合はメール受信を拒否 smtpd_sender_restrictions = reject_unknown_sender_domain, reject_sender_login_mismatch #不正なホストに対してETRNコマンドの使用を禁止 smtpd_etrn_restrictions = permit_mynetworks, reject_invalid_hostname smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/authinfo smtp_sasl_security_options = noanonymous smtp_sasl_mechanism_filter = PLAIN

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

    教えてください。 メールを送信すると、下記のようなエラーが返信してきます。 これは、相手先のメールサーバもしくは自分のメールサーバがおかしいのですか?ご教授願いします。 環境:Linux RHES V.4    メール:Postfix使用 エラー内容: ---本文---- This is the Postfix program at host mail.zzz.zzz. I'm sorry to have to inform you that your message could not be be delivered to one or more recipients. It's attached below. For further assistance, please send mail to <postmaster> If you do so, please include this problem report. You can delete your own text from the attached returned message. The Postfix program <www@yyy.or.jp>: host yyy.yyy.or.jp[XX.XXX.XXX.XXX] said: 553 Unable to Resolve Reverse DNS (in reply to RCPT TO command) ---添付---- Reporting-MTA: dns; mail.zzz.zzz X-Postfix-Queue-ID: 649A178393 X-Postfix-Sender: rfc822; 12345@zzz.zzz Arrival-Date: Thu, 11 Jan 2007 15:50:03 +0900 (JST) Final-Recipient: rfc822; www@yyy.or.jp Action: failed Status: 5.0.0 Diagnostic-Code: X-Postfix; host mail.yyy.or.jp[XX.XX.XX.XX] said: 553 Unable to Resolve Reverse DNS (in reply to RCPT TO command) ※:zzz 自分のメールサーバ名   www 相手先アドレス   XXX 相手先グローバルIPアドレス   yyy 相手先のホスト         

  • phpからメールを送信しようとするとpostfixが配信に失敗する?

    phpスクリプトのテスト用としてubuntu8.10で自宅サーバを構築しています。 自作のphpスクリプト内でメール送信処理(mail関数を使用)を行ったところ、画面上にエラーは表示されないものの、実際にはメールが送信されていないことに気がつきました。 ちなみに、Windows上からThunderbird等のメールクライアントソフトを使って、SMTPサーバを自宅サーバに指定した場合には問題なく送信可能な状態です。 サーバ構築については素人で、様々な関連サイトを見ながら何とか構築したレベルです。mail.logの中身からしてpostfixからの配信でコケているという所までは理解できたのですが、どう対処して良いのかが判りません。 どなたか詳しい方がいらっしゃいましたら、ご教授頂ければ幸いです。 ■自宅サーバの環境 DISTRIB_ID=Ubuntu DISTRIB_RELEASE=8.10 DISTRIB_CODENAME=intrepid DISTRIB_DESCRIPTION="Ubuntu 8.10" PHP 5.2.6-2ubuntu4.1 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 11 2009 20:38:24) Postfix mail_version = 2.5.5 ■/var/log/mail.logの中身 Mar 23 18:10:17 ubuntu postfix/pickup[13358]: 7F5CD13F91: uid=33 from=<​www-data>​ Mar 23 18:10:17 ubuntu postfix/cleanup[14285]: 7F5CD13F91: message-id=<20090323091017.7F5CD13F91@ubuntu> Mar 23 18:10:17 ubuntu postfix/qmgr[4582]: 7F5CD13F91: from=<​www-data@localdomain>,​ size=342, nrcpt=1 (queue active) Mar 23 18:10:17 ubuntu postfix/smtp[14287]: 7F5CD13F91: enabling PIX workarounds: disable_esmtp delay_dotcrlf for mx2.ISPのドメイン[***.***.***.**]:25 Mar 23 18:10:17 ubuntu postfix/smtp[14287]: 7F5CD13F91: to=<送信先メルアド>, relay=mx2.ISPのドメイン[***.***.***.**]:25, delay=0.18, delays=0.04/0.01/0.09/0.04, dsn=5.1.8, status=bounced (host mx2.ISPのドメイン[***.***.***.**] said: 553 5.1.8 Domain of sender address <localdomain> does not exist. (in reply to MAIL FROM command)) Mar 23 18:10:17 ubuntu postfix/cleanup[14285]: ACCC413F98: message-id=<20090323091017.ACCC413F98@ubuntu> Mar 23 18:10:17 ubuntu postfix/qmgr[4582]: ACCC413F98: from=<>, size=2146, nrcpt=1 (queue active) Mar 23 18:10:17 ubuntu postfix/bounce[14288]: 7F5CD13F91: sender non-delivery notification: ACCC413F98 Mar 23 18:10:17 ubuntu postfix/qmgr[4582]: 7F5CD13F91: removed Mar 23 18:10:17 ubuntu postfix/smtp[14287]: ACCC413F98: to=<​www-data@localdomain>,​ relay=none, delay=0.04, delays=0.02/0/0.02/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=localdomain type=A: Host not found) Mar 23 18:10:17 ubuntu postfix/qmgr[4582]: ACCC413F98: removed

  • Postfixでのメール送信エラー

    Postfixを使ってメールサーバを立ち上げています。 現在、いくつかのところへのメールの送信が May 14 15:10:04 ND-10299 postfix/smtp[1199]: 6AE731AF89C5: to=<staff_01@xxxx.jp>, relay=sus.xxxxx.jp[xxx.xxx.138.xx], delay=2, status=bounced (host sus.xxxx.jp[xxx.xxx.138.xx] said: 550 <staff_01@xxxx.jp>: Recipient address rejected: User unknown in local recipient table (in reply to RCPT TO command)) というメッセージで送信できません。 ですが、送信できないアドレスからのメールは受信できます。 また、全部のアドレスではなく携帯メールなども受信受信拒否していなければ普通に送受信できます。 ちなみに、送信先のサーバでも受信拒否はしていません。 何が原因なのでしょうか?

  • メール受信が出来なくなった

    こんにちは、 postfixを使ってメールサーバーを 構築しており、昨日までは正常に稼働していたのですが、 今日になっていきなり、 hotmailからのメールが受信できなくなってしまいました。 思い当たる変更点: #スパム対策 #headerによる制御 #header_checks = regexp:/etc/postfix/header_checks #本文による制御 #body_checks = regexp:/etc/postfix/body_checks を追加したこと。 問題が起こってからは コメントアウトしていますが、 解決しませんでした。 postmasterから、 postfix SMTP server: errors from bay0-omc3-s10.bay0.hotmail.com というメールは届く。 (何分かおきに連続して届く) ログ------ Nov 3 16:46:04 host postfix/smtpd[8861]: connect from bay0-omc3-s17.bay0.hotmail.com[65.54.246.217] Nov 3 16:46:04 host postfix/smtpd[8861]: warning: unknown smtpd restriction: "reject_unknown_sender_domainmailbox_command" Nov 3 16:46:04 host postfix/smtpd[8861]: NOQUEUE: reject: RCPT from bay0-omc3-s17.bay0.hotmail.com[65.54.246.217]: 451 4.3.5 Server configuration error; from=<ダミー@hotmail.co.jp> to=<ダミー@自ドメイン> proto=ESMTP helo=<bay0-omc3-s17.bay0.hotmail.com> Nov 3 16:46:05 host postfix/cleanup[8867]: 06E5275800C: message-id=<20071103074605.06E5275800C@自ドメイン> Nov 3 16:46:05 host postfix/smtpd[8861]: disconnect from bay0-omc3-s17.bay0.hotmail.com[65.54.246.217] Nov 3 16:46:05 host postfix/qmgr[8808]: 06E5275800C: from=<double-bounce@自ドメイン>, size=958, nrcpt=1 (queue active) Nov 3 16:46:05 host postfix/virtual[8869]: 06E5275800C: to=<ダミー@自ドメイン>, orig_to=<postmaster>, relay=virtual, delay=0.03, delays=0.02/0/0/0.01, dsn=2.0.0, status=sent (delivered to maildir) Nov 3 16:46:05 host postfix/qmgr[8808]: 06E5275800C: removed

  • postfixから不正なメールが送信されているようです

    postfixで自前のメールサーバを運用していますが、このサーバから大 量のスパムが送信されいるようです。いろいろ調べたのですが原因を特定できません。どなたか助言をお願いします。 ・OS:Mac OS X (10.3.9) ・メールサーバ:postfix version 2.0.10 ・imapサーバ:postfix enabler(1.1.6)に付属のもの ・メールクライアント:Mail 1.3.11 (v622/623)(本現象はクライアントの起動の 有無には関わらないようです) ・ウイルスチェック:Norton Unti Virusでチェックし問題なし ・不正中継チェック:http://www.rbl.jp/を利用させて頂いて問題なし ・問題の詳細:ログの見方を完全には理解していませんが、localホストからメールを送信しているようです。 【ログ(1)】 下記のようなログが大量に出力され、incomingディレクトリにも大量のメールがたまってしまいます。 toやfromのアドレス(xxx@yyy)には様々なアドレスが設定されています。zzz[ip]の部分はISPのメールサーバ(リレー先)のアドレスです。またqqq[ip]は自分のサーバです。 Apr 29 17:33:13 localhost postfix/qmgr[582]: 44B811555F3: from=<xxx@yyy>, size=5212, nrcpt=5 (queue active) Apr 29 17:33:13 localhost postfix/smtp[232]: AFC9E1555F1: to=<xxx@yyy>, relay=zzz[ip], delay=2, status=sent (250 Ok: queued as 09BD52DC8) Apr 29 17:33:13 localhost postfix/smtpd[227]: EE6901555F4: client=qqq[ip] Apr 29 17:33:14 localhost postfix/smtp[233]: 927421555F2: to=<xxx@yyy>, relay=zzz[ip], delay=2, status=sent (250 Ok: queued as A0FFB3000) 明日から数日不在になりますのでレスが少々遅くなりますが、どうぞよろしくお願い致します。

  • Postfixで外部にメール送信ができません。

    Postfixで外部にメール送信ができません。 お世話になります。いろいろなサイトやブログを参考に、自宅サーバーにPostfixを入れ、メールサーバーを構築していますが、外部へのメール送信ができません(似たような質問が、過去にこのサイトにも幾つかありますが、解決できませんでしたので、ここに改めて質問させてください)。なお、固定IPではなく、ダイナミックDNS(mydns.jpを利用)しています。 現在の状況ですが、例えばコマンドラインから外部のアドレス「USER@hoge.com」へメールを送るとします。 [root@localhost /]# mail USER@hoge.com すると、相手には届かず、「/var/log/maillog」には以下のような記録が残ります。 May 4 20:18:39 localhost postfix/qmgr[17170]: 0875F2C0C4C: from=<>, size=2213, nrcpt=1 (queue active) May 4 20:18:39 localhost postfix/bounce[17312]: E80932C0C4B: sender non-delivery notification: 0875F2C0C4C May 4 20:18:39 localhost postfix/qmgr[17170]: E80932C0C4B: removed May 4 20:18:39 localhost postfix/local[17313]: 0875F2C0C4C: to=<root@hoge.mydns.jp>, relay=local, delay=0.02, delays=0.01/0.01/0/0, dsn=2.0.0, status=sent (delivered to maildir) May 4 20:18:39 localhost postfix/qmgr[17170]: 0875F2C0C4C: removed OSはCentOS 5.4を利用しており、Postfixは2.3.3です。下に「postconf -n」の結果を記載します。 alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 home_mailbox = Maildir/ html_directory = no inet_interfaces = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mydomain = hoge.mydns.jp myhostname = www.hoge.mydns.jp myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES relayhost = (ISPのSMTPサーバードメインを記載) sample_directory = /usr/share/doc/postfix-2.3.3/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_banner = $myhostname ESMTP unknown unknown_local_recipient_reject_code = 550 ポートに関しては「telnet localhost 25」で接続できることを確認できており、DNSについてはdigコマンドを使い、正引き、逆引き、MXレコードを確認しましたが、全て「status:NOERROR」で結果が表示されます。ここからどのようにすれば、メール送信ができるようになるでしょうか?皆様のお知恵をお貸しください。よろしくお願いします。