MailScanner
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 58299
interpreted = N
texte = Not sure how many of you have control over your own servers, however, forthose that are using MailScanner on a Linux machine, and are willing toinstall sudo on the box, I've put together a nice little script to all youto add domains to a blacklist and restart mailscanner w/o having to actuallylog into the box.[protect ADMIN]
Spam List[showif [action]=Add][!]----- ADD FULL DOMAIN -----[/!][if "[type]"="Domain"][then][search db=*/etc/MailScanner/rules/blacklist.db&eqDOMAINdatarq=[middlestartafter=@][blacklist.email][/middle]][showif [numfound]=0][replace db=*/etc/MailScanner/rules/blacklist.db&eqDOMAINdatarq=[url][middlestartafter=@][blacklist.email][/middle][/url]&append=T]&DOMAIN=[middlestartafter=@][blacklist.email][/middle][/replace]
Domain Added[commitdatabase db=*/etc/MailScanner/rules/blacklist.db][AppendFile */etc/MailScanner/rules/spam.blacklist.rules]From: *@[middlestartafter=@][blacklist.email][/middle] yes[/AppendFile][/showif][hideif [numfound]=0]
Domain Already in Blacklist[/hideif][/search][/then][!]----- ADD SPECIFIC EMAIL ADDRESS -----[/!][else][searchdb=*/etc/MailScanner/rules/blacklist.db&eqDOMAINdatarq=[blacklist.email]][showif [numfound]=0][replacedb=*/etc/MailScanner/rules/blacklist.db&eqDOMAINdatarq=[url][blacklist.email]][/url]&append=T]&DOMAIN=[blacklist.email][/replace]
Email Address Added[commitdatabase db=*/etc/MailScanner/rules/blacklist.db][AppendFile */etc/MailScanner/rules/spam.blacklist.rules]From:[blacklist.email] yes[/AppendFile][/showif][hideif [numfound]=0]
Email Address Already in Blacklist[/hideif][/search][/else][/if][/showif][showif [action]=Restart]
[shell]sudo /etc/rc.d/init.d/MailScanner restart[/shell]
[/showif]
The database is just a 1 field thing with the .hdr having simply DOMAIN asthe field name.Jesse L CrofootWeb DesignerBy Request Web Designs & HodagSports.Comjesse@hodagsports.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
| |
- MailScanner ( "Jesse Crofoot" 2004)
|
Not sure how many of you have control over your own servers, however, forthose that are using MailScanner on a Linux machine, and are willing toinstall sudo on the box, I've put together a nice little script to all youto add domains to a blacklist and restart mailscanner w/o having to actuallylog into the box.[protect ADMIN] Spam List[showif [action]=Add][!]----- ADD FULL DOMAIN -----[/!][if "[type]"="Domain"][then][search db=*/etc/MailScanner/rules/blacklist.db&eqDOMAINdatarq=[middlestartafter=@][blacklist.email][/middle]][showif [numfound]=0][replace db=*/etc/MailScanner/rules/blacklist.db&eqDOMAINdatarq=[url][middlestartafter=@][blacklist.email][/middle][/url]&append=T]&DOMAIN=[middlestartafter=@][blacklist.email][/middle][/replace]Domain Added
[commitdatabase db=*/etc/MailScanner/rules/blacklist.db][AppendFile */etc/MailScanner/rules/spam.blacklist.rules]From: *@[middlestartafter=@][blacklist.email][/middle] yes[/AppendFile][/showif][hideif [numfound]=0]Domain Already in Blacklist
[/hideif][/search][/then][!]----- ADD SPECIFIC EMAIL ADDRESS -----[/!][else][searchdb=*/etc/MailScanner/rules/blacklist.db&eqDOMAINdatarq=[blacklist.email]][showif [numfound]=0][replacedb=*/etc/MailScanner/rules/blacklist.db&eqDOMAINdatarq=[url][blacklist.email]][/url]&append=T]&DOMAIN=[blacklist.email][/replace]Email Address Added
[commitdatabase db=*/etc/MailScanner/rules/blacklist.db][AppendFile */etc/MailScanner/rules/spam.blacklist.rules]From:[blacklist.email] yes[/AppendFile][/showif][hideif [numfound]=0]Email Address Already in Blacklist
[/hideif][/search][/else][/if][/showif][showif [action]=Restart][shell]sudo /etc/rc.d/init.d/MailScanner restart[/shell]
[/showif]
The database is just a 1 field thing with the .hdr having simply DOMAIN asthe field name.Jesse L CrofootWeb DesignerBy Request Web Designs & HodagSports.Comjesse@hodagsports.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
"Jesse Crofoot"
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
preference to using Apache 2.x or 1.3.x with WebDNA 6.0? (2004)
Bug Report, maybe (1997)
WebCat2: Formulas.db question (1997)
Configuration Q (1998)
bypassing typo's (1998)
Searching multiple Databases (1997)
WebCatalog Technical Reference (1997)
StoreBuilder UPS/XML code question ... (2003)
Help! WebCat2 bug (Ben's input) (1997)
WebCat2b15MacPlugin - showing [math] (1997)
Formulas.db + Users.db (1997)
PIXO support (1997)
[OT] (waaaay OT) (2004)
Running 2 two WebCatalog.acgi's (1996)
Requiring that certain fields be completed (1997)
Yet another db manager (2004)
Emailer kaput? (2000)
syntax question, not in online refernce (1997)
WebCatalog/Mac 2.1b2 New Features (1997)
Just a thought (1998)