Re: [vchkpw] alias .qmail-default do not work, qmail complains "message_is_looping"
you are welcome, it is very simple, you can call vpopmail's binary file to add a account. what is more, you need to modify the file permission, make qmail can call this script: chmod 5755 add_qmail_user.sh #!/bin/bash PATH_QMAIL=/var/qmail FILE_HANGLE_LOG=/var/log/mail_handle DEFAULT_PASSWORD=123456 DOMAIN_NAME=test.com if [ $# -lt 1 ]; then echo "`date` miss username." >> $FILE_HANGLE_LOG exit 1; else echo "`date` new user: $1, sender: $2. $3 $4" >> $FILE_HANGLE_LOG fi username=$1 /home/vpopmail/bin/vadduser [EMAIL PROTECTED] $DEFAULT_PASSWORD if [ $? -eq 0 ];then echo "add user $usename success" >> $FILE_HANGLE_LOG else echo "add user $username fail" >> $FILE_HANGLE_LOG fi #always return 0 exit 0 On 7/19/07, Hoang An <[EMAIL PROTECTED]> wrote: 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 -- Best regards Shaohui
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
Re: [vchkpw] alias .qmail-default do not work, qmail complains "message_is_looping"
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
Re: [vchkpw] alias .qmail-default do not work, qmail complains "message_is_looping"
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]
RE: [vchkpw] alias .qmail-default do not work, qmail complains "message_is_looping"
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. -Original Message- From: Tom Collins [mailto:[EMAIL PROTECTED] Sent: 2007年7月8日 13:04 To: vchkpw@inter7.com Subject: Re: [vchkpw] alias .qmail-default do not work, qmail complains "message_is_looping" On Jul 7, 2007, at 7:24 PM, Shaohui Zheng wrote: > 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 Don't use vqmaillocal. It hasn't been kept up to date, and is no longer supported. -- Tom Collins - [EMAIL PROTECTED] Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/ QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/
Re: [vchkpw] alias .qmail-default do not work, qmail complains "message_is_looping"
On Jul 7, 2007, at 7:24 PM, Shaohui Zheng wrote: 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 Don't use vqmaillocal. It hasn't been kept up to date, and is no longer supported. -- Tom Collins - [EMAIL PROTECTED] Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/ QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/