歡迎您光臨本站 註冊首頁

virtual_mailbox:postfix/smtp[781]:status=bounced (Host or domain name not found

/etc/postfix/main.cf:
===================================
myhostname = opensolaris.kq.cn
mydomain = kq.cn
myorigin = kq.cn
inet_interfaces = all
mydestination =
virtual_mailbox_domains = $myhostname localhost.$mydomain
virtual_transport = virtual
virtual_mailbox_base = /var/mail/vhosts
virtual_mailbox_maps = dbm:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000

mynetworks = 192.168.0.0/24

alias_maps = dbm:/etc/aliases
alias_database = dbm:/etc/aliases


==================================


/etc/postfix/vmailbox:
================================
test1@kq.cn test1
test2@kq.cn test2
================================

# touch /var/mail/vhosts/test1
# chown 5000:5000 /var/mail/vhosts/test1
# touch /var/mail/vhosts/test2
# chown 5000:5000 /var/mail/vhosts/test2
# postmap dbm:/etc/postfix/vmailbox
# telnet localhost 25
>mail from:test1@kq.cn
>rcpt to:test2@kq.cn
>data
>123412341234
>.
>quit

/var/log/syslog:
===========================================================================
Apr  1 11:44:47 opensolaris postfix/smtpd: 28652215A2: client=localhost
Apr  1 11:45:07 opensolaris postfix/cleanup: 28652215A2: message-id=<20110401034447.28652215A2@opensolaris.kq.cn>
Apr  1 11:45:08 opensolaris postfix/qmgr: 28652215A2: from=<test1@kq.cn>, size=332, nrcpt=2 (queue active)
Apr  1 11:45:08 opensolaris postfix/smtp: 28652215A2: to=<test2@kq.cn>, relay=none, delay=35, delays=35/0.14/0.28/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=kq.cn type=A: Host found but no data record of requested type)
《解決方案》

本帖最後由 nullbert 於 2011-04-01 15:53 編輯

virtual_mailbox_domains = $mydomain
另外,
groupadd -g 5000 vmail
useradd -u 5000 -g vmail -s /sbin/nologin -d /dev/null vmail

chown 5000:5000 /var/mail/vhosts

現在好了!

參考資料:http://www.extmail.org/forum/thread-2518-1-1.html  redhat4.0up2+postfix+dovecot(源碼安裝) 實現虛擬用戶,SMTP認證,POP3
《解決方案》

支持樓主把問題解決並回復的做法!

從問題看,樓主就是沒把虛擬域加到配置里,所以postfix會認為是外域從而解析這個地址,但dns沒設置或解析不到,所以出現問題!

支持!

[火星人 ] virtual_mailbox:postfix/smtp[781]:status=bounced (Host or domain name not found已經有959次圍觀

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