歡迎您光臨本站 註冊首頁

marion,您好!我現在遇到這樣的問題無法解決,請求幫助!

按照您http://marion.cublog.cn的「RHEL4上搭建基於postfix的全功能郵件伺服器」文章,我在redhat as4.0伺服器上構建了postfix的郵件系統,現在已經進行到 maildrop 安裝完畢。除了個別軟體安裝路徑和SYS_MAILDIR_BASE設置的路徑不同之外,完全按照您的步驟進行的。現在登陸web,添加了一個虛擬域(和實際的域名相同),並註冊了用戶后,可以給任何的郵箱發送郵件,對方也能正常接收到。但是始終無法接收別的郵箱發送過來的郵件。看了一下論壇上的回帖,我發現發過來的郵件被系統內的用戶接收了。而不是虛擬域註冊的郵箱。
現在註釋掉/etc/postfix/main.cf下的mydestination項,依然無法收到郵件。
下面把配置文件和日誌貼出來,請您幫忙找出問題的所在,謝謝!!!

日誌:
# more /var/log/messages
Oct 11 11:27:35 mail postfix/smtpd: sql_select option missing
Oct 11 11:27:35 mail postfix/smtpd: auxpropfunc error no mechanism available
Oct 11 11:27:46 mail postfix/smtpd: sql_select option missing
Oct 11 11:27:46 mail postfix/smtpd: auxpropfunc error no mechanism available
Oct 11 11:30:22 mail postfix/smtpd: sql_select option missing
Oct 11 11:30:22 mail postfix/smtpd: auxpropfunc error no mechanism available
Oct 11 11:32:38 mail postfix/smtpd: sql_select option missing
Oct 11 11:32:38 mail postfix/smtpd: auxpropfunc error no mechanism available
Oct 11 11:36:17 mail postfix/smtpd: sql_select option missing
Oct 11 11:36:17 mail postfix/smtpd: auxpropfunc error no mechanism available
Oct 11 11:44:20 mail postfix/smtpd: sql_select option missing
Oct 11 11:44:20 mail postfix/smtpd: auxpropfunc error no mechanism available
Oct 11 11:47:16 mail postfix/smtpd: sql_select option missing
Oct 11 11:47:16 mail postfix/smtpd: auxpropfunc error no mechanism available
Oct 11 11:57:09 mail postfix/smtpd: sql_select option missing
Oct 11 11:57:09 mail postfix/smtpd: auxpropfunc error no mechanism available
Oct 11 12:01:01 mail crond(pam_unix): session opened for user root by (uid=0)
Oct 11 12:01:01 mail crond(pam_unix): session closed for user root
Oct 11 12:03:40 mail postfix/smtpd: sql_select option missing
Oct 11 12:03:40 mail postfix/smtpd: auxpropfunc error no mechanism available
Oct 11 12:05:32 mail postfix/smtpd: sql_select option missing
Oct 11 12:05:32 mail postfix/smtpd: auxpropfunc error no mechanism available
Oct 11 12:17:15 mail postfix/smtpd: sql_select option missing
Oct 11 12:17:15 mail postfix/smtpd: auxpropfunc error no mechanism available

