• 締切済み

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 原因が分かる方がいれば、ご教示いただければと思います。 どうぞ宜しくお願いいたします。

みんなの回答

回答No.1

mynetworksの設定はどうなっていますか? 直接書いてあるにしろ、別ファイル記載にしろ、許可するLANのアドレスが記載されているでしょうか。

kosikake
質問者

補足

ご回答ありがとうございます。 「mynetworks_style = subnet」を設定しているので、 メールサーバAと同じサブネットに属している各サーバは接続できると思われます。

関連するQ&A

  • 外部(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 内部から内部の認証

    現在、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 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の状況で受信可能にしたいのですが、解決方法をご存知の方、いらっしゃらないでしょうか?

  • 自宅メールサーバについて

    http://okwave.jp/qa2450886.htmlにて質問をさせていただきましたが、改めて設定を見直し、内部→内部 内部→外部の送信OK、外部→内部NGとなりました。設定方法が判らないため/etc/postfix/main.cfにrelayhost=[smtp.nifty.com]は削除しています。 設定内容です。 ・Postfix main.cf myhostname = *HOSTNAME*.dyndns.org mydomain = dyndns.org myorigin = $myhostname inet_interfaces = all #inet_interfaces = localhost #mydestination = $myhostname, localhost.$mydomain, localhost mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain local_recipient_maps = unix:passwd.byname $alias_maps # Enable SMTP Auth smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_mynetworks, premit_auth_destination,permit_sasl_authenticated, reject content_filter = smtp-amavis:[127.0.0.1]:10024 ・postfix master.cf smtp-amavis unix - - n - 2 smtp -o smtp_data_done_timeout=1200 -o disable_dns_lookups=yes 127.0.0.1:10025 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions=permit_mynetworks,reject -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000

  • postfix 自ドメイン以外の場合、メールが転送されないのはなぜなのでしょうか?

    postfixについての質問です。 受信したメールのアドレスが、自ドメイン以外の場合 メールが転送されないのはなぜなのでしょうか? 現在、Aユーザ宛のメールを受信すると、 外部のホットメールと携帯メールに メールを転送するように設定してます。 自ドメインのメールアドレスから Aユーザ宛にメールを送信すると成功します。 転送も成功します。 (自ドメイン→メールサーバ→ホットメール・携帯メール) 他ドメイン(yahoo.co.jp、hotmail.jpなど)のメールアドレスから Aユーザ宛にメールを送信すると、メールの送信は成功、 メールサーバ側の受信も成功しますが メールの転送が失敗します。 (他ドメイン→メールサーバ→×転送失敗) postfixのログを確認したところ下記エラーメッセージが吐かれてました。 said: 554 <XXXXXXXXXXXXX@yahoo.co.jp>: Sender address rejected: Access denied (in reply to RCPT TO command)) 他ドメインから来たメールが ホットメールと携帯メールに転送出来るようにしたいです。 どなたか、ご存知の方がいましたら、教えてください。 宜しくお願いします。 [環境] CENT OS 5.0 postfix 2.3.15 [main.cf]※関係ありそうな部分を抜粋しました myhostname = XXXXXXXXX.jp (自ドメイン) mydomain = XXXXXXXXX.jp (自ドメイン) myorigin = $mydomain mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain unknown_local_recipient_reject_code = 550 #mynetworks_style = host #mynetworks = hash:/etc/postfix/network_table relay_domains = $mydestination relayhost = [xxxx.ocn.ne.jp] #relay_recipient_maps = hash:/etc/postfix/relay_recipients alias_maps = hash:/etc/aliases newaliases_path = /usr/bin/newaliases smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $myhostname smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination

  • 外部から自宅サーバー経由でメール送信postfix

    外部(出先)から自宅サーバー経由(postfix)でメール送信することができません。 ・サーバー ubuntu ・MTA postfix ・プロバイダ ASAHI NET ・回線 au ひかり 【状態】 出先でメーラーを開いて、自宅サーバーを経由してメール送信をすると 554 5.7.1 <xxxxxx@example.com>: Client host rejected: Access denied と返ってくる。 LAN内からは587番ポートを使い、プロバイダのメールサーバーを経由しての外部への送信は可能。 なので簡単にいくかと思ったら、かなりハードルが高いようです。 送信元の ●postconf -n の結果の抜粋 mynetworks = 192.168.1.0/28, 127.0.0.0/8 mynetworks_style = subnet myorigin = $mydomain readme_directory = no recipient_delimiter = relay_domains = $mydestination relayhost = [mail.asahi-net.or.jp]:587 smtp_sasl_auth_enable = yes smtp_sasl_mechanism_filter = PLAIN, LOGIN, DIGEST-MD5, CRAM-MD5 smtp_sasl_password_maps = hash:/etc/postfix/authinfo smtp_sasl_security_options = noanonymous smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtp_use_tls = no smtpd_banner = $myhostname ESMTP unknown smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_authenticated_header = no smtpd_sasl_local_domain = smtpd_sasl_path = smtpd smtpd_sasl_security_options = noanonymous smtpd_sasl_type = cyrus smtpd_sender_restrictions = smtpd_tls_auth_only = no smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key smtpd_tls_mandatory_ciphers = medium smtpd_tls_mandatory_protocols = !SSLv2 smtpd_tls_received_header = no smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_use_tls = yes tls_random_source = dev:/dev/urandom unknown_local_recipient_reject_code = 550 ●master.cf submission inet n - - - - smtpd #-o smtpd_sasl_auth_enable=yes -o smtpd_etrn_restrictions=reject -o smtpd_client_restrictions=permit_sasl_authenticated,reject ●外部のメーラーからは ・自宅のドメイン+587番ポート+認証で接続 【その他考えられる原因】 ・プロバイダや回線自体ができない仕様になっていればしかたがない。自宅サーバーなどのことについては回答不可能とのこと。 ●やってみたこと mynetworks = 192.168.1.0/28, 127.0.0.0/8 を mynetworks = 127.0.0.0/8 としたり、 mynetworks = 127.0.0.0/8, [外部メーラーを送信するIPアドレス] などとしましたが、よりひどくなるか、送信できません。 しらべていくとこいつが肝な感じなので smtpd_recipient_restrictions= permit_sasl_authenticatedを加えたものにしてみてもだめでした。 どなたかわかる方はいらっしゃいますか。

  • 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で外部にメールが送れません

    まるごとServerをレンタル(root権限あり)しました。 今までQMailを使ってサーバーの運営をしていたのですが、今回はPostfixで運営する事になりました。 hogehoge.jp(仮名です)というドメインを取得し、DNSにも登録しHPは見る事が出来る状態です。 メールの設定をしているのですが、このサーバーをSMTPとしてメーラーに設定し、このサーバー外のドメイン宛(例えば、fugafuga@gmail.comなど)にメールを送信しようとするとはじかれてしまいます。 サーバー内部のドメイン(バーチャルホスト)宛にはちゃんと送受信出来ます。 外部からのメールもキチンと振り分けられて取得できます。 以下はメールのログです。 ------------------------------------------------- May 16 22:54:06 www postfix/smtpd[23767]: connect from xxx.yyy.bbiq.jp[***.***.***.***] May 16 22:54:06 www postfix/smtpd[23767]: NOQUEUE: reject: RCPT from xxx.yyy.bbiq.jp[***.***.***.***]: 554 5.7.1 <fugafuga@gmail.com>: Relay access denied; from=<hoge@hogehoge.jp> to=<fugafuga@gmail.com> proto=ESMTP helo=<[127.0.0.1]> May 16 22:54:08 www postfix/smtpd[23767]: disconnect from xxx.yyy.bbiq.jp[***.***.***.***] ----------------------------------------------------- ちなみにターミナルを使って内部から fugafuga@gmail.comにmailコマンドでメールを送信したときはちゃんと送信出来ました。 これは何が原因でしょうか? main.cfのうち関係ありそうなのを列挙します。 inet_interfaces = all mydestination = $myhostname, localhost.$mydomain, localhost mynetworks_style = subnet mynetworks = 168.100.189.0/28, 127.0.0.0/8 smtpd_client_restrictions = permit_mynetworks,reject_unknown_client,permit 他に提示したほうがいい情報があれば教えてください。 よろしくお願いします。

  • 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

  • 自宅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