このスレッドは未解決です(解決したらこちらで解決済にしてください)

日時: 2010/02/25 11:46
名前: ハゲおっちゃん
URL:
名前: ハゲおっちゃん
URL:
たすけてください
いろいろ試してみましたが
Postfix+Dovecot で外部へ送信できません
From: MAILER-DAEMON@自ドメイン (Mail Delivery System)から
Subject:Undelivered Mail Returned to Senderで
<自分宛@gmail.com>: host mail.mopera.net[220.159.212.119] said: 553
<自@ドメイン> is not allowed to use this service (in reply to MAIL FROM command)
となります
CentOS5.4 で postfix-2.3.3
ダイナミックドメイン
dyndns.com登録を Diceで通知
接続環境
Bフレッツ mopera U
そもそもmopera Uでは
ダイナミックドメインでのメールサーバは無理なのではと言う気がしてきました
moperaのhelpセンターは moperaのsmtpはmopera.net以外は通さないとの事でした
ここ3週間無駄な事を精一杯してきたのでしょうか
ISP moperaを使われていらっしゃる方おいででしょうか
おおよその履歴は以下です
LAN外からwindows メール クライアントSylpheedで 自分宛@gmailを送った経過です
* SMTPサーバ: 自ドメイン に接続中...
* SSL certificate of 自ドメイン previously accepted
[10:26:37] SMTP< 220 mail.自ドメイン ESMTP unknown
[10:26:37] ESMTP> EHLO pen4
[10:26:37] ESMTP< 250-mail.自ドメイン
[10:26:37] ESMTP< 250-PIPELINING
[10:26:37] ESMTP< 250-SIZE 10485760
[10:26:37] ESMTP< 250-VRFY
[10:26:37] ESMTP< 250-ETRN
[10:26:37] ESMTP< 250-AUTH LOGIN PLAIN
[10:26:37] ESMTP< 250-ENHANCEDSTATUSCODES
[10:26:37] ESMTP< 250-8BITMIME
[10:26:37] ESMTP< 250 DSN
[10:26:37] ESMTP> AUTH PLAIN ********
[10:26:37] ESMTP< 235 2.0.0 Authentication successful
[10:26:37] SMTP> MAIL FROM:<自ID@自ドメイン>
[10:26:37] SMTP< 250 2.1.0 Ok
[10:26:37] SMTP> RCPT TO:<自分宛@gmail.com>
[10:26:37] SMTP< 250 2.1.5 Ok
[10:26:37] SMTP> DATA
[10:26:37] SMTP< 354 End data with <CR><LF>.<CR><LF>
[10:26:37] SMTP> . (EOM)
[10:26:37] SMTP< 250 2.0.0 Ok: queued as E4B62CE60103
[10:26:37] SMTP> QUIT
[10:26:37] SMTP< 221 2.0.0 Bye
postfixログは
/var/log/maillog
Feb 24 18:22:24 サブ名 dovecot: pop3-login: Login: user=<自ID>, method=PLAIN, rip=::ffff:222.149.128.18, lip=::ffff:192.168.24.66, TLS
Feb 24 18:22:25 サブ名 dovecot: POP3(自ID): Disconnected: Logged out top=0/0, retr=0/0, del=0/16, size=73151
Feb 24 18:22:46 サブ名 postfix/smtp[31828]: connect to mail.mopera.ne.jp[220.159.212.114]: Connection timed out (port 587)
Feb 24 18:22:46 サブ名 postfix/smtp[31828]: F0874CE6011B: to=<自分宛@gmail.com>, relay=none, delay=30, delays=0.29/0.02/30/0, dsn=4.4.1, status=deferred (connect to mail.mopera.ne.jp[220.159.212.114]: Connection timed out)
Feb 24 18:25:36 サブ名 postfix/anvil[31825]: statistics: max connection rate 1/60s for (smtps:222.149.128.18) at Feb 24 18:22:15
Feb 24 18:25:36 サブ名 postfix/anvil[31825]: statistics: max connection count 1 for (smtps:222.149.128.18) at Feb 24 18:22:15
Feb 24 18:25:36 サブ名 postfix/anvil[31825]: statistics: max cache size 1 at Feb 24 18:22:15
以上の様な結果です
ポストフィックスは
# /usr/sbin/postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases, hash:/usr/local/mailman/data/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
message_size_limit = 10485760
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = 自ドメイン
myhostname = mail.自ドメイン
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 = [mail.mopera.net]:465
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_sasl_auth_enable = yes
smtp_sasl_mechanism_filter = 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
smtpd_tls_cert_file = /etc/pki/tls/certs/mail.pem
smtpd_tls_key_file = /etc/pki/tls/certs/mail.pem
smtpd_tls_session_cache_database = btree:/etc/postfix/smtpd_scache
smtpd_use_tls = yes
unknown_local_recipient_reject_code = 550
ポートスキャンは
# nmap localhost
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2010-02-25 10:45 JST
Interesting ports on 自ドメイン (127.0.0.1):
Not shown: 1661 closed ports
PORT STATE SERVICE
22/tcp open ssh
23/tcp open telnet
25/tcp open smtp
80/tcp open http
110/tcp open pop3
111/tcp open rpcbind
135/tcp filtered msrpc
137/tcp filtered netbios-ns
138/tcp filtered netbios-dgm
139/tcp filtered netbios-ssn
143/tcp open imap
443/tcp open https
445/tcp filtered microsoft-ds
465/tcp open smtps
618/tcp open unknown
631/tcp open ipp
993/tcp open imaps
995/tcp open pop3s
3306/tcp open mysql
ここしばらくで益々薄くなりました
何卒おたすけください

