Newbie questions: Trying to evaluate functionality

2001-05-25 Thread shawn everett

I'm trying to figure out the best way to use qmail and Vpopmail to set up
a new mail server.

Here are the requirements I'm interested in, can it be done?

1.  Store mail in Mailbox format not Maildir.
2.  Store virtual domain user accounts using something other than
/etc/passwd
3.  Provide an easy way to view usernames/passwords.  Encrypted passwords
would be fine.
4.  Add, edit and delete aliases easily
5.  Setup autoresponders on a per user basis
6.  Store each virtual domain and it's accounts in a seperate directory
7.  Give users the ability to log in using username@domain and username.

I realize some of these are probably qmail specific questions, I'm just
trying to get a good overall picture.

Shawn




Re: dbfunctions - it's over

2001-05-25 Thread Tim Hunter

It was answered before this posting on the list, when Krzysztof first
noticed that the dbfunctions patch in its entirity was not going to be
included in the latest vpopmail build.
You can check the archives for the exact posting (subject Dbfunctions) but
the general of it all was that dbfunctions could not be included in its
current state because it breaks non database installations, it lacks
documentation and Krzysztof never gave Ken enough information to port it
properly to support the entire vopmail userbase.

-- Tim
- Original Message -
From: "Wojciech Smolkowski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 25, 2001 5:00 PM
Subject: Re: dbfunctions - it's over


Hi,

Can anyone tell me, why there is no answer ( for letters with 'dbfunctions'
in Subject ) from inter7.com ?

On Fri, 18 May 2001, Krzysztof Dabrowski wrote:

> Hello..
>
> It's a sad day, but i guess it was ment to be like this
>
> We are stoping the dbfunction patch development. There will be no more
> releases from us. The already finished improved quota support (no re-calc
> on every delivery with small patch to qmail-pop3d) wont be released too.
>
> We have decided to start a similar project on our own. It'll differ from
> vpopmail in 2 aspects:
>
> a) speed - we aim to be nearly as fast as stock qmail but with mass
virtual
> hosting support.
> b) quota - file system independent fast quota system
> c) simplicity - no bloat..
>
> At this point of time i can not tell you if it's going to be open project
> or not - i have to consult our management (we are being paid to program
> it). But inerested parties can contact me and we can work something out i
> supose.
>
> If somebody wants to maintain the dbfunction patch then feel free to
> contact me. You will be able to download the last release version together
> with vpopmial that works with it from my homepage.
>
> Thanks for all good words from users of the patch.
>
> And to Ken: Sorry, you just don't know how to run an open source project,
> period.
>
> bye,
>
> Kris
>


wojciech smołkowski [ mailto:[EMAIL PROTECTED]]
PGP key: sh# pgpv hkp -a keys.pgp.com/0x2FFD974D
[mobile ph. +48502525521] * Powered by /bin/pine








Re: Off Topic: Re: Mutt, and local-user email

2001-05-25 Thread Guillermo Villasana Cardoza

So... should we look up for Jeffrey A. and C. Gordon ;)

:D
Terius
- Original Message - 
From: "Jeff Gordon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 25, 2001 3:45 PM
Subject: Re: Off Topic: Re: Mutt, and local-user email


> On Fri, May 25, 2001 at 04:31:10PM -0500, Jeffrey D. Gordon wrote:
> 
> > Ack No!
> > Not another Jeff Gordon
> > 
> > *panic attempt to flee*
> 
> I know the feeling. :-)  (Aside from the racecar driver, there's also a
> spokesman for the Navy who pops up from time to time.)
> 
> Jeffrey B. Gordon, here.
> 
> -- 
> 
>  -- Jeff --   
> 
>  "There's nothing left in the world to prove.  All that's worth doing
>   is to love one another, using whatever means are available to serve."
> 





Re: Off Topic: Re: Mutt, and local-user email

2001-05-25 Thread Jeff Gordon

On Fri, May 25, 2001 at 04:31:10PM -0500, Jeffrey D. Gordon wrote:

> Ack No!
> Not another Jeff Gordon
> 
> *panic attempt to flee*

I know the feeling. :-)  (Aside from the racecar driver, there's also a
spokesman for the Navy who pops up from time to time.)

Jeffrey B. Gordon, here.

-- 

 -- Jeff --   

 "There's nothing left in the world to prove.  All that's worth doing
  is to love one another, using whatever means are available to serve."



Mutt, and local-user email

2001-05-25 Thread Jeff Gordon

About a week ago Kieran Barnes was asking how to get Mutt working in a
vpopmail environment.  Answers were "here's my .muttrc" and "set up an
IMAP server", essentially -- good answers, but I'm not sure we ever got
to the heart of what the problem was.

Maybe the question is:  How can you log onto the server, then access
mail that's in a vpop 'virtualdomain'...?  To the server, you're -not-
that user, and you're not user 'vpopmail' either -- so, given that
arrangement, how could you make use of Mutt to handle email from on the
server...?

Would this be solved by having Mutt talk to an IMAP server (or even a POP
server with Mutt's 'unset pop_delete' switch thrown), instead of
accessing the Maildir directly?  And, I expect, you'd have to make all
sorts of changes in Mutt to get the ougoing message headers to turn out
right -- since whichever 'user' you are when using Mutt won't have the
same name as the virtualdomain user.  (scratching head)

Have I got it about right...?

-- 

 -- Jeff --   

 "There's nothing left in the world to prove.  All that's worth doing
  is to love one another, using whatever means are available to serve."



Re: dbfunctions - it's over

2001-05-25 Thread Wojciech Smolkowski

Hi,

Can anyone tell me, why there is no answer ( for letters with 'dbfunctions'
in Subject ) from inter7.com ?

On Fri, 18 May 2001, Krzysztof Dabrowski wrote:

> Hello..
>
> It's a sad day, but i guess it was ment to be like this
>
> We are stoping the dbfunction patch development. There will be no more
> releases from us. The already finished improved quota support (no re-calc
> on every delivery with small patch to qmail-pop3d) wont be released too.
>
> We have decided to start a similar project on our own. It'll differ from
> vpopmail in 2 aspects:
>
> a) speed - we aim to be nearly as fast as stock qmail but with mass virtual
> hosting support.
> b) quota - file system independent fast quota system
> c) simplicity - no bloat..
>
> At this point of time i can not tell you if it's going to be open project
> or not - i have to consult our management (we are being paid to program
> it). But inerested parties can contact me and we can work something out i
> supose.
>
> If somebody wants to maintain the dbfunction patch then feel free to
> contact me. You will be able to download the last release version together
> with vpopmial that works with it from my homepage.
>
> Thanks for all good words from users of the patch.
>
> And to Ken: Sorry, you just don't know how to run an open source project,
> period.
>
> bye,
>
> Kris
>


