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

Reply via email to