歡迎您光臨本站 註冊首頁

postfix 發送接收問題

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

postfix 發送接收問題

我用的是postfix+mysql +postfixadmin+squir域為young.com
啟動成功后,用outlook新建用戶user1測試登陸,和發送正常,但是我把信發出去后,就是到不了目的的,比如user1@youg.com發送給自己,outlook顯示信已經發送出去,但是我的收件箱就是沒有,發現/var/spool/mqueue有一些沒有發出去的內容,這些目的地址比如user1@young.com本該接收得到的
下面是一些日誌文件或者配置文件

/var/log/maillog
Apr 15 06:38:42 localhost dovecot: pop3-login: Login: user=<user2@young.com>, method=PLAIN, rip=192.168.0.1, lip=192.168.0.35
Apr 15 06:38:43 localhost dovecot: POP3(user2@young.com): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Apr 15 06:38:43 localhost postfix/smtpd: disconnect from unknown
Apr 15 06:38:44 localhost dovecot: pop3-login: Login: user=<user2@young.com>, method=PLAIN, rip=192.168.0.1, lip=192.168.0.35
Apr 15 06:38:45 localhost dovecot: POP3(user2@young.com): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Apr 15 06:39:18 localhost dovecot: pop3-login: Login: user=<user2@young.com>, method=PLAIN, rip=192.168.0.1, lip=192.168.0.35
Apr 15 06:39:18 localhost dovecot: POP3(user2@young.com): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Apr 15 06:39:20 localhost dovecot: pop3-login: Login: user=<user2@young.com>, method=PLAIN, rip=192.168.0.1, lip=192.168.0.35
Apr 15 06:39:21 localhost dovecot: POP3(user2@young.com): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Apr 15 07:34:17 localhost postfix/smtpd: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Apr 15 07:34:17 localhost postfix/smtpd: connect from localhost.localdomain
Apr 15 07:34:18 localhost postfix/smtpd: 284A730695: client=localhost.localdomain
Apr 15 07:34:18 localhost postfix/cleanup: 284A730695: message-id=<20080414233418.284A730695@mail.young.com>
Apr 15 07:34:18 localhost postfix/smtpd: disconnect from localhost.localdomain
Apr 15 07:34:18 localhost postfix/qmgr: 284A730695: from=<admin@young.com>, size=498, nrcpt=1 (queue active)
Apr 15 07:34:18 localhost postfix/qmgr: 284A730695: to=<user2@young.com>, relay=none, delay=0.21, delays=0.16/0.05/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1: Connection refused)




/etc/dovecot.conf
base_dir=/var/run/dovecot
protocols=imap pop3
listen=*
disable_plaintext_auth = no
ssl_disable = yes
mail_location = maildir:/var/spool/mail/%d/%n

auth default {
        mechanisms = PLAIN LOGIN CRAM-MD5 DIGEST-MD5
        passdb sql {
                args = /etc/dovecot-mysql.conf
        }
        userdb sql {
                args = /etc/dovecot-mysql.conf
        }
        socket listen {
                client {
                        path = /var/run/dovecot/auth-client
                        mode = 0660
                        user = postfix
                        group = postfix
                }
        }
}
first_valid_uid = 89





main.cf

myhostname = mail.young.com
mydomain = young.com
myorigin = $mydomain
mydestination = $myhostname localhost localhost.$mydomain
mynetworks = 192.168.0.0/24, 127.0.0.0/8
inet_interfaces = all
#=====================Vritual Mailbox settings=========================
virtual_minimum_uid = 88
virtual_mailbox_base = /var/spool/mail
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_uid_maps = static:89
virtual_gid_maps = static:89
virtual_transport = virtual
maildrop_destination_recipient_limit = 1
maildrop_destination_concurrency_limit = 1
#====================QUOTA========================
message_size_limit = 52428800
mailbox_size_limit = 209715200
virtual_mailbox_limit = 209715200
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
virtual_overquota_bounce = yes
#====================SASL========================
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname,reject_u
nknown_sender_domain,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_pipelining,rejec
t_unauth_destination,permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = /var/run/dovecot/auth-client
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sasl_application_name = smtpd
smtpd_banner=$myhostname ESMTP "Version not Available"

readme_directory = no
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
html_directory = no
setgid_group = postdrop
command_directory = /usr/sbin
manpage_directory = /usr/local/man
daemon_directory = /usr/libexec/postfix
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
queue_directory = /var/spool/postfix
mail_owner = postfix

#============================content filter============================
soft_bounce=yes
content_filter = smtp-amavis::10024

[ 本帖最後由 young1986 於 2008-4-14 23:35 編輯 ]
《解決方案》

回復 #1 young1986 的帖子

top


我也遇到同樣的問題。

錯誤:
delivery temporarily suspended: conversation with  timed out while sending message body

大家都來頂啊,期待高手的出現。
《解決方案》

回復 #1 young1986 的帖子

top
《解決方案》

Apr 15 07:34:18 localhost postfix/qmgr: 284A730695: to=<user2@young.com>, relay=none, delay=0.21, delays=0.16/0.05/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1: Connection refused)

你是不是把Dovecot的日誌獨立出去了,看一下它的日誌,然後把MySQL的日誌做出來看是否正常。
《解決方案》

你的young.com是虛擬域名吧??你的DNS伺服器解析這個域名了嗎?
《解決方案》

呵呵!路過哦!
《解決方案》

根據這行信息來看,delivery temporarily suspended: connect to 127.0.0.1: Connection refused。
說明postfix和clamd之間的通信通道有問題。postfix收到郵件后,無法把郵件送到clamd進行過來,因此就無法收郵件。
你重啟一下amavisd、clamd,然後再重發一下郵件列隊。參見http://www.hetlife.com/delivery-temporarily-suspended-connect-to-127-0-0-1127-0-0-1-connection-refused.html
《解決方案》

delivery temporarily suspended: connect to 127.0.0.1: Connection refused

是不是少了埠號?

[火星人 ] postfix 發送接收問題已經有854次圍觀

http://coctec.com/docs/service/show-post-17638.html