Re: [vchkpw] vpopmail installation on Mandrake 10

2004-07-02 Thread Ertürk
--- "Charles M. Gerungan" <[EMAIL PROTECTED]> wrote:
> Hello Kaan,

Hi,

> 
> Don't try to remember, verify: -rwsr-sr-x.
> 

Now I can verify that it is -rwsr-sr-x

There is something I don't understand:

This is for qmailadmin,
-rwsr-sr-x  1 vpopmail vchkpw 123528 Jun 30 15:07 qmailadmin*

And this is for vqadmin.cgi,
-rwsr-xr-x  1 root root   77332 Jun 30 16:32 vqadmin.cgi*

Why is qmailadmin 'vpopmail vchkpw' and vqadmin 'root root'?

Kaan Ertürk



__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail


Re: [vchkpw] vpopmail installation on Mandrake 10

2004-07-02 Thread Jeremy Kitchen
On Friday 02 July 2004 02:14 am, Kaan Ertürk wrote:
> There is something I don't understand:
>
> This is for qmailadmin,
> -rwsr-sr-x  1 vpopmail vchkpw 123528 Jun 30 15:07 qmailadmin*
>
> And this is for vqadmin.cgi,
> -rwsr-xr-x  1 root root   77332 Jun 30 16:32 vqadmin.cgi*
>
> Why is qmailadmin 'vpopmail vchkpw' and vqadmin 'root root'?

qmailadmin only needs to write to the vpopmail user's directories, that is, 
unless you're separating your domains into multiple users and such, which is 
unlikely.

vqadmin needs to be able to modify files 
in /var/qmail/control, /var/qmail/users, and send signals to qmail-send, 
therefore, it needs to be run as root.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 847.492.0470 int'l
kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail



Re: [vchkpw] vpopmail and mailfilter

2004-07-02 Thread Greg Kopp
It CAN use maildrop (mailfilter), but doesn't out of the box.

In the users home directory (or the directory where the Maildir is
located), create a file called ".qmail" (that's DOT qmail)

And put this inside of it:

| /usr/local/bin/maildrop ./Maildir/mailfilter

This will cause all mail for that user to be piped through the mailfilter.

Keep in mind that any paths to maildirs, etc, in each mailfilter file
will have to be modified.

Greg

On Thu, 1 Jul 2004 19:45:16 -0500, Brian Feeny <[EMAIL PROTECTED]> wrote:
> 
> 
> When you use vpopmail, does it still use an LDA like mailfilter to
> deliver the mail,
> or is that now handled by vpopmail up until the very end?  I ask
> because I am migrating
> a bunch of users to vpopmail who now have .mailfilter files to sort
> mail etc, and want to know
> if vpopmail just does the final delivery lookup and hands off to an LDA
> or actually does the delivery
> itself?  And if it does the delivery itself does it have any scripting
> mechinism like mailfilter does?
> 
> Brian
> 
>


Re: [vchkpw] vpopmail and mailfilter

2004-07-02 Thread Brian Feeny
Greg,
Thanks for the information.  Is it true though that if I have say
/home/vpopmail/domains/test.com that I will have to make a 
.qmail-default
in the test.com directory call the users .qmail's, or can I just simply 
put
a .qmail in /home/vpopmail/domains/test.com/joe with:

| /usr/local/bin/maildrop ./Maildir/mailfilter
and have that work?  My impression was that at the point we have 
entered the
individual users directory, we are now in vdeliver and not qmail-local.

I have seen scripts on the internet that show how to have a 
.qmail-default call
maildir for each user, but it would be much more elegant if I can just 
have a .qmail
in each users directory inside the virtual domain.

brian
On Jul 2, 2004, at 8:55 AM, Greg Kopp wrote:
It CAN use maildrop (mailfilter), but doesn't out of the box.
In the users home directory (or the directory where the Maildir is
located), create a file called ".qmail" (that's DOT qmail)
And put this inside of it:
| /usr/local/bin/maildrop ./Maildir/mailfilter
This will cause all mail for that user to be piped through the 
mailfilter.

Keep in mind that any paths to maildirs, etc, in each mailfilter file
will have to be modified.
Greg
On Thu, 1 Jul 2004 19:45:16 -0500, Brian Feeny <[EMAIL PROTECTED]> 
wrote:

When you use vpopmail, does it still use an LDA like mailfilter to
deliver the mail,
or is that now handled by vpopmail up until the very end?  I ask
because I am migrating
a bunch of users to vpopmail who now have .mailfilter files to sort
mail etc, and want to know
if vpopmail just does the final delivery lookup and hands off to an 
LDA
or actually does the delivery
itself?  And if it does the delivery itself does it have any scripting
mechinism like mailfilter does?

Brian

--
Brian Feeny, CCIE #8036 e: [EMAIL PROTECTED]
Network Engineerp: 318.213.4709
ShreveNet Inc.  f: 318.221.6612


Re: [vchkpw] vpopmail / postgres config issues

2004-07-02 Thread Jay Tortorelli
On Thu, 2004-07-01 at 18:50, Darius Wei wrote:
> OK, I'm trying to configure vpopmail 5.4.6 with postgres 7.4.1.  The 
> compilation process seems to work fine, but I can't get a connection to 
> the database when actually running the tools. 

In vpgsql.h there are a couple of lines that need editing:

#define DB "NAME_OF_YOUR_DATABASE"
#define PG_CONNECT "host=YOUR_DB_HOST_NAME user=YOUR_DB_USERNAME
password=YOUR_PASSWORD dbname=" DB

Although I don't think host is in there as a default.  But if your
database server is on a different server you will need to add that.

Hope that helps.

Jay Tortorelli



Re: [vchkpw] vpopmail / postgres config issues

2004-07-02 Thread Charles M. Gerungan
Hello Jay,

On Fri, 02 Jul 2004 11:45:06 -0700 UTC, Jay Tortorelli wrote:

>> OK, I'm trying to configure vpopmail 5.4.6 with postgres 7.4.1.  The
>> compilation process seems to work fine, but I can't get a connection to
>> the database when actually running the tools. 

JT> In vpgsql.h there are a couple of lines that need editing:

It should be a lot nicer if there was a vpopmail.pgsql (like there is a
vpopmail.mysql).

-- 
Regards, Charles.



Re: [vchkpw] Failing logins - mysql issue?

2004-07-02 Thread Charles Sprickman
On Thu, 1 Jul 2004, Tom Collins wrote:

> If you have roaming users (POP before SMTP) enabled, it stores the IP
> information in a table.  Every POP auth will generate an update or
> replace into that table.

Ah.  Thanks, I thought there was something, but that slipped my mind.

The more I look at this, the more it looks like a resource contention
issue between mysql and qmail/vpopmail.  While the load is low, there are
blocked processes (according to vmstat) and context switches are through
the roof.  I've seen this before in other qmail installs; if I understand
what "context switches" are correctly, it means that the kernel is
spending an inordinate amount of time juggling processes...

Any hints for large sites?  Anyone here running vpopmail for more than a
few thousand users?

It looks like a quick band-aid is to run mysql on another server.

Thanks,

Charles

> I think it also updates a "last login" timestamp for each user when
> they authenticate (vuserinfo reports this information).
>
> --
> Tom Collins  -  [EMAIL PROTECTED]
> QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
> Info on the Sniffter hand-held Network Tester: http://sniffter.com/
>
>