はじめての自宅サーバ構築 - Fedora/CentOS -
Last Update 2018/05/30
[ 更新履歴 ] [ サイト マップ ] [ 質問掲示板 ] [ 雑談掲示板 ] [ リンク ]
トップ >> 質問掲示板

 このスレッドはクローズされています。記事の閲覧のみとなります。

 postfixでメールの送受信が出来ません。
日時: 2012/02/10 14:54
名前: 水瀬

postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
body_checks = regexp:/etc/postfix/body_checks
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
disable_vrfy_command = yes
header_checks = regexp:/etc/postfix/header_checks
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_size_limit = 31457280
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
message_size_limit = 1024000
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = sample.jp
myhostname = mail.sample.jp
mynetworks = 192.168.0.0/24, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
postscreen_access_list = permit_mynetworks,    cidr:/etc/postfix/postscreen_access
postscreen_blacklist_action = drop
postscreen_dnsbl_action = enforce
postscreen_dnsbl_sites = all.rbl.jp=127.0.0.[2;4],    zen.spamhaus.org=127.0.0.[2..7;10;11]
postscreen_greet_action = enforce
queue_directory = /var/spool/postfix
readme_directory = no
relay_domains = $mydestination
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP
smtpd_client_restrictions = permit_mynetworks,    check_client_access regexp:/etc/postfix/white-list.txt,    check_client_access regexp:/etc/postfix/tarpit_client,    reject_unknown_client_hostname
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,    reject_invalid_helo_hostname,reject_unknown_helo_hostname
smtpd_recipient_restrictions = permit_mynetworks,    permit_sasl_authenticated,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_mynetworks,    check_sender_access hash:/etc/postfix/access,    reject_non_fqdn_sender,reject_unknown_sender_domain
smtpd_tls_cert_file = /etc/postfix/server.crt
smtpd_tls_key_file = /etc/postfix/server.key
smtpd_tls_loglevel = 1
smtpd_tls_session_cache_database = sdbm:/etc/postfix/smtpd_scache
smtpd_use_tls = yes
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual

cat -v main.cfの結果も^Mは含まれて居ませんでした。
smtpd_tls_session_cache_database = sdbm:/etc/postfix/smtpd_scache
smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scache
双方を試したのですがダメでした。
メンテ

Page:  [1] [2] [3]

■ コンテンツ関連情報

 Re: postfixでメールの送受信が出来ません。 ( No.6 )
日時: 2012/02/11 15:23
名前: 水瀬

postconf -a
cyrus
dovecot

postconf -m
btree
cidr
environ
hash
internal
ldap
nis
pcre
proxy
regexp
static
tcp
texthash
unix

maillog
Feb 11 15:21:06 centos6 postfix/postfix-script[31878]: stopping the Postfix mail system
Feb 11 15:21:06 centos6 postfix/master[31733]: terminating on signal 15
Feb 11 15:21:06 centos6 postfix/postfix-script[31954]: starting the Postfix mail system
Feb 11 15:21:06 centos6 postfix/master[31955]: daemon started -- version 2.8.8, configuration /etc/postfix
Feb 11 15:21:16 centos6 postfix/postscreen[31980]: CONNECT from [203.140.81.46]:33989
Feb 11 15:21:22 centos6 postfix/postscreen[31980]: PASS OLD [203.140.81.46]:33989
Feb 11 15:21:23 centos6 postfix/smtpd[31990]: connect from smtp-out07.eonet.ne.jp[203.140.81.46]
メンテ
 Re: postfixでメールの送受信が出来ません。 ( No.7 )
日時: 2012/02/11 16:02
名前: stranger
参照: http://ja.528p.com/

ローカルで送信された場合のmaillogは?
外部へ送信された場合のmaillogは?
信頼される外部のメールサーバから送信された場合のmaillogは?
それらを見ながら、設定を見直して下さい

postfixが起動しているようなので
設定ファイルだけ見せられても、判断のしようがありませんので
悪しからず
メンテ
 Re: postfixでメールの送受信が出来ません。 ( No.8 )
日時: 2012/02/11 16:51
名前: 水瀬

// ここからローカル内
Feb 11 16:32:00 centos6 postfix/postscreen[1663]: CONNECT from [192.168.0.11]:6793
Feb 11 16:32:00 centos6 postfix/postscreen[1663]: WHITELISTED [192.168.0.11]:6793
Feb 11 16:32:00 centos6 postfix/smtpd[1665]: connect from unknown[192.168.0.11]
Feb 11 16:32:00 centos6 postfix/smtpd[1665]: 64E8D5C00F6: client=unknown[192.168.0.11]
Feb 11 16:32:00 centos6 postfix/cleanup[1669]: 64E8D5C00F6: message-id=<7CF681378BC84594A9D888AC61CAB696@shun>
Feb 11 16:32:00 centos6 postfix/qmgr[31958]: 64E8D5C00F6: from=<info@sample.jp>, size=436, nrcpt=1 (queue active)
Feb 11 16:32:00 centos6 postfix/smtp[1670]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Feb 11 16:32:00 centos6 postfix/smtp[1670]: 64E8D5C00F6: to=<www@sample.jp>, orig_to=<info@sample.jp>, relay=none, delay=0.23, delays=0.22/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Feb 11 16:32:03 centos6 postfix/smtpd[1665]: disconnect from unknown[192.168.0.11]

