Re: [vchkpw] roaming users, configure not working

2003-03-16 Thread Jonas Pasche
Hi Payal,

 On a previously installed vpopmail system, how do I know which
 parameters were passed to ./configure ? I have the directory in which
 the tar file was untarred into.

Then look into the config.status file.

   Also should the tcpserver file be /etc/tcp.smtp or
   /home/vpopmail/etc/tcp.smtp ?
  
  Both locations will work fine, but vpopmail will need root access if you
  want to use the /etc location.
 
 What exactly do I do for giving vpopmail root access?

chown root ~vpopmail/bin/vchkpw
chmod u+s ~vpopmail/bin/vchkpw

However, I'd only suggest to do this if you have your domains managed
under different user id's (in fact, then you'll _need_ these
modifications); if you're going with all domains under the vpopmail id,
you'll go better with ~vpopmail/etc/tcp.smtp.

   And address extensions=OFF as shown above, will it mean I won't be able to use
   .qmail-payal-linux kind of addresses?
  
  No; these addresses will be handled by qmail itself _before_ vpopmail
  drops in (through being called out of .qmail-default) and work in either
  case.
 
 Then what is the use of qmail-ext parameter for ./configure ?

See the ChangeLog (this option appeared in 4.10.12):

   - added new configure option --enable-qmail-ext. This
 was the default in old installations. Now there is
 an option to turn it off.  
 --enable-qmail-ext=y (default) will deliver mail
  for [EMAIL PROTECTED] to [EMAIL PROTECTED]
 --enable-qmail-ext=n will NOT deliver mail for
  [EMAIL PROTECTED] to [EMAIL PROTECTED] It will
  only deliver it to [EMAIL PROTECTED]

Jonas




Re: [vchkpw] accept selected mails

2003-03-16 Thread Jonas Pasche
Hi Payal,

 Thanks for the reply. Yes, I know about .qmail files but the problem how
 to *drop* unwanted mails.

As I said: Read the man pages.

From the qmail-command man page:

[...]
EXIT CODES
   command's exit codes are interpreted as follows:  0  means
   that the delivery was successful; 99 means that the deliv­
   ery was successful, but that qmail-local should ignore all
   further delivery instructions; [...]

Doesn't ignore all further delivery instructions sound like something
you need? :)

$ cat .qmail-yourfilter
|here-is-a-script-that-exits-99-if-the-sender-is-invalid
[EMAIL PROTECTED]

 Also should i just check the From: field or is there anything else I
 should check for (against the database, maybe using egrep)

That entirely depends on what you want to do.

Jonas




Re: [vchkpw] Forwarding....

2003-03-16 Thread Jonas Pasche
Hi Bill,

 So what I would like to know is about setting a forwarder for a particular 
 user of a domain.
 
 There does not seem to be a reference in the documentation; however, I 
 could be blind and stupid.

Forwardings are handled by qmail-local before vpopmail drops in. They're
well documented by Life with qmail:

http://lifewithqmail.org/lwq.html#dot-qmail-files
http://lifewithqmail.org/lwq.html#extension-addresses
http://lifewithqmail.org/lwq.html#aliases

 the .qmail-default file seems to alude to this via the empty set, ie:
 
 | /home/vpopmail/bin/vdelivermail '' delete

No.

 is then
 
 | /home/vpopmail/bin/vdelivermail [EMAIL PROTECTED] [EMAIL PROTECTED]
 
 The correct syntax to forward ???

No. Uh-oh, never start fiddling around with such trials. This is Unix;
you need to read the documentation to solve problems. If things are not
in the docs, we're here to help. :)

Jonas




Re: [vchkpw] quotas

2003-03-16 Thread Jonas Pasche
Hi Payal,

 Now I added 2 domains test1 and test2? Do these domains have a default
 quota?

No.

 If no, how do I add that?

You don't have a thing like a domain quota with the current stable
version, only quota values on every single account.

 Also can I have domain test1 with say 40Mb quota and domain test2 with
 70Mb quota? How to achieve that?

For now, give each domain a different system user (vadddomain -u ...),
and give that user a quota.

For later, watch the development; domain quota support is coming (but
not stable yet).

Jonas




Re: [vchkpw] Ownership question about VPOPMAIL