wojciech smołkowski [ mailto:[EMAIL PROTECTED]]
PGP key: sh# pgpv hkp -a keys.pgp.com/0x2FFD974D
[mobile ph. +48502525521] * Powered by /bin/pine






Re: vuserinfo on different box to main vpopmail install, shared filer

2001-05-25 Thread Sean C Truman

Upgrade to vpopmail-4.10.7..

Sean
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Ben Beuchler" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, May 25, 2001 12:13 PM
Subject: Re: vuserinfo on different box to main vpopmail install, shared
filer


> I'm having a problem with this as well, however I'm using mysql
> authentication on vpopmail 4.9.10.  When I try to run vuserinfo I get:
>
> [root@mail bin]# ./vuserinfo [EMAIL PROTECTED]
> vsql_getpw: failed select
>
> I have setup vpopmail with large site.  Here is the strace output and a
> select statement to prove that I'm not on glue and the user and domain
> exist =)  :
>
> fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
> read(3, 0x8056738, 8192)= -1 EAGAIN (Resource temporarily
> unavai
> lable)
> fcntl64(3, F_SETFL, O_RDWR) = 0
> write(3, "L\0\0\0\3select pw_name, pw_passwd, "..., 80) = 80
> read(3, "9\0\0\1", 4)   = 4
> read(3, "\377(\4You have an error in your SQL"..., 57) = 57
> fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
> = 0x40
> 018000
> ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
> write(1, "vsql_getpw: failed select\n", 26vsql_getpw: failed select
> ) = 26
> fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
> read(3, 0x8056738, 8192)= -1 EAGAIN (Resource temporarily
> unavai
> lable)
> fcntl64(3, F_SETFL, O_RDWR) = 0
> write(3, "\1\0\0\0\1", 5)   = 5
> shutdown(3, 2 /* send and receive */)   = 0
> close(3)= 0
> munmap(0x40018000, 4096)= 0
> _exit(0)= ?
>
> mysql> select * from test_com where pw_name="test";
>
+-+---+++---+---

> ---+---+
> | pw_name | pw_passwd | pw_uid | pw_gid | pw_gecos  | pw_dir
>| pw_shell  |
>
+-+---+++---+---

> ---+---+
> | test| WImaDxBHOuPBs |  0 |  0 | Test User |
> /home/vpopmail/domains
> /test.com/test | 1 |
>
+-+---+++---+---

> ---+---+
> 1 row in set (0.00 sec)
>
> It looks like there's a problem with the SQL statement that it's using.
>
> Unfortunatly, I'm not really sure how to figure out what the statement it
> is using is.  What's my next step?
>
> Cheers,
>
> Tren.
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> - Tren Blackburn - Ownermailto:[EMAIL PROTECTED]  =
> = End of Time Networks  http://www.theendoftime.net  -
> - (403) 269-2122 =
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
> On Fri, 25 May 2001, Ben Beuchler wrote:
>
> > On Fri, May 25, 2001 at 03:08:50PM +0100, Jack Howard wrote:
> >
> > > First it tries to read /var/qmail/users/cdb (and gets a no such file),
> > > then it tries to open:
> > >
> > > /vpasswd.cdb, where  is an odd capital B (but different), 2 u
> > > characters with accents, and an upside down question mark.  This also
> > > returns "no such file".
> > >
> > > Checking on the actual mailservers there is indeed a cdb file in
qmail's
> > > ~/users directory, however it doesn't exist on the Linux box, even
> > > though both qmail and vpopmail are running.
> >
> > You need a coopy of the /var/qmail/users/cdb file from the mail server
> > on the linux box.  It uses that file to figure out which directory to
> > look in for the vpasswd.cdb file.  If it can't find the users/cdb file,
> > it uses garbage for the path to the vpasswd.cdb file rather than failing
> > with an error.
> >
> > -Ben
> >
> > --
> > Ben Beuchler   There is no
spoon.
> > [EMAIL PROTECTED]-- The
Matrix
> >
>
>




Re: vPopmail compile issues? seg faults every program!

2001-05-25 Thread Jason Lim

Hi,

You realize, of course, that vpopmail is now packaged?

Sincerely,
Jason

- Original Message -
From: "Rolf Martin-Hoster" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 26, 2001 1:58 AM
Subject: vPopmail compile issues? seg faults every program!


> I can compile fine but any of the apps have seg faults. This is on a
> machine that I lost and had to restore from a flawed packup. Fresh
install
> of qmail via qmail-src.deb (debian potato) and fresh compile of
vpopmail.
>
> Sincerely,
> Rolf Martin-Hoster
>
> http://www.zentek-international.com/




vPopmail compile issues? seg faults every program!

2001-05-25 Thread Rolf Martin-Hoster

I can compile fine but any of the apps have seg faults. This is on a 
machine that I lost and had to restore from a flawed packup. Fresh install 
of qmail via qmail-src.deb (debian potato) and fresh compile of vpopmail.

Sincerely,
Rolf Martin-Hoster




Re: vuserinfo on different box to main vpopmail install, sharedfiler

2001-05-25 Thread fox

I'm having a problem with this as well, however I'm using mysql
authentication on vpopmail 4.9.10.  When I try to run vuserinfo I get:

[root@mail bin]# ./vuserinfo [EMAIL PROTECTED]
vsql_getpw: failed select

I have setup vpopmail with large site.  Here is the strace output and a
select statement to prove that I'm not on glue and the user and domain
exist =)  :

fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
read(3, 0x8056738, 8192)= -1 EAGAIN (Resource temporarily
unavai
lable)
fcntl64(3, F_SETFL, O_RDWR) = 0
write(3, "L\0\0\0\3select pw_name, pw_passwd, "..., 80) = 80
read(3, "9\0\0\1", 4)   = 4
read(3, "\377(\4You have an error in your SQL"..., 57) = 57
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x40
018000
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
write(1, "vsql_getpw: failed select\n", 26vsql_getpw: failed select
) = 26
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
read(3, 0x8056738, 8192)= -1 EAGAIN (Resource temporarily
unavai
lable)
fcntl64(3, F_SETFL, O_RDWR) = 0
write(3, "\1\0\0\0\1", 5)   = 5
shutdown(3, 2 /* send and receive */)   = 0
close(3)= 0
munmap(0x40018000, 4096)= 0
_exit(0)= ?

mysql> select * from test_com where pw_name="test";
+-+---+++---+---
---+---+
| pw_name | pw_passwd | pw_uid | pw_gid | pw_gecos  | pw_dir
   | pw_shell  |
+-+---+++---+---
---+---+
| test| WImaDxBHOuPBs |  0 |  0 | Test User |
/home/vpopmail/domains
/test.com/test | 1 |
+-+---+++---+---
---+---+
1 row in set (0.00 sec)

It looks like there's a problem with the SQL statement that it's using.

Unfortunatly, I'm not really sure how to figure out what the statement it
is using is.  What's my next step?

