• 締切済み

Postfixで外部からメールが受信できない

Postfix(debian)でメールサーバ構築の勉強をしている者です。 バーチャルドメイン(VIRTUAL.********.**)に対して外部からメールを送信してみたのですが、gmailで送信した場合は成功し、携帯電話から送信した場合には失敗してしまいます。 失敗したときのログ[mail.log] Dec 30 21:31:36 ******** postfix/anvil[20511]: statistics: max connection rate 1/60s for (smtp:192.168.0.6) at Dec 30 21:27:24 Dec 30 21:31:36 ******** postfix/anvil[20511]: statistics: max connection count 1 for (smtp:192.168.0.6) at Dec 30 21:27:24 Dec 30 21:31:36 ******** postfix/anvil[20511]: statistics: max cache size 1 at Dec 30 21:27:24 [/etc/postfix/main.cf] smtpd_banner = $myhostname ESMTP biff = no append_dot_mydomain = no readme_directory = no smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache myhostname = mail.********.** mydomain = *******.** virtual_alias_domains = VIRTUAL.********.** virtual_alias_maps = regexp:/etc/postfix/virtual alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = $myhostname, localhost.$mydomain, $mydomain, localhost relayhost = [●●.jp] #OP25B対策 mynetworks = 192.168.1.0/24, 127.0.0.0/8 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all home_mailbox = Maildir/ message_size_limit = 1024000 [/etc/postfix/virtual] USERNAME@VIRTUAL.********.** USERNAME 送信元(携帯)にはInvalid Destination Domain (in reply to RCPT TO command)と通知されます。 ちなみに、mail.********.**に対しての送信は成功するようです。 どなたか御教授よろしくおねがいします。

みんなの回答

  • YkazubonY
  • ベストアンサー率30% (26/86)
回答No.1

mydestinationに、VIRTUAL.********.**が指定されていないためでは。

ajalabox
質問者

補足

