Re: [vchkpw] alias .qmail-default do not work, qmail complains message_is_looping
On 7/8/07, Shaohui Zheng [EMAIL PROTECTED] wrote: Thanks Tom and Joshua, the problem was solved. tom find the root cause. an old vpopmail document misguided me, I replaced qmial-local with vqmaillocal in vpopmail mail. that is wrong. and now it works. I write my .qmail-default like this. | /home/webmail/add_qmail_user.sh $DEFAULT $SENDER $LOCAL $DEFAULT $RECIPIENT /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox before deal with a mail, script add_qmail_user.sh will check whether this mail account exists. if not it will create it. and then there is no problem. Yes, I must admit I still do not know all the details. I need to read all the documents about vpopmail. Thanks Tom and Joshua again, thanks all. 2007/7/8, Joshua Megerman [EMAIL PROTECTED]: On Sunday 08 July 2007 03:32, Shaohui wrote: So you means I should use the original file /var/qmain/bin/qmail-local, right? But obviously, the original file /var/qmain/bin/qmail-local do not work after we install vpopmail, do you have any other solutions? And as we know, the installation guide in vpopmail never mention this file. Um... have you REALLY read all the documentation on how vpopmail interacts with qmail? The domain-level .qmail-default file is used to call vdelivermail which then handles the rest of the delivery. All you need to do is call vadddomain to create the domain and it will create the proper .qmail-default file for you. Then use vadduser to add you users. From your original message (and thread on the qmail list), it appears that you are trying to run vpopmail by modifying the .qmail-default file at the domain level to run something other than vdelivermail, which DOESN'T WORK. I'm sure you could chain something in front of vdelivermail, but in order to deliver to vpopmil users, you MUST pass the message through vdelivermail. I sugget you (re-)read the documentation, as well as the man pages for qmail-command and dot-qmail, get your system working, and then try to tackle your problem. I suspect that some combination of yor script and a catchall account will do what you're looking for, but since I intentionally bounce all deliveries to non-existant users, I can't really help you with creating new mailboxes on the fly... Josh -- Joshua Megerman SJGames MIB #5273 - OGRE AI Testing Division You can't win; You can't break even; You can't even quit the game. - Layman's translation of the Laws of Thermodynamics [EMAIL PROTECTED] -- Best regards Shaohui Hello Shaohui, I'm also new with qmail, and now I'm testing with my mail server. Can you share your script add_qmail_user.sh for me ? I need it in some case but I dont' know how to create script to call some functions of qmail. If you share it to me, I can know how to start. Thanks so much. Best regards
[vchkpw] Create script to get return value vdelivermail and call qmail-remote
Dear all, I'm try to create file script following describes I have a domain manage by vpopmai /home/vpopmail/domains/coredum.com/ To send mail to mailbox in coredum.com, vpopmail will use file .qmail-default contains |/home/vpopmail/bin/vdelivermail '' bounce-no-mailbox when can not find mailbox, email will bounce the email back to the sender. But I want email still relay to another mailserver ( for my puspose). So I will continue using |qmail-remote [ip of remote mail] $SENDER [EMAIL PROTECTED] vdelivermail return value : 0 if all steps were successful. 100 if user is over quota or *bounce-no-mailbox* is set and no matching user is found. So when i get the return value of vdelivermail, I can call qmail-remote. I must create a file script so that file .qmail-default can call to run. I mean, I don't know how to create my script like I want. I'm so new with qmail. Everyone pls show me guides. Thanks
[vchkpw] Vpopmail/QMail relay local mail to another server mail ??
Currently, I had a Qmail Server in Fedora 4 and MDeaemon in Windows 2003. In MDaemon, I store all email acount in my network. Now I have some email acounts in QMail ( they're also same name with account in MDaemon). I have a problem like this: I use VPoppmail to create mydomain.com and add this name in file /control/local user1,user2 account in QMail. user3 account in MDaemon When [EMAIL PROTECTED] send mail to [EMAIL PROTECTED] User2 receives successful. But when user1 send to user3, QMail return error - Hi. This is the qmail-send program at mydomain.com http://mydomai.com/. 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. Sorry, no mailbox here by that name. (#5.1.1) . I know Qmail would process mail in local so if doesnot find email account in vpopmail they would return error. I want Qmail continue send email (after QMail can not find account in it's loccal) to MDaemon so user3 can receives. I also configure file smptroute for QMail relay to MDaemon successful. Mail account in QMail can relay to MDaemon for internet mail. There is some files in dir /var/qmail/control file locals - smtp.mydomain.com (dns record of QMail) file rcpthosts - there no word, I use tcp.smtp control access file smtproutes has 2 lines. The first line I hope QMail would continue to send non-success local email (it means user3) to MDaemon but it can not. mydomain.com:mail.mydomain.com (mail. http://mail.henho.com/mydomain.comis dns record point to MDaemon) :mail. http://mail.henho.com/mydomain.com ( this line to relay another domain (not mydomain.com http://henho.com/) to MDaemon) file virtualdomains - mydomain.com http://henho.com/ file tcp.smtp 127.:allow,RELAYCLIENT= 172.16.:allow,RELAYCLIENT= When you read to these line, you know that I don't know how to config for VPopMail relay (or QMail) Thanks for reading and soon relpy
[vchkpw] Re: Vpopmail/QMail relay local mail to another server mail ??
Dear all, I correct something in the first email Exactly: file virtualdomains - mydomain.com:mydomain.com When I post the first email I had modify to mydomain.com so it's not working, VPopMail not delivery email to local anymore. Now I modify again file virtualdomains - mydomain.com:mydomain.com I still have problem with Vpopmail/QMail relay local mail to another server mail. Thanks, On 6/25/07, Hoang An [EMAIL PROTECTED] wrote: Currently, I had a Qmail Server in Fedora 4 and MDeaemon in Windows 2003. In MDaemon, I store all email acount in my network. Now I have some email acounts in QMail ( they're also same name with account in MDaemon). I have a problem like this: I use VPoppmail to create mydomain.com and add this name in file /control/local user1,user2 account in QMail. user3 account in MDaemon When [EMAIL PROTECTED] send mail to [EMAIL PROTECTED] User2 receives successful. But when user1 send to user3, QMail return error - Hi. This is the qmail-send program at mydomain.com http://mydomai.com/. 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. Sorry, no mailbox here by that name. (#5.1.1) . I know Qmail would process mail in local so if doesnot find email account in vpopmail they would return error. I want Qmail continue send email (after QMail can not find account in it's loccal) to MDaemon so user3 can receives. I also configure file smptroute for QMail relay to MDaemon successful. Mail account in QMail can relay to MDaemon for internet mail. There is some files in dir /var/qmail/control file locals - smtp.mydomain.com (dns record of QMail) file rcpthosts - there no word, I use tcp.smtp control access file smtproutes has 2 lines. The first line I hope QMail would continue to send non-success local email (it means user3) to MDaemon but it can not. mydomain.com:mail. mydomain.com (mail. http://mail.henho.com/mydomain.comis dns record point to MDaemon) :mail. http://mail.henho.com/ mydomain.com ( this line to relay another domain (not mydomain.com http://henho.com/) to MDaemon) file virtualdomains - mydomain.com http://henho.com/ file tcp.smtp 127.:allow,RELAYCLIENT= 172.16.:allow,RELAYCLIENT= When you read to these line, you know that I don't know how to config for VPopMail relay (or QMail) Thanks for reading and soon relpy