日時: 2010/02/25 22:51
名前: 中学生管理者
URL:
名前: 中学生管理者
URL:
素人なので適当に書きますがそのつもりで読んでください。
>Feb 24 18:22:46 サブ名 postfix/smtp[31828]: connect to mail.mopera.ne.jp[220.159.212.114]: Connection timed out (port 587)
これはmoperaのメールサーバへコネクションを取ろうとして出来ずにタイムアウトしてるのでは?
>Feb 24 18:22:46 サブ名 postfix/smtp[31828]: F0874CE6011B: to=<自分宛@gmail.com>, relay=none, delay=30, delays=0.29/0.02/30/0, dsn=4.4.1, status=deferred (connect to mail.mopera.ne.jp
relay=noneとなってるのはmoperaのメールサーバーにリレイしていないということでは?
ということでpostfixのrelay設定を見ると
>relayhost = [mail.mopera.net]:465
ポート番号が465になっていますが、moperaがOP25Bを実施しているなら
サブミッションポートの587にしないとダメかも。
>ここしばらくで益々薄くなりました
お大事に・・・(^^;)

日時: 2010/02/26 00:47
名前: ハゲおっちゃん
URL:
名前: ハゲおっちゃん
URL:
>素人なので適当に書きますがそのつもりで読んでください。
とんでもない お付き合い頂き恐縮です 藁にもすがる心地です
>これはmoperaのメールサーバへコネクションを取ろうとして出来ずにタイムアウトしてるのでは?
たしかに
2ちゃんねるに mopera・モペラ総合スレッド がありました
中学生管理者さん ご指摘のように タイムアウトでメールできず
の投稿たくさんあります
タイムアウトを回避する方法があるのでしょうか
>サブミッションポートの587にしないとダメかも。
587に変えてみましたが
やはり
Undelivered Mail Returned to Sender のようです
>お大事に・・・(^^;)
暖かいおコトバまで賜りまして
もうしばらくやる気を出してtrial and errorやってみます
以下 587 に変えた LAN内からのlogです
Feb 25 23:33:00 サブ名 postfix/master[3020]: reload configuration /etc/postfix
Feb 25 23:33:27 サブ名 dovecot: pop3-login: Login: user=<自ID>, method=PLAIN, rip=::ffff:192.168.24.65, lip=::ffff:192.168.24.66, TLS
Feb 25 23:33:28 サブ名 dovecot: POP3(自ID): Disconnected: Logged out top=0/0, retr=22/318736, del=0/22, size=318363
Feb 25 23:34:25 サブ名 dovecot: pop3-login: Login: user=<自ID>, method=PLAIN, rip=::ffff:192.168.24.65, lip=::ffff:192.168.24.66, TLS
Feb 25 23:34:25 サブ名 dovecot: POP3(自ID): Disconnected: Logged out top=0/0, retr=0/0, del=0/22, size=318363
Feb 25 23:34:25 サブ名 postfix/smtpd[9848]: connect from unknown[192.168.24.65]
Feb 25 23:34:26 サブ名 postfix/smtpd[9848]: 87B25CE60120: client=unknown[192.168.24.65], sasl_method=PLAIN, sasl_username=自ID@mail.自ドメイン
Feb 25 23:34:26 サブ名 postfix/cleanup[9852]: 87B25CE60120: message-id=<20100225233422.e2a93e9a.自ID@自ドメイン>
Feb 25 23:34:26 サブ名 postfix/qmgr[9820]: 87B25CE60120: from=<自ID@自ドメイン>, size=570, nrcpt=1 (queue active)
Feb 25 23:34:26 サブ名 postfix/smtpd[9848]: disconnect from unknown[192.168.24.65]
Feb 25 23:34:26 サブ名 postfix/smtp[9853]: warning: database /etc/postfix/authinfo.db is older than source file /etc/postfix/authinfo
Feb 25 23:34:26 サブ名 postfix/smtp[9853]: 87B25CE60120: to=<自分宛@gmail.com>, relay=mail.mopera.net[220.159.212.119]:587, delay=0.24, delays=0.09/0.02/0.09/0.03, dsn=5.0.0, status=bounced (host mail.mopera.net[220.159.212.119] said: 553 <自ID@自ドメイン> is not allowed to use this service (in reply to MAIL FROM command))
Feb 25 23:34:26 サブ名 postfix/cleanup[9852]: D0E7DCE60123: message-id=<20100225143426.D0E7DCE60123@mail.自ドメイン>
Feb 25 23:34:26 サブ名 postfix/bounce[9854]: 87B25CE60120: sender non-delivery notification: D0E7DCE60123
Feb 25 23:34:26 サブ名 postfix/qmgr[9820]: D0E7DCE60123: from=<>, size=2570, nrcpt=1 (queue active)
Feb 25 23:34:26 サブ名 postfix/qmgr[9820]: 87B25CE60120: removed
Feb 25 23:34:26 サブ名 postfix/local[9855]: D0E7DCE60123: to=<自ID@自ドメイン>, relay=local, delay=0.04, delays=0/0.01/0/0.02, dsn=2.0.0, status=sent (delivered to maildir)
Feb 25 23:34:26 サブ名 postfix/qmgr[9820]: D0E7DCE60123: removed
Feb 25 23:34:38 サブ名 dovecot: pop3-login: Login: user=<自ID>, method=PLAIN, rip=::ffff:192.168.24.65, lip=::ffff:192.168.24.66, TLS
Feb 25 23:34:38 サブ名 dovecot: POP3(自ID): Disconnected: Logged out top=0/0, retr=1/2677, del=0/23, size=321023
~

日時: 2010/03/04 09:17
名前: ハゲおっちゃん
URL:
名前: ハゲおっちゃん
URL:
結局 とりあえずmoperaはgive upしました
ayokoyamaさんの
http://d.hatena.ne.jp/ayokoyama/20061207/p1
にていねいな解説があり
GOOGLEのお世話になって postfix mailman 動いています
moperaでの対応があればお知らせ下さい
も しばらく 開帳させといてください
※質問を投稿後に自己解決された場合は、原因と行った対処を具体的に書き込み下さるよう、よろしくお願いします。