2003-03-16 Thread Jonas Pasche
Hi Al,

 [EMAIL PROTECTED] vpopmail]# ll domains
 total 3
 drwx--5 530  7798 1024 fév 23 15:21 mydomain1.com
 drwx--3 530  7798 1024 fév 23 15:12 mydomain2.com
 drwx--3 530  7798 1024 fév 23 15:12 mydomain3.com
 [EMAIL PROTECTED] vpopmail]#
 
 My mail server works fine with qmail however I don't know why
 vadddomain/vadduser use 530:7798

Did you transfer the vpopmail binaries from another machine? Or did your
local UIDs change, but you did not update the vpopmail status?

If you're unsure, recompile to let vpopmail find out it's UIDs again,
and it will tell you these UIDs at the end of the ./configure run.

Jonas





Re: [vchkpw] accept selected mails

2003-03-16 Thread Anders Brander
Hi,

On Sun, 2003-03-16 at 16:56, Jonas Pasche wrote:
 From the qmail-command man page:
 EXIT CODES
command's exit codes are interpreted as follows:  0  means
that the delivery was successful; 99 means that the deliv­
ery was successful, but that qmail-local should ignore all
further delivery instructions; [...]

- and there's more, i often use these defines in my dotqmail-code:

/* exit codes */
#define EXIT_ACCEPT 0
#define EXIT_DROP 99
#define EXIT_BOUNCE 100
#define EXIT_TEMPERROR 111

-- 
Anders Brander [EMAIL PROTECTED]




Re: [vchkpw] Forwarding....

2003-03-16 Thread Anders Brander
Hi,

On Sun, 2003-03-16 at 17:03, Jonas Pasche wrote:
 Forwardings are handled by qmail-local before vpopmail drops in. They're
 well documented by Life with qmail:

Not entirely correct, .qmail files is read by vdelivermail if they are
placed inside users own directory. Please look at the
check_forward_deliver() function in vdelivermail.c

In other words, .qmail files in the domain directory is handled by
qmail-local, while .qmail files in user-directories is handled by
vdelivermail.

-- 
Anders Brander [EMAIL PROTECTED]




Re: [vchkpw] quotas

2003-03-16 Thread Payal Rathod
* Jonas Pasche [EMAIL PROTECTED] [2003-03-16 23:28]:
Hi,
  Now I added 2 domains test1 and test2? Do these domains have a default
  quota?
 
 No.

Silly question, then I need to reconfigure again. Do I just go the
directory where tar ball is extracted and type make clean?

  Also can I have domain test1 with say 40Mb quota and domain test2 with
  70Mb quota? How to achieve that?
 
 For now, give each domain a different system user (vadddomain -u ...),
 and give that user a quota.

A question here. These users will also be having their account on the
machine in /home/user and for mails I have to keep their mails on,
/home/vpopmail/domains/user
Any way I can use their own home directory and give them system quotas
so they can think themselves how much space they want to devote to mails
and how much to their programs, webpages etc.

Thanks a lot and bye.
Regards,
-Payal

-- 
Visit GNU/Linux Success Stories
www.geocities.com/rpayal99
Guest-Book Section Updated.



RE: [vchkpw] Ownership question about VPOPMAIL

2003-03-16 Thread Alain G
Hi Jonas,

I've installed vpopmail-5.0-1.i386.rpm and I did ownership changes because
messages could not be transferred to the user mailbox because of write
permissions.

My concern is that vpopmail will always set those user:group when using
vadddomain/vadduser even if it works fine. I was wondering if we could force
him to use vpopmail:vchkpw for the domains directory. I think that I may
have a problem later on this issue if this isn't properly setup now and
obviously because I don't know where those user:group are issued from.

Thanks, Al

-Message d'origine-
De : Jonas Pasche [mailto:[EMAIL PROTECTED]
Envoyé : dimanche 16 mars 2003 17:11
À : [EMAIL PROTECTED]
Objet : Re: [vchkpw] Ownership question about VPOPMAIL


Hi Al,

 [EMAIL PROTECTED] vpopmail]# ll domains
 total 3
 drwx--5 530  7798 1024 fév 23 15:21 mydomain1.com
 drwx--3 530  7798 1024 fév 23 15:12 mydomain2.com
 drwx--3 530  7798 1024 fév 23 15:12 mydomain3.com
 [EMAIL PROTECTED] vpopmail]#

 My mail server works fine with qmail however I don't know why
 vadddomain/vadduser use 530:7798

