The other option that you have is to edit login.defs, defining the
userdel_cmd and placing something to do the rest of this script in the
appropriate file, /usr/sbin/userdel_local by default.

MHP

----- Original Message -----
From: Matthew Patterson <[EMAIL PROTECTED]>
To: Angel, Christopher J <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, September 01, 2000 1:28 PM
Subject: Re: Bounce suppression on .qmail lists


> The way that I solved that problem was to create a deletemailuser script
in
> my /usr/sbin directory that runs userdel, then runs through the .qmail
> aliases, one at a time, grep -v 'ing for the username, replacing the
> contents with the output of the grep. See below for the complete script.
>
> MHP
>
> #!/bin/bash
> #
> # /usr/sbin/mail/deletemailuser
> # This program will delete qmail users from the system
> # Written on 4-21-2000 by Matthew Patterson
> # Modified to remove users from groups on 7-24-2000
> #
>
> /usr/sbin/userdel $1
> rm -r /home/$1
>
> cat /var/qmail/alias/.qmail-alias1 | grep -v $1 >
/tmp/deletemailuser.alias1
> mv -f /tmp/deletemailuser.alias1 /var/qmail/alias/.qmail-alias1
>
> cat /var/qmail/alias/.qmail-alias2 | grep -v $1 >
/tmp/deletemailuser.alias2
> mv -f /tmp/deletemailuser.alias2 /var/qmail/alias/.qmail-alias2
>
>
>
> ----- Original Message -----
> From: Angel, Christopher J <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, September 01, 2000 11:56 AM
> Subject: Bounce suppression on .qmail lists
>
>
> > We have a qmail server with quite a few .qmail-enternamehere aliases,
some
> > of which are used by our customers to email various internal groups.
> >
> > for example, we have a .qmail-systems file:
> >
> > [EMAIL PROTECTED]
> > [EMAIL PROTECTED]
> > [EMAIL PROTECTED]
> > [EMAIL PROTECTED]
> > [EMAIL PROTECTED]
> >
> > Sometimes, when someone emails an alias, one of the people in the list
> > causes a bounce.  In the example, "[EMAIL PROTECTED]".
> >
> > This bounce ends up going to the customer who emailed the alias.
Needless
> > to say, it doesn't look good.  We'd rather that bounces in that specific
> > case don't happen.
> >
> > We looked around for a solution, but can't find one, and am now asking
if
> > anyone here might have an idea.
> >
> > Thanks,
> > __________________________________________________
> > Christopher Angel, B.E., B.Sc Senior Systems Engineer
> > Qwest Communications, Inc. IP Operations/Systems
> > Direct: 703-363-3148 Fax: 703-363-3177
> > Pager: 888-666-3163 Pager Email: [EMAIL PROTECTED]
> > [EMAIL PROTECTED]
> >
> >
>
>

Reply via email to