Cheers,

Tren.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- Tren Blackburn - Ownermailto:[EMAIL PROTECTED]  =
= End of Time Networks  http://www.theendoftime.net  -
- (403) 269-2122 =
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

On Fri, 25 May 2001, Ben Beuchler wrote:

> On Fri, May 25, 2001 at 03:08:50PM +0100, Jack Howard wrote:
>
> > First it tries to read /var/qmail/users/cdb (and gets a no such file),
> > then it tries to open:
> >
> > /vpasswd.cdb, where  is an odd capital B (but different), 2 u
> > characters with accents, and an upside down question mark.  This also
> > returns "no such file".
> >
> > Checking on the actual mailservers there is indeed a cdb file in qmail's
> > ~/users directory, however it doesn't exist on the Linux box, even
> > though both qmail and vpopmail are running.
>
> You need a coopy of the /var/qmail/users/cdb file from the mail server
> on the linux box.  It uses that file to figure out which directory to
> look in for the vpasswd.cdb file.  If it can't find the users/cdb file,
> it uses garbage for the path to the vpasswd.cdb file rather than failing
> with an error.
>
> -Ben
>
> --
> Ben Beuchler   There is no spoon.
> [EMAIL PROTECTED]-- The Matrix
>




Re: moving domains ??????? ***SOLVED and CLOSED***

2001-05-25 Thread Jason Lim

SOLVED and CLOSED.

