....snip.....

All WAY too much work.  Use the power that vpopmail gives you.

ns3:~ 4% /RAID/vpopmail/bin/vmoduser
vmoduser: usage: [options] email_addr or domain (for the entire domain)
options: -n (don't rebuild the vpasswd.cdb file)
         -u (set no dialup flag)
         -d (set no password changing flag)
         -p (set no pop access flag)
         -w (set no web mail access flag)
         -i (set no imap access flag)
         -b (set bounce mail flag)
         -r (set no external relay flag)
         -c comment (set the comment/gecos field)
         -x (clear all flags)


vmoduser the user and set the -p flag.  Then they're email will continue to
queue up, but they can't POP in to get it until they pay up.  If they go
delinquent long enough (see company policy) then vdeluser them!

If they pay, vmoduser -x to reset them to be able to pop.

Hope this helps.

Chris Bunnell

----- Original Message -----
From: "Mike Rogers" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Jesper Hess Nielsen" <[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 12:21 PM
Subject: Re: Closing an account when a customer hasn't paid?


> Easy methods:
>
>     1.    They don't get mail while not paying:
>         1.    remove the line from /var/qmail/control files.  it doesn't
see
> it as local, but the passwords and existing usernames/messages exist.
>         2.    move the password file (or dump and delete the MySQL rows)
for
> the domain.  Mail coming in will not be recieved and they will not be able
> to authenticate.  Since they can't authenticate, they can't open a relay.
>     2.    They DO get mail while not paying:
>         1.    simply backup the password file and make a simple awk or sed
> script to change the password field to maybe 'haha' or something.  Of
> course, who knows what encrypted string that is, so unless they are really
> ___REALLY___ lucky, they won't be able to login to get their mail.  They
> will however still receive mail [useful for 'payment is in the mail'-  you
> don't want your customers business failing because you lost their big
> contract and big client] and it will queue up on the server and be there
> when you do get paid.  When you get paid, copy the password file back and
> you're set.  Be sure to run ./vmkpasswd after any changes if you use CDB
> files.  On SQL, this is easier, as you can just make an update where
> domain="domain.com" password="haha" or something like that.
>
> These are valid solutions.  THey make sense and work quite well.  Your
> alternate is to maybe place a file in the domain directory.  If it exists,
> it should not allow anything to happen for the domain... this of course
> requires a code hack
>
> Cheers-  Hopefully good temporary solutions
> --
> Mike
>
>
> ----- Original Message -----
> From: "Jesper Hess Nielsen" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 23, 2001 3:52 PM
> Subject: Closing an account when a customer hasn't paid?
>
>
> > Hi,
> >
> > Is there an easy way to close a domain temporarily, allowing me to shut
> off
> > all incoming and outgoing mail when a customer hasn't paid? - It would
be
> > cool if you could send a message to people when they log on via pop3
> saying
> > "Pay up or ship out" :-)
> >
> > /Jesper
> >
> >
>

Reply via email to