はじめての自宅サーバ構築 - 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.11 )
日時: 2012/02/12 09:11
名前: stranger
参照: http://ja.528p.com/

>それでも送受信できませんね。
エラー内容は?
メンテ
 Re: postfixでメールの送受信が出来ません。 ( No.12 )
日時: 2012/02/12 10:42
名前: 水瀬

Feb 12 10:33:56 centos6 postfix/postfix-script[3553]: starting the Postfix mail system
Feb 12 10:33:56 centos6 postfix/master[3554]: daemon started -- version 2.8.8, configuration /etc/postfix
Feb 12 10:35:13 centos6 postfix/postscreen[3602]: CONNECT from [119.231.239.181]:63876
Feb 12 10:35:14 centos6 postfix/postscreen[3602]: PASS OLD [119.231.239.181]:63876
Feb 12 10:35:14 centos6 postfix/smtpd[3604]: connect from 119-231-239-181f1.osk3.eonet.ne.jp[119.231.239.181]
Feb 12 10:36:19 centos6 postfix/smtpd[3604]: NOQUEUE: reject: RCPT from 119-231-239-181f1.osk3.eonet.ne.jp[119.231.239.181]: 450 4.7.1 <sample>: Helo command rejected: Host not found; from=<info@sample.jp> to=<sample@gaia.eonet.ne.jp> proto=ESMTP helo=<sample>
Feb 12 10:36:22 centos6 postfix/smtpd[3604]: disconnect from 119-231-239-181f1.osk3.eonet.ne.jp[119.231.239.181]

自宅サーバーからISPへ送信した時のログになります。
メンテ
 Re: postfixでメールの送受信が出来ません。 ( No.13 )
日時: 2012/02/12 13:38
名前: stranger
参照: http://ja.528p.com/

450 4.7.1 <sample>: Helo command rejected: Host not found; from=<info@sample.jp> to=<sample@gaia.eonet.ne.jp> proto=ESMTP helo=<sample>

helo=<sample>の部分が怪しい
グローバルでDNS正引きがうまくいっていないとか
<sample>の部分が間違って設定されるとか

smtpd_helo_restrictions = permit_mynetworks,    reject_invalid_helo_hostname,reject_unknown_helo_hostname
で引っかかると思う

参考サイト
http://linux.kororo.jp/cont/server/postfix_security.php



メンテ

Page:  [1] [2] [3]

■ その他

ページ先頭へ

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