postfix smtp經常報錯,請幫忙看看。
postfix使用中經常會出現客戶端發送不出郵件的情況,提示錯誤為 smtp server reply: 451 4.3.0 Error: queue file write error,不知何故。
使用郵件系統為ExtMail-Solution-Linux-0.1.tar.gz中所有軟體,postfix版本為postfix-2.3.20050716-1hzq.i386.rpm
authdaemon數我已經開到了 50
main.cf中
default_process_limit = 600
smtpd_timeout = 1200s
smtpd_client_connection_count_limit = 1000
# postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
default_process_limit = 600
html_directory = /usr/share/doc/postfix-2.3.20050716/html
mail_name = Postfix
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 20480000
mydestination = $mynetworks $myhostname
myhostname = email.xx.com.cn
mynetworks = 127.0.0.1
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
queue_minfree = 819200000
readme_directory = /usr/share/doc/postfix-2.3.20050716/README_FILES
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_client_connection_count_limit = 1000
smtpd_error_sleep_time = 0s
smtpd_helo_restrictions = permit_mynetworks,reject_invalid_hostname,check_client_access mysql:/etc/postfix/mysql_virtual_client_access.cf
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated, reject_sender_login_mismatch,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unauth_destination,reject_unauth_pipelining,reject_invalid_hostname,permit
smtpd_restriction_classes = local_only
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sender_login_maps = hash:/etc/postfix/sender_login_maps
smtpd_sender_restrictions = check_recipient_access hash:/etc/postfix/local_recipient check_sender_access hash:/etc/postfix/sender
smtpd_timeout = 1200s
unknown_local_recipient_reject_code = 450
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = maildrop:
# cat /etc/postfix/master.cf |grep -v '#'
smtp inet n - n - - smtpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
-o fallback_relay=
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
maildrop unix - n n - - pipe
flags=DRhu user=vuser argv=maildrop -w 90 -d ${user}@${nexthop} ${recipient} ${user} ${extension} {nexthop}
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
cyrus unix - n n - - pipe
user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail.postfix ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
《解決方案》
wo 我遇到的問題和這位老兄一樣~~
併發連接超過默認值 50就報錯「Temporary lookup failure」 「Server error:451 4.3.0 Error: queue file write error」
是什麼原因導致的呢!我的postfix是2.2.6版本
《解決方案》
完整的錯誤日誌貼上來吧
《解決方案》
發現問題 瓶頸竟然是在資料庫上
default_destination_concurrency_limit = 500
default_process_limit = 1000
smtpd_client_connection_count_limit = 500
在這個配置下 增加資料庫 max_connections = 2000 (默認50)
問題解決
《解決方案》
原帖由 cqj1314 於 2009-1-13 13:16 發表 http://bbs.chinaunix.net/images/common/back.gif
發現問題 瓶頸竟然是在資料庫上
default_destination_concurrency_limit = 500
default_process_limit = 1000
smtpd_client_connection_count_limit = 500
在這個配置下 增加資料庫 max_connecti ...
你使用了mysql
淡然不排除mysql的可能性
《解決方案》
原帖由 cqj1314 於 2009-1-13 13:16 發表 http://bbs.chinaunix.net/images/common/back.gif
發現問題 瓶頸竟然是在資料庫上
default_destination_concurrency_limit = 500
default_process_limit = 1000
smtpd_client_connection_count_limit = 500
在這個配置下 增加資料庫 max_connecti ...
用得了這麼多?
我的mysql默認是100
《解決方案》
你的郵件活躍用戶量是多少?
《解決方案》
smtp server reply: 451 4.3.0 Error: queue file write error
queue file 寫錯誤,queue 所在的分區有沒有快滿?