# more /var/log/maillog
Oct 11 11:26:10 mail postfix/anvil: statistics: max connection rate 1/60s for (smtp:219.134.120.24
) at Oct 11 11:22:46
Oct 11 11:26:10 mail postfix/anvil: statistics: max connection count 1 for (smtp:219.134.120.24) a
t Oct 11 11:22:46
Oct 11 11:26:10 mail postfix/anvil: statistics: max cache size 1 at Oct 11 11:22:46
Oct 11 11:27:35 mail postfix/smtpd: warning: dict_nis_init: NIS domain name not set - NIS lookups
disabled
Oct 11 11:27:40 mail postfix/smtpd: warning: 59.36.111.108: hostname 108.111.36.59.broad.dg.gd.dyn
amic.163data.com.cn verification failed: Name or service not known
Oct 11 11:27:40 mail postfix/smtpd: connect from unknown
Oct 11 11:27:41 mail postfix/qmgr: 75A3A26B1B: from=<asia_ji@yahoo.com.cn>, size=1320, nrcpt=1 (qu
eue active)
Oct 11 11:27:41 mail postfix/qmgr: 8230526B17: from=<asia_ji@yahoo.com.cn>, size=1307, nrcpt=1 (qu
eue active)
Oct 11 11:27:41 mail postfix/qmgr: 44A3D26B0E: from=<asia_ji@yahoo.com.cn>, size=1320, nrcpt=1 (qu
eue active)
Oct 11 11:27:41 mail maildrop: Temporary authentication failure.
Oct 11 11:27:41 mail maildrop: Temporary authentication failure.
Oct 11 11:27:41 mail postfix/pipe: 75A3A26B1B: to=<euro@dlfhw.cn>, relay=maildrop, delay=496, dela
ys=496/0.01/0/0.02, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/maildr
op: Temporary authentication failure. )
Oct 11 11:27:41 mail postfix/pipe: 8230526B17: to=<asia@dlfhw.cn>, relay=maildrop, delay=1095, del
ays=1095/0.02/0/0.02, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/mail
drop: Temporary authentication failure. )
Oct 11 11:27:41 mail maildrop: Temporary authentication failure.
Oct 11 11:27:41 mail postfix/pipe: 44A3D26B0E: to=<asia@dlfhw.cn>, relay=maildrop, delay=2379, del
ays=2379/0.02/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/mail
drop: Temporary authentication failure. )
Oct 11 11:27:46 mail postfix/smtpd: warning: numeric domain name in resource data of MX record for
dlfhw.com: 61.189.86.45
Oct 11 11:27:46 mail postfix/smtpd: NOQUEUE: reject: RCPT from unknown: 554 5.7.1 <
master@dlfhw.com>: Relay access denied; from=<d0769000@126.com> to=<master@dlfhw.com> proto=ESMTP helo=<
126.com>
Oct 11 11:27:46 mail postfix/smtpd: warning: dict_nis_init: NIS domain name not set - NIS lookups
disabled
Oct 11 11:27:46 mail postfix/smtpd: warning: 219.136.103.177: hostname 177.103.136.219.broad.gz.gd
.dynamic.163data.com.cn verification failed: Name or service not known
Oct 11 11:27:46 mail postfix/smtpd: connect from unknown
Oct 11 11:27:46 mail postfix/smtpd: disconnect from unknown
Oct 11 11:27:47 mail postfix/smtpd: NOQUEUE: reject: RCPT from unknown: 450 4.1.8
<dv1re65h7@df486.com>: Sender address rejected: Domain not found; from=<dv1re65h7@df486.com> to=<master
@dlfhw.com> proto=ESMTP helo=<df486.com>
Oct 11 11:27:48 mail postfix/smtpd: disconnect from unknown
Oct 11 11:30:22 mail postfix/smtpd: warning: dict_nis_init: NIS domain name not set - NIS lookups
disabled
Oct 11 11:30:22 mail postfix/smtpd: connect from web92013.mail.cnb.yahoo.com
Oct 11 11:30:22 mail postfix/smtpd: C307326B1F: client=web92013.mail.cnb.yahoo.com
Oct 11 11:30:22 mail postfix/cleanup: C307326B1F: message-id=<756667.1137.qm@web92013.mail.cnb.yah
oo.com>
Oct 11 11:30:22 mail postfix/qmgr: C307326B1F: from=<asia_ji@yahoo.com.cn>, size=1299, nrcpt=1 (qu
eue active)
Oct 11 11:30:22 mail maildrop: Temporary authentication failure.
Oct 11 11:30:22 mail postfix/pipe: C307326B1F: to=<euro@dlfhw.cn>, relay=maildrop, delay=0.22, del
ays=0.2/0.01/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/maild
rop: Temporary authentication failure. )
Oct 11 11:30:22 mail postfix/smtpd: disconnect from web92013.mail.cnb.yahoo.com
Oct 11 11:30:37 mail postfix/smtpd: connect from 133.201.204.121.board.xm.fj.dynamic.163data.com.c
n
Oct 11 11:30:41 mail postfix/smtpd: warning: numeric domain name in resource data of MX record for
dlfhw.com: 61.189.86.45
Oct 11 11:30:41 mail postfix/smtpd: NOQUEUE: reject: RCPT from 133.201.204.121.board.xm.fj.dynamic
.163data.com.cn: 554 5.7.1 <fhxx@dlfhw.com>: Relay access denied; from=<cchdxmj@yahoo.c
om.cn> to=<fhxx@dlfhw.com> proto=ESMTP helo=<hvixczce.gov>
Oct 11 11:30:41 mail postfix/smtpd: lost connection after RCPT from 133.201.204.121.board.xm.fj.dy
namic.163data.com.cn
Oct 11 11:30:41 mail postfix/smtpd: disconnect from 133.201.204.121.board.xm.fj.dynamic.163data.co
m.cn
Oct 11 11:32:38 mail postfix/smtpd: warning: dict_nis_init: NIS domain name not set - NIS lookups
disabled
Oct 11 11:32:41 mail postfix/smtpd: connect from web92003.mail.cnb.yahoo.com
Oct 11 11:32:41 mail postfix/smtpd: 2F61226B23: client=web92003.mail.cnb.yahoo.com
Oct 11 11:32:41 mail postfix/cleanup: 2F61226B23: message-id=<984579.99809.qm@web92003.mail.cnb.ya
hoo.com>
Oct 11 11:32:41 mail postfix/qmgr: 2F61226B23: from=<asia_ji@yahoo.com.cn>, size=1304, nrcpt=1 (qu
eue active)
Oct 11 11:32:41 mail maildrop: Temporary authentication failure.
Oct 11 11:32:41 mail postfix/pipe: 2F61226B23: to=<asia@dlfhw.cn>, relay=maildrop, delay=0.22, del
ays=0.2/0.01/0/0.02, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/maild
rop: Temporary authentication failure. )
Oct 11 11:32:41 mail postfix/smtpd: disconnect from web92003.mail.cnb.yahoo.com
Oct 11 11:33:22 mail postfix/smtpd: connect from 219-81-165-94.dynamic.tfn.net.tw
Oct 11 11:33:24 mail postfix/smtpd: NOQUEUE: reject: RCPT from 219-81-165-94.dynamic.tfn.net.tw[21
9.81.165.94]: 504 5.5.2 <61.189.86.45>: Helo command rejected: need fully-qualified hostname; from=<hhuy
yuirw@msa.hinet.net> to=<all9988@gmail.com> proto=SMTP helo=<61.189.86.45>
Oct 11 11:33:27 mail postfix/smtpd: lost connection after RCPT from 219-81-165-94.dynamic.tfn.net.
tw
Oct 11 11:33:27 mail postfix/smtpd: disconnect from 219-81-165-94.dynamic.tfn.net.tw[219.81.165.94
]
Oct 11 11:36:17 mail postfix/smtpd: warning: dict_nis_init: NIS domain name not set - NIS lookups
disabled
Oct 11 11:36:17 mail postfix/smtpd: connect from unknown
Oct 11 11:36:24 mail postfix/smtpd: NOQUEUE: reject: RCPT from unknown: 504 5.5.2
<admin888>: Helo command rejected: need fully-qualified hostname; from=<m5l7n8k4@microsoft.com> to=<mast
er@dlfhw.com> proto=SMTP helo=<admin888>
Oct 11 11:36:26 mail postfix/smtpd: disconnect from unknown
Oct 11 11:36:42 mail postfix/smtpd: warning: 218.20.0.141: hostname 141.0.20.218.broad.gz.gd.dynam
ic.163data.com.cn verification failed: Name or service not known
Oct 11 11:36:42 mail postfix/smtpd: connect from unknown
Oct 11 11:36:43 mail postfix/smtpd: NOQUEUE: reject: RCPT from unknown: 504 5.5.2 <b
ee>: Helo command rejected: need fully-qualified hostname; from=<good.star.1@gmail.com> to=<fhxx@dlfhw.c
om> proto=ESMTP helo=<bee>
Oct 11 11:36:58 mail postfix/smtpd: lost connection after DATA from unknown
Oct 11 11:36:58 mail postfix/smtpd: disconnect from unknown
Oct 11 11:36:58 mail postfix/smtpd: warning: 218.20.0.141: hostname 141.0.20.218.broad.gz.gd.dynam
ic.163data.com.cn verification failed: Name or service not known
Oct 11 11:36:58 mail postfix/smtpd: connect from unknown
Oct 11 11:36:59 mail postfix/smtpd: NOQUEUE: reject: RCPT from unknown: 504 5.5.2 <b
ee>: Helo command rejected: need fully-qualified hostname; from=<good.star.1@gmail.com> to=<fhxx@dlfhw.c
om> proto=ESMTP helo=<bee>
Oct 11 11:37:14 mail postfix/smtpd: lost connection after DATA from unknown
Oct 11 11:37:14 mail postfix/smtpd: disconnect from unknown
Oct 11 11:37:40 mail postfix/anvil: statistics: max connection rate 2/60s for (smtp:218.20.0.141)
at Oct 11 11:36:58
Oct 11 11:37:40 mail postfix/anvil: statistics: max connection count 1 for (smtp:59.36.111.10 at
Oct 11 11:27:40
Oct 11 11:37:40 mail postfix/anvil: statistics: max cache size 2 at Oct 11 11:27:46
Oct 11 11:37:41 mail postfix/qmgr: 75A3A26B1B: from=<asia_ji@yahoo.com.cn>, size=1320, nrcpt=1 (qu
eue active)
Oct 11 11:37:41 mail postfix/qmgr: 2F61226B23: from=<asia_ji@yahoo.com.cn>, size=1304, nrcpt=1 (qu
eue active)
Oct 11 11:37:41 mail postfix/qmgr: DE8D826B13: from=<asia_ji@yahoo.com.cn>, size=1325, nrcpt=1 (qu
eue active)
Oct 11 11:37:41 mail postfix/qmgr: C307326B1F: from=<asia_ji@yahoo.com.cn>, size=1299, nrcpt=1 (qu
eue active)
Oct 11 11:37:41 mail maildrop: Temporary authentication failure.
Oct 11 11:37:41 mail postfix/pipe: 75A3A26B1B: to=<euro@dlfhw.cn>, relay=maildrop, delay=1096, del
ays=1096/0.02/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/mail
drop: Temporary authentication failure. )
Oct 11 11:37:41 mail maildrop: Temporary authentication failure.
Oct 11 11:37:41 mail maildrop: Temporary authentication failure.
Oct 11 11:37:41 mail postfix/pipe: 2F61226B23: to=<asia@dlfhw.cn>, relay=maildrop, delay=300, dela
ys=300/0.01/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/maildr
op: Temporary authentication failure. )
Oct 11 11:37:41 mail postfix/pipe: C307326B1F: to=<euro@dlfhw.cn>, relay=maildrop, delay=439, dela
ys=439/0.02/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/maildr
op: Temporary authentication failure. )
Oct 11 11:37:41 mail maildrop: Temporary authentication failure.
Oct 11 11:37:41 mail postfix/pipe: DE8D826B13: to=<asia@dlfhw.cn>, relay=maildrop, delay=2346, del
ays=2345/0.03/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/mail
drop: Temporary authentication failure. )
Oct 11 11:38:36 mail postfix/smtpd: connect from unknown
Oct 11 11:38:39 mail postfix/smtpd: warning: numeric domain name in resource data of MX record for
dlfhw.com: 61.189.86.45
Oct 11 11:38:39 mail postfix/smtpd: NOQUEUE: reject: RCPT from unknown: 554 5.7.1 <
master@dlfhw.com>: Relay access denied; from=<dgjkl@kld.com> to=<master@dlfhw.com> proto=ESMTP helo=<kld
.com>
Oct 11 11:38:39 mail postfix/smtpd: disconnect from unknown
Oct 11 11:39:02 mail postfix/smtpd: connect from mx.mail.china.com
Oct 11 11:39:02 mail postfix/smtpd: warning: numeric domain name in resource data of MX record for
dlfhw.com: 61.189.86.45
Oct 11 11:39:02 mail postfix/smtpd: NOQUEUE: reject: RCPT from mx.mail.china.com:
554 5.7.1 <master@dlfhw.com>: Relay access denied; from=<iutyu67ht45r18010@mail.china.com> to=<master@dl
fhw.com> proto=SMTP helo=<mail.china.com>
Oct 11 11:39:03 mail postfix/smtpd: lost connection after RCPT from mx.mail.china.com[211.99.189.2
06]
Oct 11 11:39:03 mail postfix/smtpd: disconnect from mx.mail.china.com
Oct 11 11:42:23 mail postfix/anvil: statistics: max connection rate 1/60s for (smtp:122.198.29.62)
at Oct 11 11:38:36
Oct 11 11:42:23 mail postfix/anvil: statistics: max connection count 1 for (smtp:122.198.29.62) at
Oct 11 11:38:36
Oct 11 11:42:23 mail postfix/anvil: statistics: max cache size 2 at Oct 11 11:39:02
Oct 11 11:42:41 mail postfix/qmgr: 2F61226B23: from=<asia_ji@yahoo.com.cn>, size=1304, nrcpt=1 (qu
eue active)
Oct 11 11:42:41 mail maildrop: Temporary authentication failure.
Oct 11 11:42:41 mail postfix/pipe: 2F61226B23: to=<asia@dlfhw.cn>, relay=maildrop, delay=600, dela
ys=600/0.02/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/maildr
op: Temporary authentication failure. )
Oct 11 11:44:20 mail postfix/smtpd: warning: dict_nis_init: NIS domain name not set - NIS lookups
disabled
Oct 11 11:44:26 mail postfix/smtpd: connect from web92008.mail.cnb.yahoo.com
Oct 11 11:44:26 mail postfix/smtpd: 2B9B026B27: client=web92008.mail.cnb.yahoo.com
Oct 11 11:44:26 mail postfix/cleanup: 2B9B026B27: message-id=<213426.42753.qm@web92008.mail.cnb.ya
hoo.com>
Oct 11 11:44:26 mail postfix/qmgr: 2B9B026B27: from=<asia_ji@yahoo.com.cn>, size=1313, nrcpt=1 (qu
eue active)
Oct 11 11:44:26 mail maildrop: Temporary authentication failure.
Oct 11 11:44:26 mail postfix/pipe: 2B9B026B27: to=<asia@dlfhw.cn>, relay=maildrop, delay=0.23, del
ays=0.21/0.01/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/mail
drop: Temporary authentication failure. )
Oct 11 11:44:26 mail postfix/smtpd: disconnect from web92008.mail.cnb.yahoo.com
Oct 11 11:47:16 mail postfix/smtpd: warning: dict_nis_init: NIS domain name not set - NIS lookups
disabled
Oct 11 11:47:16 mail postfix/smtpd: connect from unknown
Oct 11 11:47:34 mail postfix/smtpd: warning: numeric domain name in resource data of MX record for
dlfhw.com: 61.189.86.45
Oct 11 11:47:34 mail postfix/smtpd: NOQUEUE: reject: RCPT from unknown: 554 5.7.1
<fhxx@dlfhw.com>: Relay access denied; from=<1234585@163.com> to=<fhxx@dlfhw.com> proto=ESMTP helo=<163.
com>
Oct 11 11:47:35 mail postfix/smtpd: disconnect from unknown
Oct 11 11:47:41 mail postfix/qmgr: 8230526B17: from=<asia_ji@yahoo.com.cn>, size=1307, nrcpt=1 (qu
eue active)
Oct 11 11:47:41 mail postfix/qmgr: C307326B1F: from=<asia_ji@yahoo.com.cn>, size=1299, nrcpt=1 (qu
eue active)
Oct 11 11:47:41 mail maildrop: Temporary authentication failure.
Oct 11 11:47:41 mail maildrop: Temporary authentication failure.
Oct 11 11:47:41 mail postfix/pipe: 8230526B17: to=<asia@dlfhw.cn>, relay=maildrop, delay=2295, del
ays=2295/0.01/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/mail
drop: Temporary authentication failure. )
Oct 11 11:47:41 mail postfix/pipe: C307326B1F: to=<euro@dlfhw.cn>, relay=maildrop, delay=1038, del
ays=1038/0.02/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/mail
drop: Temporary authentication failure. )
Oct 11 11:50:55 mail postfix/anvil: statistics: max connection rate 1/60s for (smtp:203.209.230.55
) at Oct 11 11:44:26
Oct 11 11:50:55 mail postfix/anvil: statistics: max connection count 1 for (smtp:203.209.230.55) a
t Oct 11 11:44:26
Oct 11 11:50:55 mail postfix/anvil: statistics: max cache size 1 at Oct 11 11:44:26
Oct 11 11:52:41 mail postfix/qmgr: 2B9B026B27: from=<asia_ji@yahoo.com.cn>, size=1313, nrcpt=1 (qu
eue active)
《解決方案》

