Dear Andru,

     Thanks for the info, i checked it for the POP users it is working
fine.

     I want to know how it can be done for SMTP users. Kindly suggest.

cordially

Ruchir Chandra






"OK 2 NET - Andr? Paulsberg" <[EMAIL PROTECTED]> on 08/06/2000 06:50:25 PM

To:   ruchandra
cc:   [EMAIL PROTECTED]
Subject:  Re: Blocking of Mail Domain for a specific users




> I want to block incoming of mails from few domains for few users (POP and
SMTP both) only.
>
> If i put these domain in the badmailfrom file it blocks for all the
users.
>
> kindly suggest how it can be done for individuall users.
You'll need to make a short script,
and add it into these users .qmail file.
You CAN write the commands directly into this file,
but then it will look a bit messy if it's long/many entries.
| if [ "$SENDER" = "[EMAIL PROTECTED]" ]; then exit 99 ;fi
| if [ "$SENDER" = "[EMAIL PROTECTED]" ]; then exit 99 ;fi
./Maildir/.
You'll need to "cut" the $SENDER varibale to get only the domain,
I don't have the perfect way but this one works for SENDERS with only one
"@"
(most of them only have one, but you can't trust that!!! )
| DOMAIN=`echo $SENDER | cut -f2 -d\@` ; if [ "$DOMAIN" = "bad.com" ]; then
exit 99 ; fi

Regards Andr? Paulsberg





Reply via email to