Joel Gautschi wrote:
> 
> hi,
> 
> 1. every user in /var/lib/vpopmail/users works fine
> 2. every user in /var/lib/vpopmail/domains/mydomain.com doesn't work ;(
> 
> if I send a mail from [EMAIL PROTECTED] to [EMAIL PROTECTED] i get the following
> error in the mail.log
> 
> --- from /var/log/mail.log ---
> Aug  9 10:15:20 joshua qmail: 965808920.712606 new msg 1507345
> Aug  9 10:15:20 joshua qmail: 965808920.713055 info msg 1507345: bytes 618
> from <[EMAIL PROTECTED]> qp 31023 uid 64011
> Aug  9 10:15:20 joshua qmail: 965808920.767276 starting delivery 520: msg
> 1507345 to local [EMAIL PROTECTED]
> Aug  9 10:15:20 joshua qmail: 965808920.767613 status: local 1/10 remote
> 0/20
> Aug  9 10:15:21 joshua qmail: 965808921.007641 delivery 520: failure:
> Sorry,_no_mailbox_here_by_that_name._vpopmail_(#5.1.1)/
> Aug  9 10:15:21 joshua qmail: 965808921.071573 status: local 0/10 remote
> 0/20
> Aug  9 10:15:21 joshua qmail: 965808921.130812 bounce msg 1507345 qp 31026
> Aug  9 10:15:21 joshua qmail: 965808921.145955 end msg 1507345
> ---
> 
> the virtual domain directory looks like that:
> 
> joshua:/var/lib/vpopmail/domains/mydomain.com# ls -la
> total 12
> drwx------    6 vpopmail vchkpw       1024 Jul 12 11:54 .
> drwx------    3 vpopmail vchkpw       1024 Jul  5 10:34 ..
> -rw-------    1 vpopmail vchkpw         34 Jul 12 11:54 .dir-control
> -rw-------    1 vpopmail vchkpw         46 Jul  5 10:34 .qmail-default
> -rw-------    1 vpopmail vchkpw          0 Jul  5 10:34 .vpasswd.lock
> drwx------    3 vpopmail vchkpw       1024 Jul  5 10:40 info
> drwx------    3 vpopmail vchkpw       1024 Jul 10 09:51 info2
> drwx------    3 vpopmail vchkpw       1024 Jul 12 11:54 info3
> drwx------    3 vpopmail vchkpw       1024 Jul  5 10:34 postmaster
> -rw-------    1 vpopmail vchkpw        356 Jul 12 11:54 vpasswd
> -rw-------    1 vpopmail vchkpw       2492 Jul 12 11:54 vpasswd.cdb
> 
> I created the virtualdomain with vadddomain and the virtualdomain users with
> vadduser
> any idea what's wrong? do you need more information (log files or
> whatever...)?
> 
> btw: does the virtualdomain need an MX entry on the DNS server?
> cya
> Joel

To answer your second question yes you need an mx record for each
virtual domain.  In the dns record of each domain you can put the MX
name of the box running qmail/vpopmail.  What I have done on my box is
run several domains with qmail/vpopmail but in the MX entry for each
domain I put the name of the name of the box running qmail/vpopmail.
When the smtp server needs to deliver mail it looks up that domains MX
record then it will in order of preference starting at the lowest number
(normally 10 then 20, 30, etc what ever the numbering sequence is) and
tries the next highest and so on.  The sending smtp server will not care
it is delivering mail for abcd.com to wxyz.com, just as long as the MX
for abcd.com says to use wxyz.com 's mail server.  I hope that wasn't to
confusing if it was.  To put it in a nutshell, use the mail server box
running the vpopmail/qmail for the various domains as the mx for each
domain.  The mail servers will sort out what mail goes where once they
get it.

As for your other problem I had the same problem but only for local
delivered mail.  I sent a message from [EMAIL PROTECTED] to
[EMAIL PROTECTED] and would get returned because it couldn't find the
that person BUT if a person outside of thisdomain.com would send an
e-mail to [EMAIL PROTECTED] it would go through fine. 
I was using a simular setup to you where I had my domain teoi.net as the
main domain and then the other virtual domains.  I had problems with
pop3 mail retrieval and delivering mail from a local user to another
local user.  What I did was recompile vpopmail with the following
settings making my domain a virtual domain along with the rest of them. 
After I did that I was able to send mail locally and my pop3 problem
went away.  These are the settings I used, you probably need to edit the
directories for your system, I am using OpenBSD 2.6 .

./configure  --enable-roaming-users=y --enable-relay-clear-minutes=120
--enable-ucspi-dir=/usr/src/ucspi-tcp-0.84 --enable-logging=e
--enable-tcpserver-file=/var/qmail/vpopmail/etc/tcp.smtp
--enable-qmaildir=/var/qmail
--enable-tcprules-prog=/usr/local/bin/tcprules

After I recompiled and setup my domain as a virtual domain along with
the rest every worked fine....well I did have a problem with the roaming
user but that ended up being a file permission / ownership problem.
I hope this helps you out.  I know I had quite a time with it till I
converted to completely virtual which works fine.  All mail is in one
directory tree sorted automatically by domain.

                        Take Care,
                        Dale

Reply via email to