1st thing, so sorry for the html format been sent to all of you, I've
changed the format to plaintext, :)...

Thanks for the advise...

I did followed your instructions, but it doesn't work as what expected..
As for more details on my linux system
OS: RH6.2 2.2.14-15.0
Mail server : sendmail-8.9.3-20

I got the following files in /etc/mail
-rw-r--r--    1 root     root          123 Feb 17  2000 Makefile
-rw-r--r--    1 root     root          358 Feb 12 10:57 access
-rw-r--r--    1 root     root        20480 Feb 12 11:03 access.db
-rw-r--r--    1 root     root            0 Feb  7 18:07 deny
-rw-r--r--    1 root     root         4096 Feb  7 18:07 deny.db
-rw-r--r--    1 root     root            0 Feb 17  2000 domaintable
-rw-r--r--    1 root     root         4096 Feb 12 10:59 domaintable.db
-rw-r--r--    1 root     root            8 Feb  7 18:07 ip_allow
-rw-r--r--    1 root     root            0 Feb 17  2000 mailertable
-rw-r--r--    1 root     root         4096 Feb 12 10:59 mailertable.db
-rw-r--r--    1 root     root            0 Jan  9 16:49 sendmail.cw
-rw-r--r--    1 root     root            0 Feb 17  2000 virtusertable
-rw-r--r--    1 root     root         4096 Feb 12 10:59 virtusertable.db

I did vi access and addin then save and 'make'
[EMAIL PROTECTED] 550 Spammer - mail rejected
(this shd reject all mail from [EMAIL PROTECTED] account rite?)
btw, shd I use make or makemap hash /etc/mail/access < /etc/mail/access, I
found it on internet???

Then, I tried to send email from this acc by using the configured smpt...but
the smpt server still help to relay the mail to the destination...

is it the different of sendmail version? or do I need to do the setting in
other place ???

Please advise and many thanks for all help...

best rdgs,
gary




----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 08, 2001 11:50 AM
Subject: Re: Sendmail: Anti-spam filters with netconf


> On Wed, 7 Feb 2001, gary@thongsiek wrote:
> > I tried to use Sendmail's Anti-spam filters in netconf as below:
> > 1. Rejected senders : use email address and error messages
> > 2. 'Relay for' by IP
> > 3. 'Relay for' by name
> > 4. Relay to hosts
> > I tried on 1 and 2, but it doesn't work as what I expected???
> > What I need is just to block by IP/domain for my stmp server
> > Any idea?? Please advise...
> > Thanks & Regards,
> > gary
>
> First, may I suggest that you turn off html in email. Html belongs in web
> pages - not email.
>
> Now, forget using programs like netconf to use Sendmail's Anti-spam
> filters. It''s east enough to edit by hand, and you have more control too.
>
> cd to /etc/mail/
> Use your favorite editor (vim, emacs, pico, joe, etc.,) to edit the file
> named access.
>
> To reject email from [EMAIL PROTECTED] use:
>
> [EMAIL PROTECTED] 550 Spammer - mail rejected
>
> This will cause sendmail to block the email with error 500, and give the
> reason shown. You can say anything you want here like ``Eat my shorts!''
>
> To reject mail from an entire domain use:
>
> mailbox.sk 550 Spammer domain - mail rejected
>
> and you can also replace `mailbox.sk' with an IP address.
>
> I frequently get mail from various domains with the same account name,
> i.e.; [EMAIL PROTECTED], [EMAIL PROTECTED] and
> [EMAIL PROTECTED] Block them all with:
>
> sinful1@ 550 pandering advertisments rejected
>
> After saving the file run `make', and the Make file will rebuild the
> database for you. The changes will then be in effect.
>
> Some other examples:
>
> newsletter.switchboard.com 550 read error from bm0-m3.e-dialog.com
> onlinesurveys.com 550 onlinespammer.com - mail rejected
> public.sta.net.cn 550 Spammer open relay - all mail rejected
> rim.or.jp 550 No such domain - all mail rejected
> [EMAIL PROTECTED] 550 SPAM, rejected - HTML MAIL, rejected
> @atl7mhfl0079 550 Spammer domain - All mail rejected
> yourfriend@             550 myenemy (spammer) - Mail rejected
>
> And for the fool that kept sending me spam with the line ``This isn't
> spam!'' I have this:
> keggler.com 550 Looks like spam, stinks like spam, must be spam! REJECTED!
>
> If you really wanted to mess with someone you could change the error
> number to one begining with the digit 4 - which would indicate a tempory
> error, thus causing the spammer's mail server to repeatedly attempt to
> send the email to you. But that probably wouldn't be good for your
> bandwidth.
>
>
> Happy sendmailspammerblocking!
>
>
> Mit freundlichen Grüßen,
> Russ.
>                 Ne Desit Virtus - The Behne Family Motto
>
> "Open source tries to move software from a witchcraft to a science.
People
> start discussing ideas and suddenly you don't have shamanistic companies
> telling you how it is."  (Linus Torvalds)
>
> Would you like to be free from the income tax?
> Then dump your old party and vote Libertarian.
> See www.HarryBrowne2000.org for more info
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to