hi all
   I am a newbie in qmail. I install qmail and vpopmail.I can send
and recevice mails. it looks work fine. but if I try to send a mail to
a nonexistent mail account, the problem comes.  this problem bother me
about 2 weeks. if you know the root cause, would you please tell me
what is problem. your suggestion a great favor to me. thanks very
much.

  I need to create a new account if the mail account does not exist.
that is the special requirements for me, if the mail account do not
exist, I will use .qmail-default to create an email account, and then
inject the mail to the new account. it work well if I do not use
vpopmail. but I want to use virtual account.

some information about my software envionment:
1.My domain name is test.com(in internal network)

2.the content of file /var/qmail/user/assign
+test.com-:test.com:89:89:/home/vpopmail/domains/test.com:-::
.

3. then content of file /home/vpopmail/domains/test.com/.qmail-default
| /home/webmail/add-qmail-account.sh "$DEFAULT" "$SENDER"  &&
qmail-inject "$DEFAULT"
add-qmail-account.sh is a script to add a mail account
I know it never be called from the maillog. but if I do not use
vpopmail, it will be called without any problem.

4. I replace /var/qmail/bin/qmail-local with
/home/vpopmail/bin/vqmaillocal(by following the installation docs)
if I do not replace, .qmail-default can work, but I can not recevie any mail.
after I install vpopmail, I try to send a mail to an nonexist account like this

echo "req and to do list" | mail [EMAIL PROTECTED] -s
"requirements and todo list"
then qmail complains  "message_is_looping_/mail_is_looping"

the following is the detail of the maillog.
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.428087 new msg 957104
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.428172 info msg
957104: bytes 240 from <[EMAIL PROTECTED]> qp 9808 uid 0
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.432902 starting
delivery 1: msg 957104 to local
[EMAIL PROTECTED]@test.com[/email]
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.433078 status: local
1/10 remote 0/20
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.683124 new msg 957105
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.683208 info msg
957105: bytes 329 from <[EMAIL PROTECTED]> qp 9812 uid 89
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.688239 starting
delivery 2: msg 957105 to local [EMAIL PROTECTED]
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.688291 status: local
2/10 remote 0/20
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.688332 delivery 1:
success: /home/vpopmail/domains/test.com,no_such_user,test.com/
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.688367 status: local
1/10 remote 0/20
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.688401 end msg 957104
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.721400 delivery 2:
failure: 
/home/vpopmail/domains/test.com,,test.com/message_is_looping_/mail_is_looping/
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.721475 status: local
0/10 remote 0/20
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.726975 bounce msg
957105 qp 9815
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.727036 end msg 957105
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.727466 new msg 957106
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.727516 info msg
957106: bytes 874 from <> qp 9815 uid 853
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.731858 starting
delivery 3: msg 957106 to local
[EMAIL PROTECTED]@test.com[/email]
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.732013 status: local
1/10 remote 0/20
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.770251 new msg 957107
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.770335 info msg
957107: bytes 1012 from <[EMAIL PROTECTED]> qp 9819 uid 89
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.775153 starting
delivery 4: msg 957107 to local [EMAIL PROTECTED]
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.775206 status: local
2/10 remote 0/20
Jul  7 21:54:14 shaohui-laptop qmail: 1183816454.775247 delivery 3:
success: /home/vpopmail/domains/test.com,anonymous,test.com/



--
Best regards
Shaohui

Reply via email to