接上面


Oct 11 11:52:41 mail postfix/qmgr: 2F61226B23: from=<asia_ji@yahoo.com.cn>, size=1304, nrcpt=1 (qu
eue active)
Oct 11 11:52:41 mail maildrop: Temporary authentication failure.
Oct 11 11:52:41 mail postfix/pipe: 2B9B026B27: to=<asia@dlfhw.cn>, relay=maildrop, delay=495, dela
ys=495/0.02/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/maildr
op: Temporary authentication failure. )
Oct 11 11:52:41 mail maildrop: Temporary authentication failure.
Oct 11 11:52:41 mail postfix/pipe: 2F61226B23: to=<asia@dlfhw.cn>, relay=maildrop, delay=1200, del
ays=1200/0.02/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/mail
drop: Temporary authentication failure. )
Oct 11 11:57:09 mail postfix/smtpd: warning: dict_nis_init: NIS domain name not set - NIS lookups
disabled
Oct 11 11:57:14 mail postfix/smtpd: warning: 219.133.229.152: hostname 152.229.133.219.broad.sz.gd
.dynamic.163data.com.cn verification failed: Name or service not known
Oct 11 11:57:14 mail postfix/smtpd: connect from unknown
Oct 11 11:57:16 mail postfix/smtpd: warning: numeric domain name in resource data of MX record for
dlfhw.com: 61.189.86.45
Oct 11 11:57:16 mail postfix/smtpd: NOQUEUE: reject: RCPT from unknown: 554 5.7.1
<master@dlfhw.com>: Relay access denied; from=<yttdfbvutdtrtrd@avl.com.cn> to=<master@dlfhw.com> proto=
ESMTP helo=<avl.com.cn>
Oct 11 11:57:16 mail postfix/smtpd: disconnect from unknown
Oct 11 11:57:41 mail postfix/qmgr: 75A3A26B1B: from=<asia_ji@yahoo.com.cn>, size=1320, nrcpt=1 (qu
eue active)
Oct 11 11:57:41 mail maildrop: Temporary authentication failure.
Oct 11 11:57:41 mail postfix/pipe: 75A3A26B1B: to=<euro@dlfhw.cn>, relay=maildrop, delay=2296, del
ays=2296/0.02/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/mail
drop: Temporary authentication failure. )
Oct 11 11:58:20 mail postfix/smtpd: warning: 121.35.197.57: hostname 57.197.35.121.broad.sz.gd.dyn
amic.163data.com.cn verification failed: Name or service not known
Oct 11 11:58:20 mail postfix/smtpd: connect from unknown
Oct 11 11:58:23 mail postfix/smtpd: warning: numeric domain name in resource data of MX record for
dlfhw.com: 61.189.86.45
Oct 11 11:58:23 mail postfix/smtpd: NOQUEUE: reject: RCPT from unknown: 554 5.7.1 <
master@dlfhw.com>: Relay access denied; from=<uuo@163.com> to=<master@dlfhw.com> proto=ESMTP helo=<163.c
om>
Oct 11 11:58:23 mail postfix/smtpd: disconnect from unknown
Oct 11 12:01:43 mail postfix/anvil: statistics: max connection rate 1/60s for (smtp:219.133.229.15
2) at Oct 11 11:57:14
Oct 11 12:01:43 mail postfix/anvil: statistics: max connection count 1 for (smtp:219.133.229.152)
at Oct 11 11:57:14
Oct 11 12:01:43 mail postfix/anvil: statistics: max cache size 1 at Oct 11 11:57:14
Oct 11 12:02:41 mail postfix/qmgr: 2B9B026B27: from=<asia_ji@yahoo.com.cn>, size=1313, nrcpt=1 (qu
eue active)
Oct 11 12:02:41 mail maildrop: Temporary authentication failure.
Oct 11 12:02:41 mail postfix/pipe: 2B9B026B27: to=<asia@dlfhw.cn>, relay=maildrop, delay=1095, del
ays=1095/0.02/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/mail
drop: Temporary authentication failure. )
Oct 11 12:03:40 mail postfix/smtpd: warning: dict_nis_init: NIS domain name not set - NIS lookups
disabled
Oct 11 12:03:40 mail postfix/smtpd: warning: 121.34.157.187: hostname 187.157.34.121.broad.sz.gd.d
ynamic.163data.com.cn verification failed: Name or service not known
Oct 11 12:03:40 mail postfix/smtpd: connect from unknown
Oct 11 12:03:47 mail postfix/smtpd: warning: numeric domain name in resource data of MX record for
dlfhw.com: 61.189.86.45
Oct 11 12:03:47 mail postfix/smtpd: NOQUEUE: reject: RCPT from unknown: 554 5.7.1
<fhxx@dlfhw.com>: Relay access denied; from=<yuananxiang@tom.com> to=<fhxx@dlfhw.com> proto=ESMTP helo=<
tom.com>
Oct 11 12:03:47 mail postfix/smtpd: disconnect from unknown
Oct 11 12:05:32 mail postfix/smtpd: warning: dict_nis_init: NIS domain name not set - NIS lookups
disabled
Oct 11 12:05:32 mail postfix/smtpd: connect from unknown
Oct 11 12:05:33 mail postfix/smtpd: warning: numeric domain name in resource data of MX record for
dlfhw.com: 61.189.86.45
Oct 11 12:05:33 mail postfix/smtpd: NOQUEUE: reject: RCPT from unknown: 554 5.7.1 <
master@dlfhw.com>: Relay access denied; from=<abc@99look.com> to=<master@dlfhw.com> proto=ESMTP helo=<99
look.com>
Oct 11 12:05:33 mail postfix/smtpd: disconnect from unknown
Oct 11 12:07:41 mail postfix/qmgr: 44A3D26B0E: from=<asia_ji@yahoo.com.cn>, size=1320, nrcpt=1 (qu
eue active)
Oct 11 12:07:41 mail postfix/qmgr: C307326B1F: from=<asia_ji@yahoo.com.cn>, size=1299, nrcpt=1 (qu
eue active)
Oct 11 12:07:41 mail maildrop: Temporary authentication failure.
Oct 11 12:07:41 mail maildrop: Temporary authentication failure.
Oct 11 12:07:41 mail postfix/pipe: 44A3D26B0E: to=<asia@dlfhw.cn>, relay=maildrop, delay=4779, del
ays=4779/0.01/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/mail
drop: Temporary authentication failure. )
Oct 11 12:07:41 mail postfix/pipe: C307326B1F: to=<euro@dlfhw.cn>, relay=maildrop, delay=2238, del
ays=2238/0.02/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/mail
drop: Temporary authentication failure. )
Oct 11 12:08:53 mail postfix/anvil: statistics: max connection rate 1/60s for (smtp:121.34.157.187
) at Oct 11 12:03:40
Oct 11 12:08:53 mail postfix/anvil: statistics: max connection count 1 for (smtp:121.34.157.187) a
t Oct 11 12:03:40
Oct 11 12:08:53 mail postfix/anvil: statistics: max cache size 1 at Oct 11 12:03:40
Oct 11 12:12:41 mail postfix/qmgr: 2F61226B23: from=<asia_ji@yahoo.com.cn>, size=1304, nrcpt=1 (qu
eue active)
Oct 11 12:12:41 mail maildrop: Temporary authentication failure.
Oct 11 12:12:41 mail postfix/pipe: 2F61226B23: to=<asia@dlfhw.cn>, relay=maildrop, delay=2400, del
ays=2400/0.02/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/mail
drop: Temporary authentication failure. )
Oct 11 12:17:15 mail postfix/smtpd: warning: dict_nis_init: NIS domain name not set - NIS lookups
disabled
Oct 11 12:17:15 mail postfix/smtpd: warning: 121.35.197.57: hostname 57.197.35.121.broad.sz.gd.dyn
amic.163data.com.cn verification failed: Name or service not known
Oct 11 12:17:15 mail postfix/smtpd: connect from unknown
Oct 11 12:17:25 mail postfix/smtpd: warning: numeric domain name in resource data of MX record for
dlfhw.com: 61.189.86.45
Oct 11 12:17:25 mail postfix/smtpd: NOQUEUE: reject: RCPT from unknown: 554 5.7.1 <
master@dlfhw.com>: Relay access denied; from=<uijl@126.com> to=<master@dlfhw.com> proto=ESMTP helo=<126.
com>
Oct 11 12:17:26 mail postfix/smtpd: disconnect from unknown
Oct 11 12:17:41 mail postfix/qmgr: DE8D826B13: from=<asia_ji@yahoo.com.cn>, size=1325, nrcpt=1 (qu
eue active)
Oct 11 12:17:41 mail maildrop: Temporary authentication failure.
Oct 11 12:17:41 mail postfix/pipe: DE8D826B13: to=<asia@dlfhw.cn>, relay=maildrop, delay=4745, del
ays=4745/0.01/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/mail
drop: Temporary authentication failure. )



