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, for those that are using MailScanner on a Linux machine, and are willing to install sudo on the box, I've put together a nice little script to all you to add domains to a blacklist and restart mailscanner w/o having to actually log 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=[middle startafter=@][blacklist.email][/middle]] [showif [numfound]=0] [replace db=*/etc/MailScanner/rules/blacklist.db&eqDOMAINdatarq=[url][middle startafter=@][blacklist.email][/middle][/url]&append=T]&DOMAIN=[middle startafter=@][blacklist.email][/middle][/replace] Domain Added
[commitdatabase db=*/etc/MailScanner/rules/blacklist.db] [AppendFile */etc/MailScanner/rules/spam.blacklist.rules]From: *@[middle startafter=@][blacklist.email][/middle] yes [/AppendFile] [/showif] [hideif [numfound]=0]Domain Already in Blacklist
[/hideif] [/search] [/then] [!]----- ADD SPECIFIC EMAIL ADDRESS -----[/!] [else] [search db=*/etc/MailScanner/rules/blacklist.db&eqDOMAINdatarq=[blacklist.email]] [showif [numfound]=0] [replace db=*/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]
Domain / Email Address

Full Domain  Specific Address

 

 

The database is just a 1 field thing with the .hdr having simply DOMAIN as the field name. Jesse L Crofoot Web Designer By Request Web Designs & HodagSports.Com jesse@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:

    
  1. MailScanner ( "Jesse Crofoot" 2004)
Not sure how many of you have control over your own servers, however, for those that are using MailScanner on a Linux machine, and are willing to install sudo on the box, I've put together a nice little script to all you to add domains to a blacklist and restart mailscanner w/o having to actually log 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=[middle startafter=@][blacklist.email][/middle]] [showif [numfound]=0] [replace db=*/etc/MailScanner/rules/blacklist.db&eqDOMAINdatarq=[url][middle startafter=@][blacklist.email][/middle][/url]&append=T]&DOMAIN=[middle startafter=@][blacklist.email][/middle][/replace] Domain Added
[commitdatabase db=*/etc/MailScanner/rules/blacklist.db] [AppendFile */etc/MailScanner/rules/spam.blacklist.rules]From: *@[middle startafter=@][blacklist.email][/middle] yes [/AppendFile] [/showif] [hideif [numfound]=0]Domain Already in Blacklist
[/hideif] [/search] [/then] [!]----- ADD SPECIFIC EMAIL ADDRESS -----[/!] [else] [search db=*/etc/MailScanner/rules/blacklist.db&eqDOMAINdatarq=[blacklist.email]] [showif [numfound]=0] [replace db=*/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]
[thisurl]"> Domain / Email Address

Full Domain  Specific Address

 

[thisurl]">

 

The database is just a 1 field thing with the .hdr having simply DOMAIN as the field name. Jesse L Crofoot Web Designer By Request Web Designs & HodagSports.Com jesse@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:

[WebDNA] Cheers (2008) Supressing Error Messages (1998) searches with dash, period etc. (back form politeness) (2000) Show shoppingcart after remove last item (1997) Potential Conflicts? (1997) PIXO support (1997) Date fun with MySQL (2004) 3RD POST Character limit in [Search]? (1998) Alternating colors (1997) RE: path hierarchy notation (1998) search zip codes ranges (2003) How To get Some Help (2003) [WebDNA] Authorize.net and [tcpconnect] (2016) More questions about serial number dishing (1997) Online reference (1997) Apache 2 (2002) WebCatalog-NT?'s (1996) Unable to view next 101-200 (1997) two unique banners on one page (1997) WebCatalog NT beta 18 now available (1997)