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

上記の設定でpostfixが起動できていますか

postfixのバージョンによりサポートしていない機能がありますが
自分で調査されていますか
rpmパッケージでは組み込まれていない機能もあります

postscreenは2.8以上のサポートだと思いますけど?
dovecot-saslはCentOSのpostfixでは組み込まれていないと思いますけど?

私のサイトではpostfixのバージョンを表記していますが
自分の使っているpostfixにあった説明がされているサイトを参考にしてください


メンテ
 Re: postfixでメールの送受信が出来ません。 ( No.2 )
日時: 2012/02/10 22:07
名前: 水瀬

smtpd_sasl_type = dovecot
こちらは削除しました。

それでも状況は変わりませんね。

postfixは2.8.8です。
メンテ
 Re: postfixでメールの送受信が出来ません。 ( No.3 )
日時: 2012/02/11 09:44
名前: stranger
参照: http://ja.528p.com/

postfixの起動はできているのですよね
送信テストをしたあとのmaillogの内容にエラーがでていませんか
メンテ
 Re: postfixでメールの送受信が出来ません。 ( No.4 )
日時: 2012/02/11 11:15
名前: 水瀬

Feb 11 11:11:15 centos6 postfix/postscreen[5100]: CONNECT from [192.168.0.11]:1884
Feb 11 11:11:15 centos6 postfix/postscreen[5100]: WHITELISTED [192.168.0.11]:1884
Feb 11 11:11:38 centos6 postfix/tlsmgr[5235]: warning: request to update table sdbm:/etc/postfix/smtpd_scache in non-postfix directory /etc/postfix
Feb 11 11:11:38 centos6 postfix/tlsmgr[5235]: warning: redirecting the request to postfix-owned data_directory /var/lib/postfix
Feb 11 11:11:38 centos6 postfix/tlsmgr[5235]: fatal: unsupported dictionary type: sdbm
Feb 11 11:11:39 centos6 postfix/master[5087]: warning: process /usr/libexec/postfix/tlsmgr pid 5235 exit status 1
Feb 11 11:11:39 centos6 postfix/master[5087]: warning: /usr/libexec/postfix/tlsmgr: bad command startup -- throttling
Feb 11 11:12:39 centos6 postfix/tlsmgr[5248]: warning: request to update table sdbm:/etc/postfix/smtpd_scache in non-postfix directory /etc/postfix
Feb 11 11:12:39 centos6 postfix/tlsmgr[5248]: warning: redirecting the request to postfix-owned data_directory /var/lib/postfix
Feb 11 11:12:39 centos6 postfix/tlsmgr[5248]: fatal: unsupported dictionary type: sdbm
Feb 11 11:12:40 centos6 postfix/master[5087]: warning: process /usr/libexec/postfix/tlsmgr pid 5248 exit status 1
Feb 11 11:12:40 centos6 postfix/master[5087]: warning: /usr/libexec/postfix/tlsmgr: bad command startup -- throttling
Feb 11 11:12:55 centos6 postfix/postscreen[5100]: warning: timeout sending connection to service private/smtpd

こんな感じのログになっています。
メンテ
 Re: postfixでメールの送受信が出来ません。 ( No.5 )
日時: 2012/02/11 11:51
名前: stranger
参照: http://ja.528p.com/

posfconf -a
でSASL のサーバpluginタイプを表示します

失礼しました
CentOS6.2のpostfixは cyrusもdovecotもサポートしているようです

cyrusを使うのであれば cyrus-saslの設定
dovecotを使うのであれば dovecot-saslの設定をしてください
dovecot-saslはdovecot側での設定も必要です

postconf -m
でbtreeが表示されることを確認

smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scache
にしてpostfixを再起動

maillogをみてクリアできたら、次のエラーの対策を行います
メンテ

Page:  [1] [2] [3]

■ その他

ページ先頭へ

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