配置文件:

main.cf:

broken_sasl_auth_clients = yes
command_directory = /usr/local/postfix/sbin
config_directory = /etc/postfix
daemon_directory = /usr/local/postfix/libexec
debug_peer_level = 2
html_directory = /chroot/www/postfix_html
mail_owner = postfix
mail_spool_directory = /chroot/mail
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/postfix/man
message_size_limit = 14336000
mydomain = dlfhw.cn
myhostname = mail.dlfhw.cn
mynetworks = 61.189.86.0/26, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_banner = Welcome to our $myhostname ESMTP,Warning: Version not Available!
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname,reject_unknown_sender_domain,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_pipelining,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:2525
virtual_mailbox_base = /chroot/mail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 20971520
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = maildrop
virtual_uid_maps = static:2525



/etc/postfix/mysql_virtual_alias_maps.cf
user = extmail
password = extmail
hosts = localhost
dbname = extmail
table = alias
select_field = goto
where_field = address


# more /etc/postfix/mysql_virtual_mailbox_limit_maps.cf
user = extmail
password = extmail
hosts = localhost
dbname = extmail
table = mailbox
select_field = quota
where_field = username


# more /etc/postfix/mysql_virtual_domains_maps.cf
user = extmail
password = extmail
hosts = localhost
dbname = extmail
table = domain
select_field = description
where_field = domain



