Best practices for disabling email accounts

Ryan J.Taylor rj at
Fri Sep 12 08:45:59 PDT 2003

On Friday, September 12, 2003, at 11:31 AM, Blake Swensen wrote:

> Many of you are in the same boat, where customers fall behind and 
> collections letters still do not seem to grab their attention.
> Short of changing passwords, does anyone have a best practices method 
> of temporarily preventing access to email boxes temporarily. In most 
> of these cases, once the customer has paid, I would like to turn back 
> on the email boxes.

You could run "pw lock username" on the account and then add something 
username at	550 Account locked
to your /etc/mail/access (if you're running Sendmail).

When it's time to unlock the account just do a "pw unlock username" and 
then remove the entry from your Sendmail access file.

*Don't forget to rebuild the access file hash for Sendmail.*

> Thanks
> -- 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> The Internet Rescue Company -
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Blake R. Swensen         Pyramus Online, Inc.
> President                2080 SE Oak Grove Blvd. Suite 11
>                          Milwaukie, Oregon 97267
>                          800-327-5101
>                          vox:503-353-0455
>                          fax:503-353-0453
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> "We measure success by the success of our clients"


More information about the freebsd-isp mailing list