postfix收不到郵件,cu上找不到同樣的問題(已經自行解決)
maillog:
Jan 9 13:44:00 localhost postfix/qmgr: A960C33503BF: from=<gembler@foxmail.com>, size=1907, nrcpt=1 (queue active)
Jan 9 13:29:01 localhost postfix/pipe: 5DC9033503B2: to=<www@(不方便透露).com>, relay=dovecot, delay=58330, delays=58330/0.02/0/0.01, dsn=4.3.0, status=deferred (temporary failure)
----------------------------------------------------------------------------------
main.cf:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
inet_interfaces = all
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname, mysql:/etc/postfix/virtual_domains.mysql
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.3.15/samples
readme_directory = /usr/share/doc/postfix-2.3.15/README_FILES
mail_name = Postfix - by gembler
mail_version = 0.2
myhostname = mail.(不方便透露).com
mydomain = (不方便透露).com
relay_domains = $mydestination
mynetworks = 127.0.0.0/8, 172.16.96.0/28
receive_override_options = no_address_mappings
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_reject_unlisted_recipient = yes
delay_warning_time = 4h
policy_time_limit = 3600
home_mailbox = /Maildir/
maximal_backoff_time = 4000s
allow_min_user = no
mailbox_size_limit = 15728640
message_size_limit = 15728640
virtual_mailbox_limit_override = yes
virtual_overquota_bounce = yes
virtual_mailbox_limit_message = Sorry, the user's maildir has overdrawn the disk quota, please notice the user and try again later.
smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch, reject_sender_login_mismatch, reject_unauthenticated_sender_login_mismatch, permit_sasl_authenticated, permit_mynetworks
virtual_minimum_uid = 2000
virtual_uid_maps = static:2000
virtual_gid_maps = static:2000
virtual_mailbox_base = /home/vmail
check_sender_access = hash:/etc/postfix/sender_access
header_checks = pcre:/etc/postfix/header_checks
transport_maps = mysql:/etc/postfix/transport_maps.mysql
virtual_mailbox_maps = mysql:/etc/postfix/virtual_mailbox_maps.mysql
virtual_mailbox_limit_maps = mysql:/etc/postfix/virtual_mailbox_limit_maps.mysql
virtual_alias_maps = mysql:/etc/postfix/virtual_alias_maps.mysql
local_recipient_maps = $alias_maps $virtual_alias_maps $virtual_mailbox_maps
sender_bcc_maps = mysql:/etc/postfix/sender_bcc_maps_domain.mysql, mysql:/etc/postfix/sender_bcc_maps_user.mysql
recipient_bcc_maps = mysql:/etc/postfix/recipient_bcc_maps_domain.mysql, mysql:/etc/postfix/recipient_bcc_maps_user.mysql
smtpd_sender_login_maps = mysql:/etc/postfix/sender_login_maps.mysql
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
enable_original_recipient = no
smtpd_helo_required = yes
smtpd_sasl_authenticated_header = no
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated, check_helo_access pcre:/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, permit_sasl_authenticated, reject_unauth_destination, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname
smtpd_tls_security_level = may
smtpd_enforce_tls = no
smtpd_tls_loglevel = 0
smtpd_tls_key_file = /etc/postfix/certs/postfixKey.pem
smtpd_tls_cert_file = /etc/postfix/certs/postfixCert.pem
tls_random_source = dev:/dev/urandom
tls_daemon_random_source = dev:/dev/urandom
mailbox_command = /usr/local/libexec/dovecot/deliver
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
data_directory = /var/lib/postfix
-------------------------------------------------------------------------------
master.cf:
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
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
-o smtp_fallback_relay=
showq unix n - n - - showq
error unix - - n - - error
retry 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
smtps inet n - n - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -d ${recipient} -f ${sender}
127.0.0.1:10025 inet n - - - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_delay_reject=no
-o smtpd_client_restrictions=permit_mynetworks,reject
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks_style=host
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o smtpd_client_connection_count_limit=0
-o smtpd_client_connection_rate_limit=0
-o receive_override_options=no_header_body_checks,no_unknown_recipient_checks
------------------------------------------------------------------
能發不能收,已經痛苦了好幾天了...T_T
[ 本帖最後由 gembler 於 2009-1-9 17:47 編輯 ]
《解決方案》
貼下你的dovecot.conf 文件
《解決方案》
dovecot -n
# 1.1.7: /usr/local/etc/dovecot.conf
# OS: Linux 2.6.18-53.el5PAE i686 Red Hat Enterprise Linux Server release 5.1 (Tikanga)
log_path: /var/log/dovecot.log
protocols: pop3 pop3s imap imaps
disable_plaintext_auth: no
login_dir: /usr/local/var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
mail_uid: 2000
mail_gid: 2000
mail_location: maildir:/%Lh/%Ld/%Ln/:INDEX=/%Lh/%Ld/%Ln/
mail_debug: yes
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota zlib
mail_plugins(imap): quota imap_quota zlib
mail_plugins(pop3): quota zlib
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
mechanisms: plain login
default_realm: (不方便透露).com
user: vmail
verbose: yes
debug: yes
debug_passwords: yes
passdb:
driver: sql
args: /usr/local/etc/dovecot-mysql.conf
userdb:
driver: sql
args: /usr/local/etc/dovecot-mysql.conf
socket:
type: listen
client:
path: /var/spool/postfix/private/auth
mode: 432
user: postfix
group: postfix
master:
path: /var/run/dovecot/auth-master
mode: 432
user: vmail
group: vmail
plugin:
quota: maildir
quota_rule: *:storage=10M
《解決方案》
建議看下IRedMail關於Dovecot的安裝文檔。
https://www.iredmail.org/wiki/index.php?title=IRedMail-doc-0.2-Dovecot&variant=zh
幫MichaelBibby兄做下廣告。:mrgreen:
《解決方案》
已經解決了~~~
真慚愧~竟然忽略了sieve.log。
sieve.log:
deliver(root): Jan 09 13:54:00 Fatal: Plugin cmusieve not found from directory /usr/local/lib/dovecot/lda
其實是在dovecot.conf里有這麼一段:
# LDA: Local Deliver Agent
protocol lda {
postmaster_address = root
auth_socket_path = /var/run/dovecot/auth-master
mail_plugins = cmusieve quota
sieve_global_path = /home/vmail/.dovecot.sieve
log_path = /var/log/sieve.log
}
然後跑去
/usr/local/lib/dovecot/lda
看一下,確實沒有
lib90_cmusieve_plugin.a
lib90_cmusieve_plugin.la
lib90_cmusieve_plugin.so
唉··怪自己大意。
然後把 dovecot-sieve 裝上
就收到mail了。。。。。。 :)
謝謝大家!!
謝謝自己!!