Re: [qmailtoaster] let another handle my email
Hello assign is an editable file (but be careful what you do with it) then the command qmail-newu builds a cdb binary file called cdb Eric Shubert wrote: I'm not really clear about what you're trying to accomplish. There are 2 other places though (other than the sql database) where your domains are defined. One is the /var/qmail/control/virtualdomains, and the other is /var/qmail/users/assign. The later has a cdb file associated with it that's a little tricky to get generated IIRC. You might need to add/delete a dummy domain to get the assign.cdb file rebuilt. Shai wrote: Well... I know where it goes... it still goes locally to my account ... Shai On Sun, Feb 15, 2009 at 10:59 PM, Shai sha...@gmail.com wrote: I did this.. and now I don't get any email... and I have no idea where its going to either :( Shai On Sun, Feb 15, 2009 at 8:24 PM, Eric Shubert e...@shubes.net wrote: In that case, I think you can simply remove the domain from the /var/qmail/control/rcpthosts file. See http://wiki.qmailtoaster.com/index.php/Rcpthosts I'd do that with qmail stopped to be on the safe side (I see a corresponding .lock file). Shai wrote: Hi Eric (Long time no talk!), But I don't want to delete the domain... I still have emails I want to have access to ... Shai On Sun, Feb 15, 2009 at 2:05 AM, Eric Shubert e...@shubes.net wrote: Shai wrote: Hi, I decided that I don't want to maintain my own mail server and I want to let another service handle this for me. Notice, I have several domains, and this decision has been made for just one of them, not all. I've setup everything but local emails (ie. emails that are being sent from the local cron or other tasks sending to the local server on the old mail server. What exactly do I need to do, so that all the local email being sent to this domain, don't go to the old server but get forwarded to my ISP and then to my new host for my mail server? Thanks in advance! Shai Delete the domain from your toaster # /home/vpopmail/bin/vdeldomain yourdomain.com -- -Eric 'shubes' -- -Eric 'shubes' - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] let another handle my email
Nice tip, Philip (could've used that a couple years ago!). Does qmail-newu do anything other than building the assign.cdb file? Philip wrote: Hello assign is an editable file (but be careful what you do with it) then the command qmail-newu builds a cdb binary file called cdb Eric Shubert wrote: I'm not really clear about what you're trying to accomplish. There are 2 other places though (other than the sql database) where your domains are defined. One is the /var/qmail/control/virtualdomains, and the other is /var/qmail/users/assign. The later has a cdb file associated with it that's a little tricky to get generated IIRC. You might need to add/delete a dummy domain to get the assign.cdb file rebuilt. Shai wrote: Well... I know where it goes... it still goes locally to my account ... Shai On Sun, Feb 15, 2009 at 10:59 PM, Shai sha...@gmail.com wrote: I did this.. and now I don't get any email... and I have no idea where its going to either :( Shai On Sun, Feb 15, 2009 at 8:24 PM, Eric Shubert e...@shubes.net wrote: In that case, I think you can simply remove the domain from the /var/qmail/control/rcpthosts file. See http://wiki.qmailtoaster.com/index.php/Rcpthosts I'd do that with qmail stopped to be on the safe side (I see a corresponding .lock file). Shai wrote: Hi Eric (Long time no talk!), But I don't want to delete the domain... I still have emails I want to have access to ... Shai On Sun, Feb 15, 2009 at 2:05 AM, Eric Shubert e...@shubes.net wrote: Shai wrote: Hi, I decided that I don't want to maintain my own mail server and I want to let another service handle this for me. Notice, I have several domains, and this decision has been made for just one of them, not all. I've setup everything but local emails (ie. emails that are being sent from the local cron or other tasks sending to the local server on the old mail server. What exactly do I need to do, so that all the local email being sent to this domain, don't go to the old server but get forwarded to my ISP and then to my new host for my mail server? Thanks in advance! Shai Delete the domain from your toaster # /home/vpopmail/bin/vdeldomain yourdomain.com -- -Eric 'shubes' -- -Eric 'shubes' - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com -- -Eric 'shubes' - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] let another handle my email
Hi Philip, Thanks for the tip... but I didn't understand it. Can you elaborate? Thanks, Shai On Mon, Feb 16, 2009 at 12:06 PM, Philip phi...@ows.ch wrote: Hello assign is an editable file (but be careful what you do with it) then the command qmail-newu builds a cdb binary file called cdb Eric Shubert wrote: I'm not really clear about what you're trying to accomplish. There are 2 other places though (other than the sql database) where your domains are defined. One is the /var/qmail/control/virtualdomains, and the other is /var/qmail/users/assign. The later has a cdb file associated with it that's a little tricky to get generated IIRC. You might need to add/delete a dummy domain to get the assign.cdb file rebuilt. Shai wrote: Well... I know where it goes... it still goes locally to my account ... Shai On Sun, Feb 15, 2009 at 10:59 PM, Shai sha...@gmail.com wrote: I did this.. and now I don't get any email... and I have no idea where its going to either :( Shai On Sun, Feb 15, 2009 at 8:24 PM, Eric Shubert e...@shubes.net wrote: In that case, I think you can simply remove the domain from the /var/qmail/control/rcpthosts file. See http://wiki.qmailtoaster.com/index.php/Rcpthosts I'd do that with qmail stopped to be on the safe side (I see a corresponding .lock file). Shai wrote: Hi Eric (Long time no talk!), But I don't want to delete the domain... I still have emails I want to have access to ... Shai On Sun, Feb 15, 2009 at 2:05 AM, Eric Shubert e...@shubes.net wrote: Shai wrote: Hi, I decided that I don't want to maintain my own mail server and I want to let another service handle this for me. Notice, I have several domains, and this decision has been made for just one of them, not all. I've setup everything but local emails (ie. emails that are being sent from the local cron or other tasks sending to the local server on the old mail server. What exactly do I need to do, so that all the local email being sent to this domain, don't go to the old server but get forwarded to my ISP and then to my new host for my mail server? Thanks in advance! Shai Delete the domain from your toaster # /home/vpopmail/bin/vdeldomain yourdomain.com -- -Eric 'shubes' -- -Eric 'shubes' - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] let another handle my email
Yes I used that when migrating machines and another very nice little tool is qmail-newmrh which is building the morercpthosts.cdb about qmail-newu : NAME qmail-newu - prepare address assignments for qmail-lspawn SYNOPSIS qmail-newu DESCRIPTION qmail-newu reads the assignments in /var/qmail/users/assign and writes them into /var/qmail/users/cdb in a binary format suited for quick access by qmail- lspawn. If there is a problem with users/assign, qmail-newu complains and leaves users/cdb alone. qmail-newu ensures that users/cdb is updated atomically, so qmail-lspawn never has to wait for qmail-newu to finish. However, qmail-newu makes no attempt to protect against two simultaneous updates of users/cdb. The binary users/cdb format is portable across machines. Eric Shubert wrote: Nice tip, Philip (could've used that a couple years ago!). Does qmail-newu do anything other than building the assign.cdb file? Philip wrote: Hello assign is an editable file (but be careful what you do with it) then the command qmail-newu builds a cdb binary file called cdb Eric Shubert wrote: I'm not really clear about what you're trying to accomplish. There are 2 other places though (other than the sql database) where your domains are defined. One is the /var/qmail/control/virtualdomains, and the other is /var/qmail/users/assign. The later has a cdb file associated with it that's a little tricky to get generated IIRC. You might need to add/delete a dummy domain to get the assign.cdb file rebuilt. Shai wrote: Well... I know where it goes... it still goes locally to my account ... Shai On Sun, Feb 15, 2009 at 10:59 PM, Shai sha...@gmail.com wrote: I did this.. and now I don't get any email... and I have no idea where its going to either :( Shai On Sun, Feb 15, 2009 at 8:24 PM, Eric Shubert e...@shubes.net wrote: In that case, I think you can simply remove the domain from the /var/qmail/control/rcpthosts file. See http://wiki.qmailtoaster.com/index.php/Rcpthosts I'd do that with qmail stopped to be on the safe side (I see a corresponding .lock file). Shai wrote: Hi Eric (Long time no talk!), But I don't want to delete the domain... I still have emails I want to have access to ... Shai On Sun, Feb 15, 2009 at 2:05 AM, Eric Shubert e...@shubes.net wrote: Shai wrote: Hi, I decided that I don't want to maintain my own mail server and I want to let another service handle this for me. Notice, I have several domains, and this decision has been made for just one of them, not all. I've setup everything but local emails (ie. emails that are being sent from the local cron or other tasks sending to the local server on the old mail server. What exactly do I need to do, so that all the local email being sent to this domain, don't go to the old server but get forwarded to my ISP and then to my new host for my mail server? Thanks in advance! Shai Delete the domain from your toaster # /home/vpopmail/bin/vdeldomain yourdomain.com -- -Eric 'shubes' -- -Eric 'shubes' - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] let another handle my email
Hello you ll notice that in the (if default setup) /var/qmail/users directory a file assign (text file) a binary file cdb (built from assign) and a lock file assign.lock When you add a new domain or a new domain alias that domain is added to the assign file and the cdb file is built The assign is a very important file, in the old days when the uid, gid of vpopmail wasnt fixed and specified to 89:89 you had to edit that assign file when you were migrating otherwise you d face big issues with permissions :) basically if you look at the file you can see : +domain_name-:domain_name:uid:gid:path_of_the_mail_boxes:-:: +dom1.com-:dom1.com:89:89:/home/vpopmail/domains/dom1.com:-:: - normal domain +dom2.com-:dom1.com:89:89:/home/vpopmail/domains/dom1.com:-:: - domain alias of dom1 I dont use that much that qmail-newu command but qmail-newmrh I use that almost every day to add domains to our front end smtp servers (scanners) If you are interested look at the vpopmail source package and vadddomain.c or vaddaliasdomain.c you ll understand what files are modified when you add or remove a domain and if you just want your smtp to accept mail for a specific domain but to deliver mail to another machine, that domain must be added to only one file but that's another subject Shai wrote: Hi Philip, Thanks for the tip... but I didn't understand it. Can you elaborate? Thanks, Shai On Mon, Feb 16, 2009 at 12:06 PM, Philip phi...@ows.ch wrote: Hello assign is an editable file (but be careful what you do with it) then the command qmail-newu builds a cdb binary file called cdb Eric Shubert wrote: I'm not really clear about what you're trying to accomplish. There are 2 other places though (other than the sql database) where your domains are defined. One is the /var/qmail/control/virtualdomains, and the other is /var/qmail/users/assign. The later has a cdb file associated with it that's a little tricky to get generated IIRC. You might need to add/delete a dummy domain to get the assign.cdb file rebuilt. Shai wrote: Well... I know where it goes... it still goes locally to my account ... Shai On Sun, Feb 15, 2009 at 10:59 PM, Shai sha...@gmail.com wrote: I did this.. and now I don't get any email... and I have no idea where its going to either :( Shai On Sun, Feb 15, 2009 at 8:24 PM, Eric Shubert e...@shubes.net wrote: In that case, I think you can simply remove the domain from the /var/qmail/control/rcpthosts file. See http://wiki.qmailtoaster.com/index.php/Rcpthosts I'd do that with qmail stopped to be on the safe side (I see a corresponding .lock file). Shai wrote: Hi Eric (Long time no talk!), But I don't want to delete the domain... I still have emails I want to have access to ... Shai On Sun, Feb 15, 2009 at 2:05 AM, Eric Shubert e...@shubes.net wrote: Shai wrote: Hi, I decided that I don't want to maintain my own mail server and I want to let another service handle this for me. Notice, I have several domains, and this decision has been made for just one of them, not all. I've setup everything but local emails (ie. emails that are being sent from the local cron or other tasks sending to the local server on the old mail server. What exactly do I need to do, so that all the local email being sent to this domain, don't go to the old server but get forwarded to my ISP and then to my new host for my mail server? Thanks in advance! Shai Delete the domain from your toaster # /home/vpopmail/bin/vdeldomain yourdomain.com -- -Eric 'shubes' -- -Eric 'shubes' - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] let another handle my email
Well... that's a little over the top for me mate :) Like I said in a previous email... I was able to resolve my problem in another simple way. Shai On Mon, Feb 16, 2009 at 4:10 PM, Philip phi...@ows.ch wrote: Hello you ll notice that in the (if default setup) /var/qmail/users directory a file assign (text file) a binary file cdb (built from assign) and a lock file assign.lock When you add a new domain or a new domain alias that domain is added to the assign file and the cdb file is built The assign is a very important file, in the old days when the uid, gid of vpopmail wasnt fixed and specified to 89:89 you had to edit that assign file when you were migrating otherwise you d face big issues with permissions :) basically if you look at the file you can see : +domain_name-:domain_name:uid:gid:path_of_the_mail_boxes:-:: +dom1.com-:dom1.com:89:89:/home/vpopmail/domains/dom1.com:-:: - normal domain +dom2.com-:dom1.com:89:89:/home/vpopmail/domains/dom1.com:-:: - domain alias of dom1 I dont use that much that qmail-newu command but qmail-newmrh I use that almost every day to add domains to our front end smtp servers (scanners) If you are interested look at the vpopmail source package and vadddomain.c or vaddaliasdomain.c you ll understand what files are modified when you add or remove a domain and if you just want your smtp to accept mail for a specific domain but to deliver mail to another machine, that domain must be added to only one file but that's another subject Shai wrote: Hi Philip, Thanks for the tip... but I didn't understand it. Can you elaborate? Thanks, Shai On Mon, Feb 16, 2009 at 12:06 PM, Philip phi...@ows.ch wrote: Hello assign is an editable file (but be careful what you do with it) then the command qmail-newu builds a cdb binary file called cdb Eric Shubert wrote: I'm not really clear about what you're trying to accomplish. There are 2 other places though (other than the sql database) where your domains are defined. One is the /var/qmail/control/virtualdomains, and the other is /var/qmail/users/assign. The later has a cdb file associated with it that's a little tricky to get generated IIRC. You might need to add/delete a dummy domain to get the assign.cdb file rebuilt. Shai wrote: Well... I know where it goes... it still goes locally to my account ... Shai On Sun, Feb 15, 2009 at 10:59 PM, Shai sha...@gmail.com wrote: I did this.. and now I don't get any email... and I have no idea where its going to either :( Shai On Sun, Feb 15, 2009 at 8:24 PM, Eric Shubert e...@shubes.net wrote: In that case, I think you can simply remove the domain from the /var/qmail/control/rcpthosts file. See http://wiki.qmailtoaster.com/index.php/Rcpthosts I'd do that with qmail stopped to be on the safe side (I see a corresponding .lock file). Shai wrote: Hi Eric (Long time no talk!), But I don't want to delete the domain... I still have emails I want to have access to ... Shai On Sun, Feb 15, 2009 at 2:05 AM, Eric Shubert e...@shubes.net wrote: Shai wrote: Hi, I decided that I don't want to maintain my own mail server and I want to let another service handle this for me. Notice, I have several domains, and this decision has been made for just one of them, not all. I've setup everything but local emails (ie. emails that are being sent from the local cron or other tasks sending to the local server on the old mail server. What exactly do I need to do, so that all the local email being sent to this domain, don't go to the old server but get forwarded to my ISP and then to my new host for my mail server? Thanks in advance! Shai Delete the domain from your toaster # /home/vpopmail/bin/vdeldomain yourdomain.com -- -Eric 'shubes' -- -Eric 'shubes' - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] let another handle my email
In that case, I think you can simply remove the domain from the /var/qmail/control/rcpthosts file. See http://wiki.qmailtoaster.com/index.php/Rcpthosts I'd do that with qmail stopped to be on the safe side (I see a corresponding .lock file). Shai wrote: Hi Eric (Long time no talk!), But I don't want to delete the domain... I still have emails I want to have access to ... Shai On Sun, Feb 15, 2009 at 2:05 AM, Eric Shubert e...@shubes.net wrote: Shai wrote: Hi, I decided that I don't want to maintain my own mail server and I want to let another service handle this for me. Notice, I have several domains, and this decision has been made for just one of them, not all. I've setup everything but local emails (ie. emails that are being sent from the local cron or other tasks sending to the local server on the old mail server. What exactly do I need to do, so that all the local email being sent to this domain, don't go to the old server but get forwarded to my ISP and then to my new host for my mail server? Thanks in advance! Shai Delete the domain from your toaster # /home/vpopmail/bin/vdeldomain yourdomain.com -- -Eric 'shubes' -- -Eric 'shubes' - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] let another handle my email
I'm not really clear about what you're trying to accomplish. There are 2 other places though (other than the sql database) where your domains are defined. One is the /var/qmail/control/virtualdomains, and the other is /var/qmail/users/assign. The later has a cdb file associated with it that's a little tricky to get generated IIRC. You might need to add/delete a dummy domain to get the assign.cdb file rebuilt. Shai wrote: Well... I know where it goes... it still goes locally to my account ... Shai On Sun, Feb 15, 2009 at 10:59 PM, Shai sha...@gmail.com wrote: I did this.. and now I don't get any email... and I have no idea where its going to either :( Shai On Sun, Feb 15, 2009 at 8:24 PM, Eric Shubert e...@shubes.net wrote: In that case, I think you can simply remove the domain from the /var/qmail/control/rcpthosts file. See http://wiki.qmailtoaster.com/index.php/Rcpthosts I'd do that with qmail stopped to be on the safe side (I see a corresponding .lock file). Shai wrote: Hi Eric (Long time no talk!), But I don't want to delete the domain... I still have emails I want to have access to ... Shai On Sun, Feb 15, 2009 at 2:05 AM, Eric Shubert e...@shubes.net wrote: Shai wrote: Hi, I decided that I don't want to maintain my own mail server and I want to let another service handle this for me. Notice, I have several domains, and this decision has been made for just one of them, not all. I've setup everything but local emails (ie. emails that are being sent from the local cron or other tasks sending to the local server on the old mail server. What exactly do I need to do, so that all the local email being sent to this domain, don't go to the old server but get forwarded to my ISP and then to my new host for my mail server? Thanks in advance! Shai Delete the domain from your toaster # /home/vpopmail/bin/vdeldomain yourdomain.com -- -Eric 'shubes' -- -Eric 'shubes' - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com -- -Eric 'shubes' - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] let another handle my email
Hi, Removing the domain from virtualdomains worked! Now, I can, for example, set the crontab mailto=myem...@mydomain.com ; and it is sent out and not treated as a local delivery, as it would before. Thanks for the help :) Shai On Sun, Feb 15, 2009 at 11:27 PM, Eric Shubert e...@shubes.net wrote: I'm not really clear about what you're trying to accomplish. There are 2 other places though (other than the sql database) where your domains are defined. One is the /var/qmail/control/virtualdomains, and the other is /var/qmail/users/assign. The later has a cdb file associated with it that's a little tricky to get generated IIRC. You might need to add/delete a dummy domain to get the assign.cdb file rebuilt. Shai wrote: Well... I know where it goes... it still goes locally to my account ... Shai On Sun, Feb 15, 2009 at 10:59 PM, Shai sha...@gmail.com wrote: I did this.. and now I don't get any email... and I have no idea where its going to either :( Shai On Sun, Feb 15, 2009 at 8:24 PM, Eric Shubert e...@shubes.net wrote: In that case, I think you can simply remove the domain from the /var/qmail/control/rcpthosts file. See http://wiki.qmailtoaster.com/index.php/Rcpthosts I'd do that with qmail stopped to be on the safe side (I see a corresponding .lock file). Shai wrote: Hi Eric (Long time no talk!), But I don't want to delete the domain... I still have emails I want to have access to ... Shai On Sun, Feb 15, 2009 at 2:05 AM, Eric Shubert e...@shubes.net wrote: Shai wrote: Hi, I decided that I don't want to maintain my own mail server and I want to let another service handle this for me. Notice, I have several domains, and this decision has been made for just one of them, not all. I've setup everything but local emails (ie. emails that are being sent from the local cron or other tasks sending to the local server on the old mail server. What exactly do I need to do, so that all the local email being sent to this domain, don't go to the old server but get forwarded to my ISP and then to my new host for my mail server? Thanks in advance! Shai Delete the domain from your toaster # /home/vpopmail/bin/vdeldomain yourdomain.com -- -Eric 'shubes' -- -Eric 'shubes' - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com -- -Eric 'shubes' - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com