# more /etc/postfix/mysql_virtual_mailbox_maps.cf
user = extmail
password = extmail
hosts = localhost
dbname = extmail
table = mailbox
select_field = maildir
where_field = username




# more /chroot/www/extsuite/extmail/webmail.cf
SYS_CONFIG = /chroot/www/extsuite/extmail/
SYS_LANGDIR = /chroot/www/extsuite/extmail/lang
SYS_TEMPLDIR = /chroot/www/extsuite/extmail/html
SYS_SHOW_WARN = 0
SYS_PERMIT_NOQUOTA = 1
SYS_SESS_DIR = /tmp/
SYS_LOG_ON = 1
SYS_LOG_TYPE = syslog
SYS_LOG_FILE = /var/log/extmail.log
SYS_CAPTCHA_ON = 1
SYS_CAPTCHA_KEY = r3s9b6a7
SYS_CAPTCHA_LEN = 6
SYS_SESS_TIMEOUT = 0
SYS_SESS_COOKIE_ONLY = 1
SYS_USER_PSIZE = 10
SYS_USER_SCREEN = auto
SYS_USER_LANG = zh_CN
SYS_USER_TEMPLATE = default
SYS_USER_CHARSET = utf-8
SYS_USER_TRYLOCAL = 1
SYS_USER_TIMEZONE = +0800
SYS_USER_CCSENT = 1
SYS_USER_SHOW_HTML = 1
SYS_USER_COMPOSE_HTML = 1
SYS_USER_CONV_LINK =1
SYS_USER_ADDR2ABOOK = 1
SYS_MESSAGE_SIZE_LIMIT = 20971520
SYS_MIN_PASS_LEN = 2
SYS_MFILTER_ON = 1
SYS_NETDISK_ON = 1
SYS_SHOW_SIGNUP = 1
SYS_DEBUG_ON = 1
SYS_AUTH_TYPE = mysql
SYS_MAILDIR_BASE = /chroot/mail
SYS_AUTH_SCHEMA = virtual
SYS_CRYPT_TYPE = md5crypt
SYS_MYSQL_USER = extmail
SYS_MYSQL_PASS = extmail
SYS_MYSQL_DB = extmail
SYS_MYSQL_HOST = localhost
SYS_MYSQL_SOCKET = /tmp/mysql.sock
SYS_MYSQL_TABLE = mailbox
SYS_MYSQL_ATTR_USERNAME = username
SYS_MYSQL_ATTR_DOMAIN = domain
SYS_MYSQL_ATTR_PASSWD = password
SYS_MYSQL_ATTR_CLEARPW = clearpwd
SYS_MYSQL_ATTR_QUOTA = quota
SYS_MYSQL_ATTR_NDQUOTA = netdiskquota
SYS_MYSQL_ATTR_HOME = homedir
SYS_MYSQL_ATTR_MAILDIR = maildir
SYS_MYSQL_ATTR_DISABLEWEBMAIL = disablewebmail
SYS_MYSQL_ATTR_DISABLENETDISK = disablenetdisk
SYS_MYSQL_ATTR_DISABLEPWDCHANGE = disablepwdchange
SYS_MYSQL_ATTR_ACTIVE = active
SYS_LDAP_BASE = o=extmailAccount,dc=example.com
SYS_LDAP_RDN = cn=Manager,dc=example.com
SYS_LDAP_PASS = secret
SYS_LDAP_HOST = localhost
SYS_LDAP_ATTR_USERNAME = mail
SYS_LDAP_ATTR_DOMAIN = virtualDomain
SYS_LDAP_ATTR_PASSWD = userPassword
SYS_LDAP_ATTR_CLEARPW = clearPassword
SYS_LDAP_ATTR_QUOTA = mailQuota
SYS_LDAP_ATTR_NDQUOTA = netdiskQuota
SYS_LDAP_ATTR_HOME = homeDirectory
SYS_LDAP_ATTR_MAILDIR = mailMessageStore
SYS_LDAP_ATTR_DISABLEWEBMAIL = disablewebmail
SYS_LDAP_ATTR_DISABLENETDISK = disablenetdisk
SYS_LDAP_ATTR_DISABLEPWDCHANGE = disablePasswdChange
SYS_LDAP_ATTR_ACTIVE = active
SYS_AUTHLIB_SOCKET = /chroot/courier-authlib/var/spool/authdaemon/socket
SYS_G_ABOOK_TYPE = file
SYS_G_ABOOK_LDAP_HOST = localhost
SYS_G_ABOOK_LDAP_BASE = ou=AddressBook,dc=example.com
SYS_G_ABOOK_LDAP_ROOTDN = cn=Manager,dc=example.com
SYS_G_ABOOK_LDAP_ROOTPW = secret
SYS_G_ABOOK_LDAP_FILTER = objectClass=OfficePerson
SYS_G_ABOOK_FILE_PATH = /chroot/www/extsuite/extmail/globabook.cf
SYS_G_ABOOK_FILE_LOCK = 1
SYS_G_ABOOK_FILE_CONVERT = 0
SYS_G_ABOOK_FILE_CHARSET = utf-8