Did you transfer the vpopmail binaries from another machine? Or did your
local UIDs change, but you did not update the vpopmail status?

If you're unsure, recompile to let vpopmail find out it's UIDs again,
and it will tell you these UIDs at the end of the ./configure run.

Jonas







RE: [vchkpw] Ownership question about VPOPMAIL

2003-03-16 Thread Jonas Pasche
Hi Al,

 I've installed vpopmail-5.0-1.i386.rpm

There is no official RPM of that name, and 5.0 isn't the latest stable
version. Download the sources of 5.2.1 and try again.

 My concern is that vpopmail will always set those user:group when using
 vadddomain/vadduser even if it works fine. I was wondering if we could force
 him to use vpopmail:vchkpw for the domains directory.

vpopmail sets the _numerical_ UID that it got for vpopmail/vchkpw at
compile time. A binary RPM is likely to have different UIDs than your
system, if either you or the RPM cooker doesn't use the default IDs of
89/89.

 I think that I may
 have a problem later on this issue if this isn't properly setup now and
 obviously because I don't know where those user:group are issued from.

Simply throw away the RPM, get the actual sources, and start again.

Jonas




[vchkpw] Probably a simple problem

2003-03-16 Thread Greg Thompson
Hi list,

I'm new to the list, mainly because I've been messing
with this problem for the better half of the day so I
decided to seek help..I'm sure this is one of those
problems with an easy answer so here goes:
...everything is getting delivered
to my domain and to the correct users, and is being
delivered to their ~/Maildir/new directory.
Authorization works whenever I use vadduser located in
the vpopmail/bin directory. The messages are in
~/Maildir/new, while vpopmail is looking for them in
vpopmail/domains/grinc.org/user/ , so since nothing is
there, it reports a successful mail check but does not
download anything. So I guess the only solution is to
either have qmail put the messages in
/home/vpopmail/domains/grinc.org/user OR have vpopmail
check the user's Maildir located in /home/user/Maildir
which would be what I prefer to do (I think it would
be much more desirable to keep the actual mail
messages in the home directory of the user they belong
to.
So any help in making vpopmail check the right message
directory would be greatly appreciated.
Thanks,
Greg

__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com



Re: [vchkpw] quotas

2003-03-16 Thread Manish Jain
Hi Payal,

There is no any solution for domain quotas in vpopmail.
If you want to impliment domain quota as per ur requirement u have to
use the system quota and the add the domain under the specified user for
that domain.

I am using the same technique and most of the qmail users who needed
this type of requirement are using the same...

For any further query mail me...

Manish Jain
Sys Admin
CDAC, Noida


On Sat, 2003-03-15 at 15:27, Payal Rathod wrote:
 Hi,
 I have installed vpopmail-5.2.1 with just enable-roaming-users=y option.
 After that I did make and make install.
 
 Now I added 2 domains test1 and test2? Do these domains have a default
 quota?
 
 If no, how do I add that? If I am going to use ./configure again what
 care must I take? Do i use make install clean or something like that?
 
 Also can I have domain test1 with say 40Mb quota and domain test2 with
 70Mb quota? How to achieve that?
 I read README.quotas, INSTALL and FAQ but still I am unable to figure a
 proper solution for different quotas for different domains.
 
 Can someone tell?
 
 With regards,
 -Payal
 
 -- 
 Visit GNU/Linux Success Stories
 www.geocities.com/rpayal99
 Guest-Book Section Updated.





Re: [vchkpw] Probably a simple problem

2003-03-16 Thread Cory Wright
On Sun, Mar 16, 2003 at 08:16:35PM -0800, Greg Thompson wrote:
 ...everything is getting delivered to my domain and to the correct 
 users, and is being delivered to their ~/Maildir/new directory.
[...]
 The messages are in ~/Maildir/new, while vpopmail is looking for them 
 in vpopmail/domains/grinc.org/user/ , so since nothing is there, it 
 reports a successful mail check but does not download anything. 

It sounds like you have the domain listed in both control/locals and 
control/virtualdomains (probably added by vadddomain).

To have mail fro grinc.org delivered via vpopmail you should remove the
'grinc.org' line from locals, then send qmail a HUP.

 (I think it would be much more desirable to keep the actual mail
 messages in the home directory of the user they belong to.

This removes the need for vpopmail to handle the domain.

Cory

--
Cory Wright
Stand Blue Technology
http://www.standblue.net/



[vchkpw] Re: Probably a simple problem

2003-03-16 Thread Greg Thompson
Ok, I removed the grinc.org line from locals and
restarted qmail. I currently have no users under
vpopmail except the postmaster. What do I need to do
now? (Since there are no users, I am back to the
original problem of getting a failed authorization
when trying to check mail from an email client
(Mozilla mail). Please excuse my ignorance, I've been
at this almost all day and am starting to get tired
and confused. :)
Thanks,
Greg

__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com



Re: [vchkpw] Re: Probably a simple problem

2003-03-16 Thread Cory Wright
On Sun, Mar 16, 2003 at 08:37:49PM -0800, Greg Thompson wrote:
 What do I need to do now? (Since there are no users, I am back to the
 original problem of getting a failed authorization when trying to check 
 mail from an email client (Mozilla mail).

You should add the new users to the virtual domain using vadduser.  

Cory

--
Cory Wright
Stand Blue Technology
http://www.standblue.net/



Re: [vchkpw] Re: Probably a simple problem

2003-03-16 Thread Greg Thompson
Thats what I thought...but is there an easy way to
take all the users from the system and create vpopmail
users from them without going back and typing in all
their names and passwords?
Thanks,
Greg
--- Cory Wright [EMAIL PROTECTED] wrote:
 On Sun, Mar 16, 2003 at 08:37:49PM -0800, Greg
 Thompson wrote:
  What do I need to do now? (Since there are no
 users, I am back to the
  original problem of getting a failed authorization
 when trying to check 
  mail from an email client (Mozilla mail).
 
 You should add the new users to the virtual domain
 using vadduser.  
 
 Cory
 
 --
 Cory Wright
 Stand Blue Technology
 http://www.standblue.net/
 


__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com



Re: [vchkpw] Re: Probably a simple problem

2003-03-16 Thread Cory Wright
On Sun, Mar 16, 2003 at 08:42:53PM -0800, Greg Thompson wrote:
 ...is there an easy way to take all the users from the system and create 
 vpopmail users from them without going back and typing in all their names 
 and passwords?

If you compiled vpopmail with --enable-learn-passwords=y then you could
create a list of your users in a file:

  ls /home/ | tr '\s' '\n'  /tmp/users

Then create all the users with something like this:

  for in in `cat /tmp/users`; do ~vpopmail/bin/vadduser -n $i@example.com; done

Be sure to remove any unwanted users from /tmp/users first.

Cory

--
Cory Wright
Stand Blue Technology
http://www.standblue.net/



RE: [vchkpw] NFS shared

2003-03-16 Thread Jason
Does you patch work with linux?  I see from your docs that you are using
BSD, I'm trying to test it on linux.

Thanks

-Original Message-
From: Matt Simerson [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 15, 2003 9:32 PM
To: Jason
Cc: [EMAIL PROTECTED]
Subject: Re: [vchkpw] NFS shared


Sharing the tcp.smtp.cdb file over TCP is not a good idea.  Once your
traffic starts picking up,  you'll have all sorts of problems with that.

Check out the writeup I have on exactly this scenario:
http://matt.simerson.net/computing/mail/qmail/qmail.toaster.open-
smtp_writeup.txt.  There are other considerations but to minimize
traffic on your backend (NFS) network, you really should be planning to
only share what's necessary (~vpopmail/domains) via NFS.

Matt

On Saturday, March 15, 2003, at 02:27  AM, Jason wrote:

 Hello All,

 If I'm going to install a couple of mailservers(vpopmail+qmail) and
 use an
 NFS server for  storage, is the Maildir the only directory that will be
 shared by the mail servers.  I think the tcp.smtp.cdb also needs to be
 shared.  Any others files?

 TIA