// ここから外部
Feb 11 16:34:33 centos6 postfix/postscreen[1753]: CONNECT from [192.168.0.11]:6821
Feb 11 16:34:33 centos6 postfix/postscreen[1753]: WHITELISTED [192.168.0.11]:6821
Feb 11 16:34:33 centos6 postfix/smtpd[1755]: connect from unknown[192.168.0.11]
Feb 11 16:34:33 centos6 postfix/smtpd[1755]: CD27E5C00FA: client=unknown[192.168.0.11]
Feb 11 16:34:33 centos6 postfix/cleanup[1758]: CD27E5C00FA: message-id=<B4826BAA754A4626B0C52563E725D6D5@shun>
Feb 11 16:34:33 centos6 postfix/qmgr[31958]: CD27E5C00FA: from=<info@sample.jp>, size=439, nrcpt=1 (queue active)
Feb 11 16:34:33 centos6 postfix/smtp[1759]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Feb 11 16:34:34 centos6 postfix/smtp[1759]: CD27E5C00FA: to=<sample@my-sv.net>, relay=none, delay=0.15, delays=0.14/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Feb 11 16:34:36 centos6 postfix/smtpd[1755]: disconnect from unknown[192.168.0.11]

// ここからISPから送信した場合です
Feb 11 16:35:25 centos6 postfix/postscreen[1753]: CONNECT from [203.140.81.51]:39167
Feb 11 16:35:31 centos6 postfix/postscreen[1753]: PASS OLD [203.140.81.51]:39167
Feb 11 16:35:31 centos6 postfix/smtpd[1755]: connect from smtp-out04.eonet.ne.jp[203.140.81.51]
Feb 11 16:36:36 centos6 postfix/smtpd[1755]: B18015C00FE: client=smtp-out04.eonet.ne.jp[203.140.81.51]
Feb 11 16:36:36 centos6 postfix/cleanup[1816]: B18015C00FE: message-id=<E03D45FDFC564F7BA9FA3B7250FCE363@shun>
Feb 11 16:36:36 centos6 postfix/qmgr[31958]: B18015C00FE: from=<sample@gaia.eonet.ne.jp>, size=448, nrcpt=1 (queue active)
Feb 11 16:36:36 centos6 postfix/smtpd[1755]: disconnect from smtp-out04.eonet.ne.jp[203.140.81.51]
Feb 11 16:36:36 centos6 postfix/smtp[1818]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Feb 11 16:36:36 centos6 postfix/smtp[1818]: B18015C00FE: to=<www@sample.jp>, orig_to=<info@sample.jp>, relay=none, delay=65, delays=65/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Feb 11 16:39:56 centos6 postfix/anvil[1772]: statistics: max connection rate 1/60s for (smtpd:203.140.81.51) at Feb 11 16:35:31
Feb 11 16:39:56 centos6 postfix/anvil[1772]: statistics: max connection count 1 for (smtpd:203.140.81.51) at Feb 11 16:35:31
Feb 11 16:39:56 centos6 postfix/anvil[1772]: statistics: max cache size 1 at Feb 11 16:35:31
Feb 11 16:41:06 centos6 postfix/qmgr[31958]: 64E8D5C00F6: from=<info@sample.jp>, size=436, nrcpt=1 (queue active)
Feb 11 16:41:06 centos6 postfix/qmgr[31958]: CD27E5C00FA: from=<info@sample.jp>, size=439, nrcpt=1 (queue active)
Feb 11 16:41:06 centos6 postfix/smtp[2034]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Feb 11 16:41:06 centos6 postfix/smtp[2035]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Feb 11 16:41:06 centos6 postfix/smtp[2034]: 64E8D5C00F6: to=<www@sample.jp>, orig_to=<info@sample.jp>, relay=none, delay=546, delays=546/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Feb 11 16:41:06 centos6 postfix/smtp[2035]: CD27E5C00FA: to=<sample@my-sv.net>, relay=none, delay=393, delays=393/0.04/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)

送信はされるのですが、送ったメールが届きません。
メンテ
 Re: postfixでメールの送受信が出来ません。 ( No.9 )
日時: 2012/02/11 17:52
名前: stranger
参照: http://ja.528p.com/

connect to 127.0.0.1[127.0.0.1]:10024: Connection refused

amavisの設定がうまくできていないのでは?
content_filter = smtp-amavis:[127.0.0.1]:10024
を一時的に無効にして
postfixをreloadして
再度テストしてみる

それからローカル及びグローバルでdnsの正引きできますか
postfixはIPアドレスの送信ではうまく機能しません
メンテ
 Re: postfixでメールの送受信が出来ません。 ( No.10 )
日時: 2012/02/11 21:09
名前: 水瀬

content_filter = smtp-amavis:[127.0.0.1]:10024
をコメントにして、dnsの正引きは確認しました。

それでも送受信できませんね。
メンテ

Page:  [1] [2] [3]

■ その他

ページ先頭へ

Copyright(©)2004-2018 First home server construction. All Right Reserved.