# more /chroot/www/extsuite/extman/webman.cf
SYS_CONFIG = /chroot/www/extsuite/extman/
SYS_TEMPLDIR = /chroot/www/extsuite/extman/html
SYS_MAILDIR_BASE = /chroot/mail
SYS_SHOW_WARN = 0
SYS_SESS_DIR = /tmp/extman/
SYS_CAPTCHA_ON = 0
SYS_CAPTCHA_KEY = r3s9b6a7
SYS_CAPTCHA_LEN = 6
SYS_PSIZE = 10
SYS_TEMPLATE_NAME = default
SYS_DEFAULT_EXPIRE = 5y
SYS_GROUPMAIL_SENDER = postmaster@extmail.org
SYS_DEFAULT_SERVICES = webmail,smtpd,smtp,pop3,netdisk
SYS_ISP_MODE = no
SYS_DOMAIN_HASHDIR = yes
SYS_DOMAIN_HASHDIR_DEPTH = 2x2
SYS_USER_HASHDIR = yes
SYS_USER_HASHDIR_DEPTH = 2x2
SYS_MIN_UID = 500
SYS_MIN_GID = 100
SYS_DEFAULT_UID = 1000
SYS_DEFAULT_GID = 1000
SYS_QUOTA_MULTIPLIER = 1048576
SYS_QUOTA_TYPE = courier
SYS_DEFAULT_MAXQUOTA = 500
SYS_DEFAULT_MAXALIAS = 100
SYS_DEFAULT_MAXUSERS = 100
SYS_DEFAULT_MAXNDQUOTA = 500
SYS_USER_DEFAULT_QUOTA = 5
SYS_USER_DEFAULT_NDQUOTA = 5
SYS_USER_DEFAULT_EXPIRE = 1y
SYS_BACKEND_TYPE = mysql
SYS_CRYPT_TYPE = md5crypt
SYS_MYSQL_USER = webman
SYS_MYSQL_PASS = webman
SYS_MYSQL_DB = extmail
SYS_MYSQL_HOST = localhost
SYS_MYSQL_SOCKET = /tmp/mysql.sock
SYS_MYSQL_TABLE = manager
SYS_MYSQL_ATTR_USERNAME = username
SYS_MYSQL_ATTR_PASSWD = password
SYS_LDAP_BASE = dc=extmail.org
SYS_LDAP_RDN = cn=Manager,dc=extmail.org
SYS_LDAP_PASS = secret
SYS_LDAP_HOST = localhost
SYS_LDAP_ATTR_USERNAME = mail
SYS_LDAP_ATTR_PASSWD = userPassword
SYS_RRD_DATADIR = /var/lib
SYS_RRD_TMPDIR = /tmp/viewlog
SYS_RRD_QUEUE_ON = yes
《解決方案》

