> 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
Re: Blocking of Mail Domain for a specific users
OK 2 NET - Andr� Paulsberg Thu, 08 Jun 2000 06:21:06 -0700
- Blocking of Mail Domain for a specific users ruchandra
- Re: Blocking of Mail Domain for a specific... OK 2 NET - Andr� Paulsberg
- Re: Blocking of Mail Domain for a spec... Adam McKenna
- Re: Blocking of Mail Domain for a specific... OK 2 NET - Andr� Paulsberg
- Re: Blocking of Mail Domain for a spec... Petr Novotny
- Re: Blocking of Mail Domain for a specific... ruchandra
- Re: Blocking of Mail Domain for a specific... OK 2 NET - Andr� Paulsberg
