.no-user.msg 和 .quotawarn.msg都好用,為什麼.over-quota.msg就不其作用?
.over-quota.msg 如下增加的
echo "郵件被拒絕,用戶的郵箱已滿。" > /home/vpopmail/domains/.over-quota.msg
為什麼就沒起作用,收到的退信中還是英文提示:
Hi. This is the qmail-send program at .
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
:
user is over quota
--- Enclosed is a copy of the message.
使用和不使用.over-quota.msg對應的qmail日誌都相同
2007-07-26 12:32:59.299449500 new msg 1225390
2007-07-26 12:32:59.299457500 info msg 1225390: bytes 211979 from <
[email protected]> qp 8933 uid 0
2007-07-26 12:32:59.336256500 starting delivery 5: msg 1225390 to local
[email protected] 2007-07-26 12:32:59.337267500 status: local 1/10 remote 0/20
2007-07-26 12:32:59.429024500 delivery 5: failure: user_is_over_quota/
2007-07-26 12:32:59.429027500 status: local 0/10 remote 0/20
2007-07-26 12:32:59.559232500 bounce msg 1225390 qp 8936
2007-07-26 12:32:59.562073500 end msg 1225390
而設置的 .no-user.msg就起作用,得到了部分中文提示
Hi. This is the qmail-send program at .
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
:
郵箱不存在
--- Enclosed is a copy of the message.
使用和不使用.no-user.msg對應的qmail日誌卻不同!
2007-07-26 12:34:48.517667500 new msg 1225390
2007-07-26 12:34:48.517755500 info msg 1225390: bytes 625 from <
[email protected]> qp 9042 uid 0
2007-07-26 12:34:48.546898500 starting delivery 7: msg 1225390 to local
[email protected] 2007-07-26 12:34:48.546905500 status: local 1/10 remote 0/20
2007-07-26 12:34:48.617845500 delivery 7: failure: __________/
2007-07-26 12:34:48.617848500 status: local 0/10 remote 0/20
2007-07-26 12:34:48.644945500 bounce msg 1225390 qp 9045
2007-07-26 12:34:48.644948500 end msg 1225390
2007-07-26 12:38:11.722073500 new msg 1225390
2007-07-26 12:38:11.723096500 info msg 1225390: bytes 627 from <
[email protected]> qp 9092 uid 0
2007-07-26 12:38:11.757937500 starting delivery 1: msg 1225390 to local
[email protected] 2007-07-26 12:38:11.759053500 status: local 1/10 remote 0/20
2007-07-26 12:38:11.831802500 delivery 1: failure: Sorry,_no_mailbox_here_by_that_name._vpopmail_(#5.1.1)/
2007-07-26 12:38:11.832982500 status: local 0/10 remote 0/20
2007-07-26 12:38:11.858788500 bounce msg 1225390 qp 9095
2007-07-26 12:38:11.860969500 end msg 1225390
能否看出問題所在?
《解決方案》
還需要提供哪些系統信息?
《解決方案》
你的 vpopmail 是什麼版本?
5.4.17 中 是這樣執行 over-quota.msg 的,
先 用戶域下面的 .over-quota.msg,如果沒有,則查找
vpopmail/domains/.over-quota.msg 文件
if (user_over_maildirquota(address,format_maildirquota(quota))==1) {
/* check for over quota message in domain */
sprintf(tmp_file, "%s/.over-quota.msg",TheDomainDir);
if ( (fs=fopen(tmp_file, "r")) == NULL ) {
/* if no domain over quota then check in vpopmail dir */
sprintf(tmp_file, "%s/%s/.over-quota.msg",VPOPMAILDIR,DOMAINS_DIR);
fs=fopen(tmp_file, "r");
}
if ( fs == NULL ) {
printf("user is over quota\n");
} else {
while( fgets( tmp_file, sizeof(tmp_file), fs ) != NULL ) {
fputs(tmp_file, stdout);
}
fclose(fs);
}
deliver_quota_warning(address, format_maildirquota(quota));
vexiterr (EXIT_OVERQUOTA, "");
}
《解決方案》
回復 #3 大麻 的帖子
# vuserinfo -v
version: 5.4.0
是用這個命令查看嗎?
是不是這個版本不支持?