在接上面!!!


root@mail ~]# more /etc/authmysqlrc
##VERSION: $Id: authmysqlrc,v 1.19 2007/02/10 02:51:07 mrsam Exp $
#
# Copyright 2000-2007 Double Precision, Inc.  See COPYING for
# distribution information.
#
# Do not alter lines that begin with ##, they are used when upgrading
# this configuration.
#
# authmysqlrc created from authmysqlrc.dist by sysconftool
#
# DO NOT INSTALL THIS FILE with world read permissions.  This file
# might contain the MySQL admin password!
#
# Each line in this file must follow the following format:
#
# fieldvalue
#
# That is, the name of the field, followed by spaces or tabs, followed by
# field value.  Trailing spaces are prohibited.


##NAME: LOCATION:0
#
# The server name, userid, and password used to log in.

MYSQL_SERVER            localhost
MYSQL_USERNAME          extmail
MYSQL_PASSWORD          extmail

##NAME: SSLINFO:0
#
# The SSL information.
#
# To use SSL-encrypted connections, define the following variables (available
# in MySQL 4.0, or higher):
#
#
# MYSQL_SSL_KEY        /path/to/file
# MYSQL_SSL_CERT       /path/to/file
# MYSQL_SSL_CACERT     /path/to/file
# MYSQL_SSL_CAPATH     /path/to/file
# MYSQL_SSL_CIPHERS    ALL:!DES

##NAME: MYSQL_SOCKET:0
#
# MYSQL_SOCKET can be used with MySQL version 3.22 or later, it specifies the
# filesystem pipe used for the connection
#
MYSQL_SOCKET            /tmp/mysql.sock

##NAME: MYSQL_PORT:0
#
# MYSQL_PORT can be used with MySQL version 3.22 or later to specify a port to
# connect to.

MYSQL_PORT              3306

##NAME: MYSQL_OPT:0
#
# Leave MYSQL_OPT as 0, unless you know what you're doing.

MYSQL_OPT               0

##NAME: MYSQL_DATABASE:0
#
# The name of the MySQL database we will open:

MYSQL_DATABASE          extmail

##NAME: MYSQL_USER_TABLE:0
#
# The name of the table containing your user data.  See README.authmysqlrc
# for the required fields in this table.

MYSQL_USER_TABLE        mailbox

##NAME: MYSQL_CRYPT_PWFIELD:0
#
# Either MYSQL_CRYPT_PWFIELD or MYSQL_CLEAR_PWFIELD must be defined.  Both
# are OK too. crypted passwords go into MYSQL_CRYPT_PWFIELD, cleartext
# passwords go into MYSQL_CLEAR_PWFIELD.  Cleartext passwords allow
# CRAM-MD5 authentication to be implemented.

MYSQL_CRYPT_PWFIELD     password

##NAME: MYSQL_CLEAR_PWFIELD:0
#
#
# MYSQL_CLEAR_PWFIELD   clear

##NAME: MYSQL_DEFAULT_DOMAIN:0
#
# If DEFAULT_DOMAIN is defined, and someone tries to log in as 'user',
# we will look up 'user@DEFAULT_DOMAIN' instead.
#
#
# DEFAULT_DOMAIN                example.com

##NAME: MYSQL_UID_FIELD:0
#
# Other fields in the mysql table:
#
# MYSQL_UID_FIELD - contains the numerical userid of the account
#
MYSQL_UID_FIELD         '1001'

##NAME: MYSQL_GID_FIELD:0
#
# Numerical groupid of the account

MYSQL_GID_FIELD         '1001'

##NAME: MYSQL_LOGIN_FIELD:0
#
# The login id, default is id.  Basically the query is:
#
#  SELECT MYSQL_UID_FIELD, MYSQL_GID_FIELD, ... WHERE id='loginid'
#

MYSQL_LOGIN_FIELD       username

##NAME: MYSQL_HOME_FIELD:0
#

MYSQL_HOME_FIELD        concat('/chroot/mail',maildir)

##NAME: MYSQL_NAME_FIELD:0
#
# The user's name (optional)

MYSQL_NAME_FIELD        name

##NAME: MYSQL_MAILDIR_FIELD:0
#
# This is an optional field, and can be used to specify an arbitrary
# location of the maildir for the account, which normally defaults to
# $HOME/Maildir (where $HOME is read from MYSQL_HOME_FIELD).
#
# You still need to provide a MYSQL_HOME_FIELD, even if you uncomment this
# out.
#
MYSQL_MAILDIR_FIELD     contcat('/chroot/mail',maildir)

##NAME: MYSQL_DEFAULTDELIVERY:0
#
# Courier mail server only: optional field specifies custom mail delivery
# instructions for this account (if defined) -- essentially overrides
# DEFAULTDELIVERY from ${sysconfdir}/courierd
#
# MYSQL_DEFAULTDELIVERY defaultdelivery