回答ありがとうございます。 マニュアル(http://www.postfix.org/VIRTUAL_README.html)に"NEVER list a virtual alias domain name as a mydestination domain"とあったのでmydestinationに書くのは避けていたのですが・・?

関連するQ&A

  • postfixで外部から内部へのメールが受信できない

    こんにちは linux debianを使って最近サーバーを構築している者です 現在postfixを使って外部からのメールを受信できるようにしたいのですが、送信は出来るのですが受信が出来ずつまっています。。。 どなたかアドバイスいただければと思います 以下main.cfです myorigin = /etc/mailname smtpd_banner = $myhostname ESMTP $mail_name biff = no append_dot_mydomain = no smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache myhostname = xxx.xxx.xxx.xx.jp alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases relayhost = mynetworks = xxx.xxx.xxx.xxx/x,xxx.xxx.xxx.xxx mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all mydestination = xxx.xxx.xxx.xxx.jp, localhost.xxx.xxx.xxx.xxx.jp, localhost となっています その他必要な情報がありましたらご指摘いただければと思います 外部からメールを送信すると、外部のメーラーにエラーメールが返ってきます mail deliverly error The following message to <USER_NAME@xxx.xxx.xxx.xxx.jp> was undeliverable. The reason for the problem: 5.1.0 - Unknown address error 550-'5.1.1 <USER_NAME@xxx.xxx.xxx.xxx.jp>... User unknown' 内部から内部へはうまく送受信できています どうぞよろしくお願いいたします

  • 外部から自宅サーバー経由でメール送信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を加えたものにしてみてもだめでした。 どなたかわかる方はいらっしゃいますか。

  • 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

    myhostname = ocutuple mydomain = gmail.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = $mydomain mydestination = $mydomain, $myostname mynetworks = 127.0.0.0/8, 192.168.111.21 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all relayhost = [smtp.gmail.com]:587 #sasl setting smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_sasl_tls_security_options = noanonymous smtp_sasl_mechanism_filter = plain #tls setting smtp_use_tls = yes gmailから送信するように設定しています。 環境はubuntu。絶対におかしなところはないはずなんですが。

    • 締切済み
    • PHP
  • Postfixでローカルにメール送信及び受信

    近日中にメールサーバの設定を終わらせないといけないのですが お恥ずかしながらローカルにも配送ができていない状況です。 postfixをインストールする前に元々sendmailが動いていたのですが (sendmailもメールの送受信ができなくなった)ので、postfixに挑戦して みようと思って参考サイト(​http://www.freewheelburning.com/linux/postfix.html)​を元に 試して見たのですが、うまく行きません。 postfixは起動できるのですがメール送受信ができません。 sendmailの設定の時に色々いじっているのでどこまで影響が出ているのか わからないのが致命的です・・・。 postfixのバージョンは2.6.5です。 以下main.cfの内容 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 = ​www.hoge.co.jp​ #mydomain = domain.tld myorigin = $mydomain inet_interfaces = all mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain unknown_local_recipient_reject_code = 550 mynetworks_style = host mynetworks = 127.0.0.0/8, 192.168.1.0/24 #relay_domains = $mydestination #relay_recipient_maps = hash:/etc/postfix/relay_recipients alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases home_mailbox = Maildir/ sendmail_path = /usr/sbin/sendmail newaliases_path = /usr/bin/newaliases mailq_path = /usr/bin/mailq setgid_group = postdrop html_directory = no readme_directory = no smtpd_helo_required = yes #smtp_sasl_auth_enable = yes #smtp_sasl_password_maps = hash:/etc/postfix/authinfo #smtp_sasl_security_options = noanonymous #smtp_sasl_mechanism_filter = LOGIN, PLAIN, CRAM-MD5 telnetにてメール送信 # telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 ​www.hoge.co.jp​ ESMTP Postfix helo localhost 250 ​www.hoge.co.jp​ mail from:root@localhost 250 2.1.0 Ok rcpt to:user@localhost 250 2.1.5 Ok data 354 End data with <CR><LF>.<CR><LF> From:root@localhost Subject:mailtest This mail is test. . 250 2.0.0 Ok: queued as DC80A3408054 quit 221 2.0.0 Bye Connection closed by foreign host. # postqueue -p と中を見ても何も記述されておりませんでした。 maillogは Dec 4 12:42:28 hoge postfix/cleanup[2193]: DC80A3408054: message-id=<20091204034132.DC80A3408054@​www.hoge.co.jp>​ Dec 4 12:42:28 hoge postfix/qmgr[2180]: DC80A3408054: from=<root@localhost.hoge.co.jp>, size=396, nrcpt=1 (queue active) Dec 4 12:42:28 hoge postfix/local[2196]: DC80A3408054: to=<usermosp@localhost.hoge.co.jp>, orig_to=<user@localhost>, relay=local, delay=72, delays=72/0/0/0, dsn=2.0.0, status=sent (delivered to maildir) Dec 4 12:42:28 hoge postfix/qmgr[2180]: DC80A3408054: removed Dec 4 12:42:33 hoge postfix/smtpd[2187]: disconnect from localhost.localdomain[127.0.0.1] 自分が未熟すぎるのは重々承知しております。 堂々巡りで一日が終わっていく毎日です、ご教授頂けると幸いです。 また足りない情報がありましたら、追記させていただきますのでどうぞよろしくお願い致します。

  • postfix+Dovecotでメール受信できない

    CentOS5.6の専用サーバーを借りて、メールの設定をしているのですが、どうしてもメールを受信できません。丸2日ほどはまったままで仕事ができずにおり、困っています。 予想される間違いがありましたら、ご指摘頂けないでしょうか? 何卒、よろしくお願い致します。 いろいろなサイトを参考にしてmain.cf、dovecot.confの設定はできているはずなのですが。。 参照したサイト http://centossrv.com/postfix.shtml           http://centos.server-manual.com/centos5_postfix.html 直近では下記のようなログが出ておりました。 postfix/smtpd[4049]: connect from unknown[IP] postfix/smtpd[4049]: 5669B1428638: client=unknown[IP] postfix/cleanup[4053]: 5669B1428638: message-id=<O[20 postfix/qmgr[3729]: 5669B1428638: from=<xxxxx@xxxx.info>, size=396, nrcpt=1 (queue active) postfix/local[4054]: 5669B1428638: to=<xxxx@mydomain.com>, relay=local, delay=1.1, delays=1.1/0/0/0, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail) postfix/qmgr[3729]: 5669B1428638: removed postfix/smtpd[4049]: disconnect from unknown[IP] postfix/smtpd[4049]: connect from xxxx.google.com[IP] postfix/smtpd[4049]: B61471428638: client=xxxx.google.com[IP] postfix/cleanup[4053]: B61471428638: message-id=<xxxx@gmail.com> postfix/qmgr[3729]: B61471428638: from=<xxxx@gmail.com>, size=4429, nrcpt=1 (queue active) postfix/local[4054]: B61471428638: to=<xxxx@mydomain.com>, relay=local, delay=0.33, delays=0.32/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail) postfix/qmgr[3729]: B61471428638: removed postfix/smtpd[4049]: disconnect from xxxx.google.com[IP] postfix/anvil[4051]: statistics: max connection rate 1/60s for (smtp:IP) at May 25 12:38:44 postfix/anvil[4051]: statistics: max connection count 1 for (smtp:IP) at May 25 12:38:44 postfix/anvil[4051]: statistics: max cache size 2 at May 25 12:39:20 また、SSH上ではPOPへ接続できました。 [root@XXXX home]# telnet localhost 110 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. +OK Dovecot ready. USER info +OK PASS XXXXX +OK Logged in. LIST +OK 18 messages: 1 1807 ..... 18 1072 . QUIT +OK Logging out. Connection closed by foreign host.

  • 外部(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

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

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