The problem WAS... (and you won't believe this)...

in Debian, /var/qmail/* is basically just symlinks to various places:
sh-2.05# cd /var/qmail/
sh-2.05# ls -al
total 8
drwxr-xr-x2 root qmail4096 Jan 16 00:04 .
drwxr-x--x   17 root root 4096 Aug  3  2000 ..
lrwxrwxrwx1 root root   20 Jan 16 00:04 alias ->
/var/lib/qmail/alias
lrwxrwxrwx1 root root9 Jan 16 00:04 bin -> /usr/sbin
lrwxrwxrwx1 root root   34 Jan 16 00:04 boot ->
/usr/share/doc/qmail/examples/boot
lrwxrwxrwx1 root root   10 Jan 16 00:04 control ->
/etc/qmail
lrwxrwxrwx1 root root   20 Jan 16 00:04 doc ->
/usr/share/doc/qmail
lrwxrwxrwx1 root root   16 Jan 16 00:04 queue ->
/var/spool/qmail
lrwxrwxrwx1 root root   16 Jan 16 00:04 users ->
/etc/qmail/users

What happened on the Broken box was that /var/qmail/bin was JUST
/var/qmail/bin/, an empty directory, and NOT a symlink to /usr/sbin as it
should be.

Why on EARTH strace would show the error to be with the cdb file, and why
on HECK the error message said it couldn't get into the vpopmail/domain
directory, I will never know.

If the stupid error messages were a tad more intuitive I... and everyone
that has been helping to trace down this error, wouldn't have had to spend
so much wasted time on this.

To Chris Bolt and Raghu V Singh: thanks for helping out guys. Well, what I
can say out of all this is that I learnt quite a bit about strace, and the
finer workings of qmail. I never thought it would be this problem. Sorry
:-(

If you ever come to Hong Kong, let me know :-)

Sincerely,
Jason

- Original Message -
From: "Raghu V Singh" <[EMAIL PROTECTED]>
To: "Jason Lim" <[EMAIL PROTECTED]>
Sent: Saturday, May 26, 2001 12:20 AM
Subject: Re: moving domains ???


>
> Jason ,
>
>What is inside the assign file in the users directory ? Look at the
> usids/gids ( and paths ) stored in it . Send out the contents to us if
> possible.
>
> Raghu
>
> From:"Jason Lim" <[EMAIL PROTECTED]> on 05/25/2001 11:19 PM ZE8
>
>
> Sent by: "Jason Lim" <[EMAIL PROTECTED]>
>
> Please respond to "Jason Lim" <[EMAIL PROTECTED]>
>
>
>
> To:  <[EMAIL PROTECTED]>
> cc:  "Chris Bolt" <[EMAIL PROTECTED]>(bcc: Raghu V Singh/rsingh1/LSU)
>
> Subject:  Re: moving domains ???
>
>
>
> Heres an interesting thing for you to see:
>
> sh-2.05# cd users
> sh-2.05# ls -al
> total 24
> drwxr-xr-x2 root qmail4096 May 25 21:08 .
> drwxr-xr-x3 root root 4096 May 25 21:08 ..
> -rw-r--r--1 root root 5115 May 25 21:08 assign
> -rw---1 root root0 May 25 21:08 assign.lock
> -rw-r--r--1 root root 4937 Feb 27 23:48 cdb
> sh-2.05# pwd
> /etc/qmail/users
> sh-2.05#
>
> Notice how cdb is dated in the FUTURE. Could that why it is having
trouble
> being read, or if you say it is being read, then maybe it is having
> trouble processing it because of the date?
> In case you are curious:
> sh-2.05# date
> Fri May 25 23:05:12 HKT 2001
>
> so the date is right ;-)
>
> Here is also something interesting:
>
> sh-2.05# qmail-newu
> sh-2.05# ls -al
> total 28
> drwxr-xr-x2 root qmail4096 May 25 23:05 .
> drwxr-xr-x3 root root 4096 May 25 21:08 ..
> -rw-r--r--1 root root 5115 May 25 21:08 assign
> -rw---1 root root0 May 25 21:08 assign.lock
> -rw-r--r--1 root root 8608 May 25 23:05 cdb
>
> Okay... so qmail-newu regenerated cdb and made it have the right date.
> thats good. so next...
>
> sh-2.05# vadddomain test45.com
> Unknown parameter:
>
> Please enter password for postmaster:
> enter password again:
> Error: Unable to chdir to vpopmail/domains directory
> sh-2.05# ls -al
> total 28
> drwxr-xr-x2 root qmail4096 May 25 23:06 .
> drwxr-xr-x3 root root 4096 May 25 23:06 ..
> -rw-r--r--1 root root 5192 May 25 23:06 assign
> -rw---1 root root0 May 25 23:06 assign.lock
> -rw-r--r--1 root root 8608 May 25 23:05 cdb
> sh-2.05#
> sh-2.05# qmail-newu
> sh-2.05# ls -al
> total 28
> drwxr-xr-x2 root qmail4096 May 25 23:08 .
> drwxr-xr-x3 root root 4096 May 25 23:06 ..
> -rw-r--r--1 root root 5192 May 25 23:06 assign
> -rw---1 root root0 May 25 23:06 assign.lock
> -rw-r--r--1 root root 8706 May 25 23:08 cdb
>
> How come cdb isn't updated until I manually run qmail-newu? Something
> fishy going on there... assign increases but cdb stays the same till a
> manual update? Shouldn't this happen automagically?
>
> Your suggestions below are noted, and I will try them out very shortly,
> and report back what happened. I really hope it works.
>
> Concerning the /etc/passwd entry:
> sh-2.05# more /etc/passwd | grep vpop
> vpopmail:x:64020:64020:Vpopmail use

Re: moving domains ???????

2001-05-25 Thread Jason Lim

Heres an interesting thing for you to see:

sh-2.05# cd users
sh-2.05# ls -al
total 24
drwxr-xr-x2 root qmail4096 May 25 21:08 .
drwxr-xr-x3 root root 4096 May 25 21:08 ..
-rw-r--r--1 root root 5115 May 25 21:08 assign
-rw---1 root root0 May 25 21:08 assign.lock
-rw-r--r--1 root root 4937 Feb 27 23:48 cdb
sh-2.05# pwd
/etc/qmail/users
sh-2.05#

Notice how cdb is dated in the FUTURE. Could that why it is having trouble
being read, or if you say it is being read, then maybe it is having
trouble processing it because of the date?
In case you are curious:
sh-2.05# date
Fri May 25 23:05:12 HKT 2001

so the date is right ;-)

Here is also something interesting:

sh-2.05# qmail-newu
sh-2.05# ls -al
total 28
drwxr-xr-x2 root qmail4096 May 25 23:05 .
drwxr-xr-x3 root root 4096 May 25 21:08 ..
-rw-r--r--1 root root 5115 May 25 21:08 assign
-rw---1 root root0 May 25 21:08 assign.lock
-rw-r--r--1 root root 8608 May 25 23:05 cdb

Okay... so qmail-newu regenerated cdb and made it have the right date.
thats good. so next...

sh-2.05# vadddomain test45.com
Unknown parameter:

Please enter password for postmaster:
enter password again:
Error: Unable to chdir to vpopmail/domains directory
sh-2.05# ls -al
total 28
drwxr-xr-x2 root qmail4096 May 25 23:06 .
drwxr-xr-x3 root root 4096 May 25 23:06 ..
-rw-r--r--1 root root 5192 May 25 23:06 assign
-rw---1 root root0 May 25 23:06 assign.lock
-rw-r--r--1 root root 8608 May 25 23:05 cdb
sh-2.05#
sh-2.05# qmail-newu
sh-2.05# ls -al
total 28
drwxr-xr-x2 root qmail4096 May 25 23:08 .
drwxr-xr-x3 root root 4096 May 25 23:06 ..
-rw-r--r--1 root root 5192 May 25 23:06 assign
-rw---1 root root0 May 25 23:06 assign.lock
-rw-r--r--1 root root 8706 May 25 23:08 cdb

How come cdb isn't updated until I manually run qmail-newu? Something
fishy going on there... assign increases but cdb stays the same till a
manual update? Shouldn't this happen automagically?

Your suggestions below are noted, and I will try them out very shortly,
and report back what happened. I really hope it works.

Concerning the /etc/passwd entry:
sh-2.05# more /etc/passwd | grep vpop
vpopmail:x:64020:64020:Vpopmail user,,,:/var/lib/vpopmail:/bin/bash

Thats what Debian Linux installs vpopmail as by default. It definately
works on the other box... and did so until recently on the broken box, so
I'm sure this isn't the issue thats causing it to fail now.

Sincerely,
Jason

- Original Message -
From: "Chris Bolt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 25, 2001 11:01 PM
Subject: RE: moving domains ???


> > As you can see, it is looking at /var/qmail/users/cdb, BUT with the
broken
> > box, it doesn't seem to find anything, and just looks at /vpasswd.cdb
.
>
> The broken box can find /var/qmail/users/cdb
>
> > Obviously it should be in
> > /var/lib/vpopmail/domains/test41.com/vpasswd.cdb, which the Working
box
> > has found.
> >
> > Now my question is... is it possible to REGENERATE the
> > /var/qmail/users/cdb file? Maybe the problem lies there?
>
> /var/qmail/bin/qmail-newu does this
>
> > From my understanding, the cdb file contains the information on where
> > each domain's files are, and since the Broken box can't find it, it
> assumes its
> > in / .
> >
> > Is this thinking right? Can the cdb file even BE regenerated?
>
> - Remove /var/qmail/users/assign and cdb
> - Remove all test domains from:
>   /var/lib/vpopmail/domains
>   /var/qmail/control/rcpthosts
>   /var/qmail/control/virtualdomains
>
> And try again.
>
> Are you absolutely sure that
>
> vpopmail:x:64020:64020:Vpopmail user,,,:/var/lib/vpopmail:/bin/bash
>
> is EXACTLY the same on both boxes? 64020 sounds like too large of a uid
to
> me.
>
>




Re: vuserinfo on different box to main vpopmail install, shared filer

2001-05-25 Thread Jason Lim

Hi,

I'm having a similar problem (I THINK)...

what output from strace do you get for the part where it tries to open
/var/qmail/users/cdb, but fails?

Sincerely,
Jason

- Original Message -
From: "Jack Howard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 25, 2001 10:08 PM
Subject: Re: vuserinfo on different box to main vpopmail install, shared
filer


> In a previous message, Chris Bolt <[EMAIL PROTECTED]> said:
>
> >Type strace before vuserinfo (strace vuserinfo [EMAIL PROTECTED]) and it
> >should show you the last failure before it dies, including paths etc.
>
> Ta - forgot about strace.
>
> Ok, what I get is a bit strange:
>
> First it tries to read /var/qmail/users/cdb (and gets a no such file),
> then it tries to open:
>
> /vpasswd.cdb, where  is an odd capital B (but different), 2 u
> characters with accents, and an upside down question mark.  This also
> returns "no such file".
>
> Checking on the actual mailservers there is indeed a cdb file in qmail's
> ~/users directory, however it doesn't exist on the Linux box, even
> though both qmail and vpopmail are running.
>
> 
>
> Ok, that created /var/qmail/users/cdb, but vuserinfo is still trying to
> open /vpasswd.cdb, where  is a different set of strange
> characters, and getting a "no such file".  I guess this is the point of
> failure (it's wanting to open the password file for that domain), any
> ideas how I persuade it that the files are available?
>
> Hmm - tried adding a domain again - this time it locks the terminal and
> gives a "file busy try later" error.
>
> Thoughts?
>
> --
>  - Jack Howard, Network Development Engineer & Abuse Prevention
Co-ordinator
>  - Firstnet Services Limited : 0113 292 7700 :
http://www.firstnet.net.uk
>  - [ This message subject to:
http://www.firstnet.net.uk/disclaimer.html ]
>




RE: moving domains ???????

2001-05-25 Thread Chris Bolt

> As you can see, it is looking at /var/qmail/users/cdb, BUT with the broken
> box, it doesn't seem to find anything, and just looks at /vpasswd.cdb .

The broken box can find /var/qmail/users/cdb

> Obviously it should be in
> /var/lib/vpopmail/domains/test41.com/vpasswd.cdb, which the Working box
> has found.
>
> Now my question is... is it possible to REGENERATE the
> /var/qmail/users/cdb file? Maybe the problem lies there?

/var/qmail/bin/qmail-newu does this

> From my understanding, the cdb file contains the information on where
> each domain's files are, and since the Broken box can't find it, it
assumes its
> in / .
>
> Is this thinking right? Can the cdb file even BE regenerated?

- Remove /var/qmail/users/assign and cdb
- Remove all test domains from:
  /var/lib/vpopmail/domains
  /var/qmail/control/rcpthosts
  /var/qmail/control/virtualdomains

And try again.

Are you absolutely sure that

vpopmail:x:64020:64020:Vpopmail user,,,:/var/lib/vpopmail:/bin/bash

is EXACTLY the same on both boxes? 64020 sounds like too large of a uid to
me.




Re: vuserinfo on different box to main vpopmail install, shared filer

2001-05-25 Thread Ben Beuchler

On Fri, May 25, 2001 at 03:08:50PM +0100, Jack Howard wrote:

> First it tries to read /var/qmail/users/cdb (and gets a no such file),
> then it tries to open:
> 
> /vpasswd.cdb, where  is an odd capital B (but different), 2 u
> characters with accents, and an upside down question mark.  This also
> returns "no such file".
> 
> Checking on the actual mailservers there is indeed a cdb file in qmail's
> ~/users directory, however it doesn't exist on the Linux box, even
> though both qmail and vpopmail are running.

You need a coopy of the /var/qmail/users/cdb file from the mail server 
on the linux box.  It uses that file to figure out which directory to
look in for the vpasswd.cdb file.  If it can't find the users/cdb file,
it uses garbage for the path to the vpasswd.cdb file rather than failing
with an error.

-Ben

-- 
Ben Beuchler   There is no spoon.
[EMAIL PROTECTED]-- The Matrix



Re: vuserinfo on different box to main vpopmail install, shared filer

2001-05-25 Thread Jack Howard

In a previous message, Chris Bolt <[EMAIL PROTECTED]> said:

>Type strace before vuserinfo (strace vuserinfo [EMAIL PROTECTED]) and it
>should show you the last failure before it dies, including paths etc.

Ta - forgot about strace.

Ok, what I get is a bit strange:

First it tries to read /var/qmail/users/cdb (and gets a no such file),
then it tries to open:

/vpasswd.cdb, where  is an odd capital B (but different), 2 u
characters with accents, and an upside down question mark.  This also
returns "no such file".

Checking on the actual mailservers there is indeed a cdb file in qmail's
~/users directory, however it doesn't exist on the Linux box, even
though both qmail and vpopmail are running.



Ok, that created /var/qmail/users/cdb, but vuserinfo is still trying to
open /vpasswd.cdb, where  is a different set of strange
characters, and getting a "no such file".  I guess this is the point of
failure (it's wanting to open the password file for that domain), any
ideas how I persuade it that the files are available?

Hmm - tried adding a domain again - this time it locks the terminal and
gives a "file busy try later" error.

Thoughts?

-- 
 - Jack Howard, Network Development Engineer & Abuse Prevention Co-ordinator
 - Firstnet Services Limited : 0113 292 7700 : http://www.firstnet.net.uk
 - [ This message subject to: http://www.firstnet.net.uk/disclaimer.html ]



Re: moving domains ???????

2001-05-25 Thread Jason Lim

HI,

If at all possible I'd rather avoid recompiling my own version, and use
the prepackaged one.

I did a vadduser, and I found the following (vadduser [EMAIL PROTECTED]):
WORKING BOX:

open("/var/qmail/users/cdb", O_RDONLY)  = 3
lseek(3, 424, SEEK_SET) = 424
read(3, "{\17\0\0\2\0\0\0", 8)  = 8
lseek(3, 3963, SEEK_SET)= 3963
read(3, "5\32\217~\320\16\0\0", 8)  = 8
lseek(3, 3792, SEEK_SET)= 3792
read(3, "\f\0\0\0>\0\0\0", 8)   = 8
read(3, "!test41.com-", 12) = 12
fstat(3, {st_mode=S_IFREG|0644, st_size=4299, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40017000
read(3, "test41.com\00064020\00064020\0/var/lib/"..., 4096) = 487
getpid()= 28577
open("/var/lib/vpopmail/domains/test41.com/vpasswd.cdb", O_RDONLY) = 4

BROKEN BOX:

open("/var/qmail/users/cdb", O_RDONLY)  = 3
lseek(3, 424, SEEK_SET) = 424
read(3, "\251\21\0\0\0\0\0\0", 8)   = 8
close(3)= 0
getpid()= 24674
open("/vpasswd.cdb", O_RDONLY)  = -1 ENOENT (No such file or
directory)
open("/.vpasswd.lock", O_RDWR|O_CREAT|O_TRUNC, 0666) = 3
fcntl64(0x3, 0x6, 0xbb5c, 0)= -1 ENOSYS (Function not
implemented)
fcntl(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0
open("/vpasswd", O_RDONLY)  = -1 ENOENT (No such file or
directory)
fcntl(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
close(3)= 0
open("/vpasswd.cdb", O_RDONLY)  = -1 ENOENT (No such file or
directory)
getcwd("/mnt/mid/var/lib/vpopmail/domains", 300) = 34
chdir("")   = -1 ENOENT (No such file or
directory)
chdir("/mnt/mid/var/lib/vpopmail/domains") = 0
write(1, "Error: Unable to chdir to vpopma"..., 53Error: Unable to chdir
to vpopmail/domains directory
) = 53
---

As you can see, it is looking at /var/qmail/users/cdb, BUT with the broken
box, it doesn't seem to find anything, and just looks at /vpasswd.cdb .
Obviously it should be in
/var/lib/vpopmail/domains/test41.com/vpasswd.cdb, which the Working box
has found.

Now my question is... is it possible to REGENERATE the
/var/qmail/users/cdb file? Maybe the problem lies there? From my
understanding, the cdb file contains the information on where each
domain's files are, and since the Broken box can't find it, it assumes its
in / .

Is this thinking right? Can the cdb file even BE regenerated?

Sincerely,
Jason

- Original Message -
From: "Chris Bolt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 25, 2001 9:19 PM
Subject: RE: moving domains ???


> Grab vpopmail 4.9.10 from http://www.inter7.com/vpopmail/, extract it,
run
> ./configure and see what it prints. If everything looks fine, type make
then
> run ./vadddomain in the working directory (before you make install) to
see
> if it is still messed up.
>
> > Hi Chris,
> >
> > I did not compile these. Both boxes are running the same precompiled
> > packages.
> >
> > In fact, both boxes were working, and I have not updated the package
in a
> > while (at least 1 1/2 months). The binaries for both boxes are exactly
the
> > same (i check filesizes of both).
> >
> > Yes, both run exactly the same OS. Same linux kernel. 99% same
software.
> >
> > Any ideas? I'm lost :-(
>
>




OpenLDAP 2 & vpopmail

2001-05-25 Thread Christian Wiese

Hi Folks,

I'm trying to compile vpopmail with LDAP support using OpenLDAP 2.0.7-14 and 
vpopmail-4.9.10 on RedHat 7.1, but I get errors compiling vauth.c

gcc -I. -I/usr/include  -g -O2 -Wall -c vauth.c
vauth.c: In function `vauth_adduser':
vauth.c:482: dereferencing pointer to incomplete type
vauth.c: In function `vauth_adddomain':
vauth.c:572: dereferencing pointer to incomplete type
vauth.c: At top level:
vauth.c:842: conflicting types for `vwrite_dir_control'
vauth.h:81: previous declaration of `vwrite_dir_control'
make[2]: *** [vauth.o] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis 
»/usr/local/src/vpopmail-4.9.10«
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis 
»/usr/local/src/vpopmail-4.9.10«
make: *** [all-recursive-am] Fehler 2

Can anybody tell me if OpenLDAP 2 is supported.

Greetings from Berlin

Christian



RE: vuserinfo on different box to main vpopmail install, shared filer

2001-05-25 Thread Chris Bolt

Type strace before vuserinfo (strace vuserinfo [EMAIL PROTECTED]) and it
should show you the last failure before it dies, including paths etc.

> The problem:
>
> I can't get the linux box's vuserinfo to work.  It just reports "no such
> user".
>
> The user and group IDs for qmail and vpopmail are the same on all the
> boxes, all the /home/vpopmail/domains directories point to the same
> place, and file ownership has been set to vpopmail - vchkpw throughout.
>
> Can anyone tell me where, exactly, does vuserinfo read it's information
> from, and what does it need to be able to see/access to be able to work?
>
> All advice appreciated!




RE: moving domains ???????

2001-05-25 Thread Chris Bolt

Grab vpopmail 4.9.10 from http://www.inter7.com/vpopmail/, extract it, run
./configure and see what it prints. If everything looks fine, type make then
run ./vadddomain in the working directory (before you make install) to see
if it is still messed up.

> Hi Chris,
>
> I did not compile these. Both boxes are running the same precompiled
> packages.
>
> In fact, both boxes were working, and I have not updated the package in a
> while (at least 1 1/2 months). The binaries for both boxes are exactly the
> same (i check filesizes of both).
>
> Yes, both run exactly the same OS. Same linux kernel. 99% same software.
>
> Any ideas? I'm lost :-(




vuserinfo on different box to main vpopmail install, shared filer

2001-05-25 Thread Jack Howard

Hi!

I've got a problem I've not seen listed before:

I need to run vuserinfo on a different box to the mailserver.

Background:

I have a cluster of two mail servers, one for inbound traffic to our
network, and one for outbound relay, and pop3 collection.  These are
both Solaris boxes.

I also have a separate ISP control system (cgi/MySQl/Perl stuff).  This
is a Linux box.

All of these machines are mounted to a common filer, which they access
through /filer.

On both the Solaris boxen, and the Linux one, /home/vpopmail/domains is
a symlink to /filer/mail/domains, under which all the domains and users
live.

Addition and removal of domains and users is always done from the relay
box, however vuserinfo on the inbound box can still identify where user
accounts are - I assume it's reading from the shared information on the
filer.

The problem:

I can't get the linux box's vuserinfo to work.  It just reports "no such
user".

The user and group IDs for qmail and vpopmail are the same on all the
boxes, all the /home/vpopmail/domains directories point to the same
place, and file ownership has been set to vpopmail - vchkpw throughout.

Can anyone tell me where, exactly, does vuserinfo read it's information
from, and what does it need to be able to see/access to be able to work?

All advice appreciated!

-- 
 - Jack Howard, Network Development Engineer & Abuse Prevention Co-ordinator
 - Firstnet Services Limited : 0113 292 7700 : http://www.firstnet.net.uk
 - [ This message subject to: http://www.firstnet.net.uk/disclaimer.html ]



Re: Sorry, offtopic again

2001-05-25 Thread Stuart Harris

I'm not..  this is layout..

/store/mail/u/s/username/Maildir

have an old /etc/mail/aliases and /etc/mail/virtusers about 60K lines.. (not
too much of a problem)
setup as per docs.. and we can get to a point (if we make fastforward handle
+ in /var/qmail/users/assign)

mail for [EMAIL PROTECTED]
currenently as per qmail pics, remote-> local mail looks up user joe, if he
exists deliver, if not go on and check for an entry for user
[EMAIL PROTECTED]
this sadly is the opposite way to what I need.. anybody know?

I've managed to get it to recognise the user by adding the alias user as +
in users/assign however, when it tries to deliver to userid@mailserver which
should be fine, it cant, and mail never gets delivered.





- Original Message -
From: "Daniel Biddle" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 25, 2001 5:00 AM
Subject: Re: Sorry, offtopic again


> On Fri, 25 May 2001, Stuart Harris wrote:
>
> > Maybe I should subscribe to the qmail list.. oh well not tonight..
anyways
> > I'm right in the middle of a mailserver fix and decided to switch from
> > sendmail to qmail at the same time.. except i have a problem..
fastforward
> > is only called for user@ if 'user' doesnt exist.. and if it
does,
> > its delivering mail for all domains to is.. this is a bad thing as we
have a
> > server with several thousand mail users on it and they do conflict with
the
> > addresses on the domains... (its 3am and were need to have it up within
> > another 2 or so hours.. if this doesnt work very soon, I'm gonna have to
> > configure sendmail on it..)
>
> Good morning! :-)
>
> Why are you trying to use both vpopmail and fastforward?
> Are the affected domains listed in qmail/control/locals?
>
> --
> Daniel Biddle <[EMAIL PROTECTED]>
>




Re: moving domains ???????

2001-05-25 Thread Jason Lim

Hi Chris,

I did not compile these. Both boxes are running the same precompiled
packages.

In fact, both boxes were working, and I have not updated the package in a
while (at least 1 1/2 months). The binaries for both boxes are exactly the
same (i check filesizes of both).

Yes, both run exactly the same OS. Same linux kernel. 99% same software.

Any ideas? I'm lost :-(

Sincerely,
Jason

- Original Message -
From: "Chris Bolt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 25, 2001 7:20 PM
Subject: RE: moving domains ???


> > Now the question is... where the HECK is vpopmail getting the idea
that
> > /root is where vpopmail is?
> >  On both the working and broken boxes, the passwd entry is:
> >
> > vpopmail:x:64020:64020:Vpopmail user,,,:/var/lib/vpopmail:/bin/bash
> >
> > which is correct.
>
> What did the broken box say when you did ./configure? Are both boxes
running
> the same operating system?
>
>




RE: moving domains ???????

2001-05-25 Thread Chris Bolt

> Now the question is... where the HECK is vpopmail getting the idea that
> /root is where vpopmail is?
>  On both the working and broken boxes, the passwd entry is:
>
> vpopmail:x:64020:64020:Vpopmail user,,,:/var/lib/vpopmail:/bin/bash
>
> which is correct.

What did the broken box say when you did ./configure? Are both boxes running
the same operating system?




Re: moving domains ???????

2001-05-25 Thread Jason Lim

Hi Raghu,

Okay... I did as you said. Here is the output (unless otherwise stated,
the output of the WORKING box and BROKEN box is the same):

sh-2.05# cd users
sh-2.05# ls -al
total 24
drwxr-xr-x2 root qmail4096 May 25 18:45 .
drwxr-xr-x3 root root 4096 May 25 18:45 ..
-rw-r--r--1 root root 4961 May 25 18:45 assign
-rw---1 root root0 May 25 18:45 assign.lock
-rw-r--r--1 root root 4937 Feb 27 23:48 cdb
sh-2.05# pwd
/var/qmail/users


A look at assign (on the broken box) showed all my attempts to create
domains using vadddomain:
+test34.com-:test34.com:64020:64020:/var/lib/vpopmail/domains/test34.com:-
::
+test36.com-:test36.com:64020:64020:/var/lib/vpopmail/domains/test36.com:-
::
+test37.com-:test37.com:64020:64020:/var/lib/vpopmail/domains/test37.com:-
::
+test38.com-:test38.com:64020:64020:/var/lib/vpopmail/domains/test38.com:-
::
+test39.com-:test39.com:64020:64020:/var/lib/vpopmail/domains/test39.com:-
::

Keep in mind that while THESE entries are there, in
/var/lib/vpopmail/domains/test39.com/ , there is only one file called
.qmail-default, and nothing else. I also cannot vadduser to add accounts
to test39.com .

sh-2.05# ls -al /var/lib/vpopmail/domains/test39.com
total 12
drwx--2 vpopmail vchkpw   4096 May 25 18:45 .
drwx--   41 vpopmail vchkpw   4096 May 25 18:45 ..
-rw---1 vpopmail vchkpw 58 May 25 18:45 .qmail-default

>From my previous post, you can see that /root or / seems to be the
directory that vadddomain THINKS test39.com is in. I have NO idea why it
thinks that, but thats the way it is :-(

Sincerely,
Jason

- Original Message -
From: "Raghu V Singh" <[EMAIL PROTECTED]>
To: "Jason Lim" <[EMAIL PROTECTED]>
Sent: Friday, May 25, 2001 5:50 PM
Subject: Re: moving domains ???


>
> Jason,
>
>  Take a good look at the uids/gids in the /var/qmail/users/assign
directory
> and make sure they match to the ones in your /etc/passwd for vpopmail
and
> groups in /etc/groups. Also check the location of the home dir for
vpopmail
> in the /etc/passwd and the path the /var/qmail/users/assign is using
>
> hope this helps
>
> Raghu
>
>
>
> From:"Jason Lim" <[EMAIL PROTECTED]> on 05/25/2001 04:35 PM ZE8
>
>
> Sent by: "Jason Lim" <[EMAIL PROTECTED]>
>
> Please respond to "Jason Lim" <[EMAIL PROTECTED]>
>
>
>
> To:  <[EMAIL PROTECTED]>
> cc:  (bcc: Raghu V Singh/rsingh1/LSU)
>
> Subject:  Re: moving domains ???
>
>
>
> Hi all,
>
> I have this strange problem that has suddenly occurred recently.
>
> I keep getting the following error when running vadddomain:
>
> sh-2.05# vadddomain test14.com
> Unknown parameter:
>
> Please enter password for postmaster:
> enter password again:
> Error: Unable to chdir to vpopmail/domains directory
> sh-2.05#
>
> On all other boxes, that command runs fine. And I've already checked the
> permissions on ALL the directories leading up to the one in ~vpopmail. I
> also checked the permissions of ~vpopmail/domains, and it is the same as
> everything else.
>
> The strange thing is that it DOES create the directory:
> drwx-- 2 vpopmail vchkpw 4096 May 25 00:45 test14.com
>
> however, inside that directory only the following exists:
> total 12
> drwx-- 2 vpopmail vchkpw 4096 May 25 00:45 .
> drwx-- 23 vpopmail vchkpw 4096 May 25 00:45 ..
> -rw--- 1 vpopmail vchkpw 58 May 25 00:45 .qmail-default
>
> and nothing else. No vpasswd or vpasswd.cdb or anything else. Anyone
know
> whats going on?
>
> I also found:
>
> sh-2.05# ls -al /
> total 1467
> drwxr-x--x 17 root root 4096 May 25 00:22 .
> drwxr-x--x 17 root root 4096 May 25 00:22 ..
> -rw--- 1 root root 0 May 25 07:57 .vpasswd.lock
>
> suddenly after running vadddomain .
>
> vadduser doesn't work at ALL.
>
> Does anyone have any ideas? Free beer to the guy that figures this one
out
> :-)
>
> Thanks in advance.
>
> Jason.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>




Re: moving domains ???????

2001-05-25 Thread Jason Lim

Hi,

Okay... i ran "strace vadddomain test39.com"

a bunch of output. I gather that strace basically traces what the program
is doing (just looking from the output).

So anyway, it stopped at asking for the postmaster password. I assume you
don't actually want that bit, so I just typed in the password, and it
asked me to type in again, i did, and then another bunch of output came
out. I ran this command on 2 different boxes. One box (the one with the
problem) and one WITHOUT the problem, to compare the output and see what
the difference was.

I'll mainly only show the differences... maybe you have the knowledge to
work out what is wrong. Both boxes have nearly identical structures. On
the working box, /var points to /mnt/large/var , while on the broken box,
/var points to /mnt/mid/var , in case you wonder why the two are different
(large, mid, small, etc. are just hard disk mount points) (btw. * is
just me highlighting something):

WORKING BOX:
-
ioctl(3, 0x5401, {B38400 opost -isig icanon -echo ...}) = 0
write(3, "enter password again: ", 22enter password again: )  = 22
read(3, "test\n", 4096) = 5
write(3, "\n", 1
)   = 1
ioctl(3, 0x5404, {B38400 opost isig icanon echo ...}) = 0
close(3)= 0
munmap(0x40017000, 4096)= 0
umask(077)  = 022
*getcwd("/mnt/large/var/lib/vpopmail/domains", 300) = 36*
chdir("/var/lib/vpopmail")  = 0
chdir("domains")= 0
stat("test39.com", 0xbc2c)  = -1 ENOENT (No such file or
directory)
mkdir("test39.com", 0750)   = 0
chown32(0x804b660, 0xfa14, 0xfa14)  = -1 ENOSYS (Function not
implemented)
chown("test39.com", 64020, 64020)   = 0
chdir("test39.com") = 0
open("/var/lib/vpopmail/domains/test39.com/.qmail-default",
O_RDWR|O_CREAT|O_TRUNC, 0666) = 3
fstat(3, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40017000
write(3, "| /var/lib/vpopmail/bin/vdeliver"..., 58) = 58
close(3)= 0
-
BROKEN BOX:
-
ioctl(3, 0x5401, {B38400 opost -isig icanon -echo ...}) = 0
write(3, "enter password again: ", 22enter password again: )  = 22
read(3, "test\n", 4096) = 5
write(3, "\n", 1
)   = 1
ioctl(3, 0x5404, {B38400 opost isig icanon echo ...}) = 0
close(3)= 0
munmap(0x40017000, 4096)= 0
umask(077)  = 022
*getcwd("/root", 300)= 6*
chdir("/var/lib/vpopmail")  = 0
chdir("domains")= 0
stat("test39.com", 0xbc3c)  = -1 ENOENT (No such file or
directory)
mkdir("test39.com", 0750)   = 0
chown32(0x804b660, 0xfa14, 0xfa14)  = -1 ENOSYS (Function not
implemented)
chown("test39.com", 64020, 64020)   = 0
chdir("test39.com")
open("/var/lib/vpopmail/domains/test39.com/.qmail-default",
O_RDWR|O_CREAT|O_TRUNC, 0666) = 3
fstat(3, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40017000
write(3, "| /var/lib/vpopmail/bin/vdeliver"..., 58) = 58
close(3)= 0
-

I can see on the WORKING box it is doing:
getcwd("/mnt/large/var/lib/vpopmail/domains", 300) = 36

on the BROKEN box it is doing:
getcwd("/root", 300)= 6

which obviously is WRONG. It should say something
"/mnt/mid/var/lib/vpopmail/domains", but it isn't.

Okay... further down I found another big difference... again, pointing to
incorrect directories:

WORKING BOX:

SIGCHLD (Child exited) ---
close(3)= 0
wait4(19589, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 19589
munmap(0x40017000, 4096)= 0
kill(388, SIGHUP)   = 0
chdir("/mnt/large/var/lib/vpopmail/domains") = 0
umask(077)  = 077
open("/var/qmail/users/cdb", O_RDONLY)  = 3
lseek(3, 2000, SEEK_SET)= 2000
read(3, "\347\17\0\0\2\0\0\0", 8)   = 8
lseek(3, 4071, SEEK_SET)= 4071
read(3, "\3724\256u,\16\0\0", 8)= 8
lseek(3, 3628, SEEK_SET)= 3628
read(3, "\f\0\0\0>\0\0\0", 8)   = 8
read(3, "!test39.com-", 12) = 12
fstat(3, {st_mode=S_IFREG|0644, st_size=4103, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40017000
read(3, "test39.com\00064020\00064020\0/var/lib/"..., 4096) = 455
getpid()= 19399
open("/var/lib/vpopmail/domains/test39.com/vpasswd.cdb", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/var/lib/vpopmail/domains/test39.com/.vpasswd.lock",
O_RDWR|O_CREAT|O_TRUNC, 0666) = 4


On the BROKEN box:

--- SIGCHLD (Chi

RE: moving domains ???????

2001-05-25 Thread Chris Bolt

What are the last few lines when you type:

strace vadddomain testx.com

> Hi all,
>
> I have this strange problem that has suddenly occurred recently.
>
> I keep getting the following error when running vadddomain:
>
> sh-2.05# vadddomain test14.com
> Unknown parameter:
>
> Please enter password for postmaster:
> enter password again:
> Error: Unable to chdir to vpopmail/domains directory
> sh-2.05#
>
> On all other boxes, that command runs fine. And I've already checked the
> permissions on ALL the directories leading up to the one in ~vpopmail. I
> also checked the permissions of ~vpopmail/domains, and it is the same as
> everything else.
>
> The strange thing is that it DOES create the directory:
> drwx-- 2 vpopmail vchkpw 4096 May 25 00:45 test14.com
>
> however, inside that directory only the following exists:
> total 12
> drwx-- 2 vpopmail vchkpw 4096 May 25 00:45 .
> drwx-- 23 vpopmail vchkpw 4096 May 25 00:45 ..
> -rw--- 1 vpopmail vchkpw 58 May 25 00:45 .qmail-default
>
> and nothing else. No vpasswd or vpasswd.cdb or anything else. Anyone know
> whats going on?
>
> I also found:
>
> sh-2.05# ls -al /
> total 1467
> drwxr-x--x 17 root root 4096 May 25 00:22 .
> drwxr-x--x 17 root root 4096 May 25 00:22 ..
> -rw--- 1 root root 0 May 25 07:57 .vpasswd.lock
>
> suddenly after running vadddomain .
>
> vadduser doesn't work at ALL.
>
> Does anyone have any ideas? Free beer to the guy that figures this one out
> :-)
>
> Thanks in advance.
>
> Jason.




Re: moving domains ???????

2001-05-25 Thread Jason Lim

Hi all,

I have this strange problem that has suddenly occurred recently.

I keep getting the following error when running vadddomain:

sh-2.05# vadddomain test14.com
Unknown parameter:

Please enter password for postmaster:
enter password again:
Error: Unable to chdir to vpopmail/domains directory
sh-2.05#

On all other boxes, that command runs fine. And I've already checked the
permissions on ALL the directories leading up to the one in ~vpopmail. I
also checked the permissions of ~vpopmail/domains, and it is the same as
everything else.

The strange thing is that it DOES create the directory:
drwx-- 2 vpopmail vchkpw 4096 May 25 00:45 test14.com

however, inside that directory only the following exists:
total 12
drwx-- 2 vpopmail vchkpw 4096 May 25 00:45 .
drwx-- 23 vpopmail vchkpw 4096 May 25 00:45 ..
-rw--- 1 vpopmail vchkpw 58 May 25 00:45 .qmail-default

and nothing else. No vpasswd or vpasswd.cdb or anything else. Anyone know
whats going on?

I also found:

sh-2.05# ls -al /
total 1467
drwxr-x--x 17 root root 4096 May 25 00:22 .
drwxr-x--x 17 root root 4096 May 25 00:22 ..
-rw--- 1 root root 0 May 25 07:57 .vpasswd.lock

suddenly after running vadddomain .

vadduser doesn't work at ALL.

Does anyone have any ideas? Free beer to the guy that figures this one out
:-)

Thanks in advance.

Jason.