##NAME: MYSQL_QUOTA_FIELD:0
#
# Define MYSQL_QUOTA_FIELD to be the name of the field that can optionally
# specify a maildir quota.  See README.maildirquota for more information
#
# MYSQL_QUOTA_FIELD     quota

##NAME: MYSQL_AUXOPTIONS:0
#
# Auxiliary options.  The MYSQL_AUXOPTIONS field should be a char field that
# contains a single string consisting of comma-separated "ATTRIBUTE=NAME"
# pairs.  These names are additional attributes that define various per-account
# "options", as given in INSTALL's description of the "Account OPTIONS"
# setting.
#
# MYSQL_AUXOPTIONS_FIELD        auxoptions
#
# You might want to try something like this, if you'd like to use a bunch
# of individual fields, instead of a single text blob:
#
# MYSQL_AUXOPTIONS_FIELD        CONCAT("disableimap=",disableimap,",disablepop3=",disablepop3,",disablew
ebmail=",disablewebmail,",sharedgroup=",sharedgroup)
#
# This will let you define fields called "disableimap", etc, with the end result
# being something that the OPTIONS parser understands.


##NAME: MYSQL_WHERE_CLAUSE:0
#
# This is optional, MYSQL_WHERE_CLAUSE can be basically set to an arbitrary
# fixed string that is appended to the WHERE clause of our query
#
# MYSQL_WHERE_CLAUSE    server='mailhost.example.com'

##NAME: MYSQL_SELECT_CLAUSE:0
#
# (EXPERIMENTAL)
# This is optional, MYSQL_SELECT_CLAUSE can be set when you have a database,
# which is structuraly different from proposed. The fixed string will
# be used to do a SELECT operation on database, which should return fields
# in order specified bellow:
#
# username, cryptpw, clearpw, uid, gid, home, maildir, quota, fullname, options
#
# The username field should include the domain (see example below).
#
# Enabling this option causes ignorance of any other field-related
# options, excluding default domain.
#
# There are two variables, which you can use. Substitution will be made
# for them, so you can put entered username (local part) and domain name
# in the right place of your query. These variables are:
#               $(local_part), $(domain), $(service)
#
# If a $(domain) is empty (not given by the remote user) the default domain
# name is used in its place.
#
# $(service) will expand out to the service being authenticated: imap, imaps,
# pop3 or pop3s.  Courier mail server only: service will also expand out to
# "courier", when searching for local mail account's location.  In this case,
# if the "maildir" field is not empty it will be used in place of
# DEFAULTDELIVERY.  Courier mail server will also use esmtp when doing
# authenticated ESMTP.
#
# This example is a little bit modified adaptation of vmail-sql
# database scheme:
#
# MYSQL_SELECT_CLAUSE   SELECT CONCAT(popbox.local_part, '@', popbox.domain_name),
\
#                       CONCAT('{MD5}', popbox.password_hash),          \
#                       popbox.clearpw,                                 \
#                       domain.uid,                                     \
#                       domain.gid,                                     \
#                       CONCAT(domain.path, '/', popbox.mbox_name),     \
#                       '',                                             \
#                       domain.quota,                                   \
#                       '',                                             \
#                       CONCAT("disableimap=",disableimap,",disablepop3=",    \
#                              disablepop3,",disablewebmail=",disablewebmail, \
#                              ",sharedgroup=",sharedgroup)             \
#                       FROM popbox, domain                             \
#                       WHERE popbox.local_part = '$(local_part)'       \
#                       AND popbox.domain_name = '$(domain)'            \
#                       AND popbox.domain_name = domain.domain_name


##NAME: MYSQL_ENUMERATE_CLAUSE:1
#
# {EXPERIMENTAL}
# Optional custom SQL query used to enumerate accounts for authenumerate,
# in order to compile a list of accounts for shared folders.  The query
# should return the following fields: name, uid, gid, homedir, maildir, options
#
# Example:
# MYSQL_ENUMERATE_CLAUSE        SELECT CONCAT(popbox.local_part, '@', popbox.domain_name),
        \
#                       domain.uid,                                     \
#                       domain.gid,                                     \
#                       CONCAT(domain.path, '/', popbox.mbox_name),     \
#                       '',                                             \
#                       CONCAT('sharedgroup=', sharedgroup)             \
#                       FROM popbox, domain                             \
#                       WHERE popbox.local_part = '$(local_part)'       \
#                       AND popbox.domain_name = '$(domain)'            \
#                       AND popbox.domain_name = domain.domain_name



##NAME: MYSQL_CHPASS_CLAUSE:0
#
# (EXPERIMENTAL)
# This is optional, MYSQL_CHPASS_CLAUSE can be set when you have a database,
# which is structuraly different from proposed. The fixed string will
# be used to do an UPDATE operation on database. In other words, it is
# used, when changing password.
#
# There are four variables, which you can use. Substitution will be made
# for them, so you can put entered username (local part) and domain name
# in the right place of your query. There variables are:
#       $(local_part) , $(domain) , $(newpass) , $(newpass_crypt)
#
# If a $(domain) is empty (not given by the remote user) the default domain
# name is used in its place.
# $(newpass) contains plain password
# $(newpass_crypt) contains its crypted form
#
# MYSQL_CHPASS_CLAUSE   UPDATE  popbox                                  \
#                       SET     clearpw='$(newpass)',                   \
#                               password_hash='$(newpass_crypt)'        \
#                       WHERE   local_part='$(local_part)'              \
#                       AND     domain_name='$(domain)'
#



這是通過extman新建的域
# ll /chroot/mail/
total 28
-rw-------  1 vmail vmail 16051 Oct 11 10:15 asia
drwx------  4 vmail vmail  4096 Oct 10 17:04 dlfhw.cn


這是通過extman新建的兩個郵箱用戶
# ll /chroot/mail/dlfhw.cn/
total 16
drwx------  3 vmail vmail 4096 Oct 10 16:34 asia
drwx------  3 vmail vmail 4096 Oct 10 17:04 euro
《解決方案》

是否你的主機的 網域名和虛擬的網域名是相同了?  這樣就會先被系統這個域接受了 .  

如果是這樣的 那 把
mydomain = dlfhw.cn
改了  看看

[ 本帖最後由 very_99 於 2007-10-12 12:00 編輯 ]

[火星人 ] marion,您好!我現在遇到這樣的問題無法解決,請求幫助!已經有1213次圍觀

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