I've been asking to provide some instructions on the Anti-spam features in Sendmail, so here goes... Spam control consists of two parts. The first is the definition of a couple of file macros, as in:- F{SpamName} -o c:\etc\SpamName F{SpamList} -o c:\etc\SpamList Change paths so that they reflect your own setup. Then there are some accompanying rulesets. I'm only including those for preventing spam. # RULESETS FOR SPAMMMING CONTROL : check_mail , check_rcpt , check_relay #****************************** # this is the check_mail ruleset #****************************** Scheck_mail R$={{SpamName}} $#error $@ unavailable $: "you are banned" R$*@$*$={{SpamList}} $#error $@ unavailable $: "We don't accept junk mail from your domain" R$*@$*$={{SpamList}}. $#error $@ unavailable $: "We don't accept junk mail from your domain" R$={{SpamName}}. $#error $@ unavailable $: "You are banned" R$*<$*@$*$={{SpamList}}>$* $#error $@ unavailable $: "We don't accept junk mail from your domain" R<$={{SpamName}}> $#error $@ unavailable $: "You are banned" R$*<$*@$*$={{SpamList}}.>$* $#error $@ unavailable $: "We don't accept junk mail from your domain" R<$={{SpamName}}.> $#error $@ unavailable $: "You are banned." R$* $@ ok Remember to use TABs above. I don't claim to understand this but it seems to work. A SpamName file consists of a list of users you want to ban. Eg:- xbctd@hotmail.com A SpamList contains a list of domains you want to ban. Eg:- 163.net 163.com 456.com 21cn.com 263.net asianrelax.com BTW this is how it works on my system which runs Sendmail v2.04, which available as part of TCP/IP v4.3. You can get this through Software Choice, although i understand it will also be included with eCS.... If anyone has any questions, feel free to ask on the list. -- John Poltorak ===================================================== On Sun, Dec 17, 2000 at 03:58:52PM +0300, Ivan Adzhubei wrote: > On Sun, 17 Dec 2000 10:14:14 +0000, John Poltorak wrote: > > >> Binaries: 407023 Sendmail-8-10-1-Install.Rar > >> Sources: 1181049 Sendmail-8-10-1-Source.Rar > >> Docs in Russian: 5354 Sendmail.htm > >> Docs in English: 6444 Sendmail_en.htm > >> > >> I hope to upload everything to Hobbes tomorrow. > > > >Ivan, > > > >It's good to see you on this list. > > > >Do you run this version of Sendmail yourself? > > Not yet. I do not have any suitable testing system at the moment and can't risk > experimenting on my production server. I will test new version as soon as I get > a registered IP for my home computer. I have permanent IP connection at home > (10Mbit Ethernet) but via a NAT server. Alex Lapshin uses this version of > sendmail in a production environment however, so I assume it should work. > > >I've been running IBM's Sendmail v2.04 for over six months > >and have been thinking of switching over for some time. > > John, did you finally manage to make these anti-spam features work in 2.04 > after getting the instructions from IBM you sent me some time ago? Yes, that's basically why I feel safe enough running a mailing list. I was getting so much spam that it was filling up my disk too quickly. The IBM version of the anti-spam features differed slightly, but significantly enough so you couldn't guess them. This is what I have:- ## ADDED HERE FOR RULESETS CONTROLLING SPAMMING CONTROL ## files to be used in check_mail F{SpamName} -o c:\etc\SpamName F{SpamList} -o c:\etc\SpamList #****************************** # this is the check_mail ruleset #****************************** Scheck_mail R$={{SpamName}} $#error $@ unavailable $: "you are banned" R$*@$*$={{SpamList}} $#error $@ unavailable $: "We don't accept junk R$*@$*$={{SpamList}}. $#error $@ unavailable $: "We don't accept junk R$={{SpamName}}. $#error $@ unavailable $: "You are banned" R$*<$*@$*$={{SpamList}}>$* $#error $@ unavailable $: "We don't accept junk R<$={{SpamName}}> $#error $@ unavailable $: "You are banned" R$*<$*@$*$={{SpamList}}.>$* $#error $@ unavailable $: "We don't accept junk R<$={{SpamName}}.> $#error $@ unavailable $: "You are banned." R$* $@ ok (NB some lines truncated) The difference is the '-o' parameter and the double set of brackets. I've recently tried to enable mail relaying from any machine on my LAN but can't get the check_rcpt rule to work as I would expect... > How about 2.04 performance? I can only say that it works. I don't really know how to judge performance and would welcome any suggestions on how to measure it. Occasionally I notice multiple copies of Sendmail running - up to eight! in one instance when attempting to send mail out to recipients of a list, but it can still take over 10 minutes to process a list of around 50 subscribers. I'd like to know of any ways to speed that up. > Does it still have this no-quit-until-remote-accept-message > bug (err.. feature :)? It probably does, although I am not absolutely sure what you mean. Any problem I had with remote delivery was resolved using a delivery method of 'queued' in the config:- # # Options # # Process messages in the background. #Odbackground Odq but starting the server like this:- detach sendmail -bd -d1.1 -odb -q5m Is this something that would overcome the problem you mention? > >Do you know if anyone has tried to evaluate the merits of > >the two versions? > > IMHO, the main attraction of ported sendmails is that they are supported and > documented versions while OS/2 sendmail apparentely is not :-(. Yes, I agree. But I am hoping to get eCS before too long and I understand that Serenity Systems will try and get some documentation or at least better support out of IBM for their version of Sendmail. > --- > Ivan -- John ====================================================