Knowledge

Apache SpamAssassin

Source 📝

221: 1578: 448:. Within this file, they can specify individuals whose emails are never considered spam, or change the scores for certain rules. The user can also define a list of languages which they want to receive mail in, and SpamAssassin then assigns a higher score to all mails that appear to be written in another language. This can be very useful to users receiving a lot of foreign spam but never actually corresponding with people in that language. 420:"limited time only" phrase) might be assigned a score of +0.3. With a spam threshold of 5 (default as of SpamAssassin version 2.55), several other tests would usually have to fail for the mail to be classified as spam. On the other hand, some tests, such as those for invalid message IDs or years, result in a very high score being assigned, where even a single test can almost put a mail "over the edge". 424: 308:
used in conjunction with the sources of spam may far exceed the average user's capability. For instance, graphic-only spam messages have no text to compare to therefore checking the sender's originating mailserver and included links against various databases of known e-mail abusers enables the prevention of unnecessary or non-personal mail getting through to the end user.
416:, and if these expressions match, the email is assigned a certain score, depending on the test, and several (customizable) headers are added to the mail. The total score resulting from all tests or other criteria can then be used by the end user or by the ISP to set the conditions under which email is moved to a separate spam folder, deleted, flagged etc. 440:
attachment, with a brief excerpt in the message body, and a description of the tests which resulted in the mail being classified as spam. If the score is lower than the defined settings, by default the information about the passed tests and total score is still added to the email headers and can be
307:
as one of the most effective spam filters, especially when used in combination with spam databases. While simple text-matching alone may, for most users, be sufficient to correctly classify a majority of incoming mail the complexity involved in the combination of the comparison of words and symbols
419:
Each test has a label and a description. The label is usually an all upper case identifier separated with underscores, such as "LIMITED_TIME_ONLY", with the description for that label being "Offers a limited time offer". A mail that fails that test (in this case, contains certain variants of the
527:
can be called for individual emails. Regardless of the method used to perform the learning, SpamAssassin's Bayesian test will subsequently assign a higher score to e-mails that are similar to previously received spam (or, more precisely, to those emails that are different from
435:
When a mail's total score is higher than the "required_score" setting in SpamAssassin's configuration, the mail is treated as spam and rewritten according to several options. In the default configuration, the content of the mail is appended as a
411:
SpamAssassin comes with a large set of rules which are applied to determine whether an email is spam or not. To decide, specific fields within the email header and the email body are typically searched for certain
1614: 1604: 586:
test file. If this string is inserted in a RFC 2822 formatted message and passed through the SpamAssassin engine, SpamAssassin will trigger with a weight of 1000.
512:
example "ham" (useful) mails to the filter, which can then learn the difference between the two. For this purpose, SpamAssassin provides the command-line tool
758: 477: 122: 110: 317: 658: 634: 126: 106: 118: 1411: 751: 559: 380:). The latter mode of operation has performance benefits, but under certain circumstances may introduce additional security risks. 686: 162: 508:, but Bayesian learning is most effective with actual user input. Typically, the user is expected to "feed" example spam mails 1582: 744: 473: 523:
on the folder of non-spam and on the folder of spam separately. Alternatively, if the mail user agent supports it,
243: 145: 767: 1354: 293: 86: 37: 196: 304: 173: 553: 373: 300:-based, checksum-based and statistical filtering, supported by external programs and online databases. 75: 26: 1359: 833: 487: 360:) which is usually used to filter all incoming mail for one or several users. It can be run as a 704: 1609: 1374: 519:
Typically, the user will move unrecognized spam to a separate folder for a while, and then run
361: 1298: 707:
showing that SpamAssassin received 69% of the vote for "best Linux-based anti-spam solution."
516:, which can be instructed to learn a single mail or an entire mailbox as either ham or spam. 567: 661:
is a hosted spam and virus solution that uses SpamAssassin as part of the filtering process
328:. Mason rewrote all of Jeftovic's code from scratch and uploaded the resulting codebase to 8: 441:
used in post-processing for less severe actions, such as tagging the mail as suspicious.
220: 114: 61: 496:
More methods can be added reasonably easily by writing a Perl plug-in for SpamAssassin.
828: 505: 413: 365: 297: 1253: 1143: 1028: 893: 878: 858: 82: 33: 21: 1462: 1336: 1293: 1283: 983: 943: 928: 883: 681: 652: 549: 428: 396: 282: 255: 231: 1497: 1492: 1472: 1328: 1308: 1268: 1263: 1258: 1243: 1198: 973: 863: 793: 788: 783: 736: 655:
uses SpamEliminator, which is based on SpamAssassin, for heuristic spam filtering
583: 388: 1563: 1537: 1532: 1487: 1447: 1390: 1364: 1346: 1163: 1158: 1138: 1133: 1128: 1088: 1013: 908: 903: 888: 868: 798: 607:- email/groupware server contains built-in support for SpamAssassin integration 545: 445: 286: 260: 236: 205: 1598: 1522: 1477: 1452: 1323: 1313: 1288: 1273: 1248: 1193: 1153: 1093: 1068: 1063: 1043: 1023: 1018: 993: 978: 913: 898: 808: 803: 391:
that supports this, whenever new mail arrives. Mail filter programs such as
1517: 1502: 1457: 1406: 1369: 1318: 1233: 1228: 1218: 1213: 1208: 1203: 1183: 1178: 1123: 1118: 1108: 1073: 1058: 1048: 1033: 1003: 998: 963: 958: 948: 938: 933: 923: 873: 848: 823: 818: 619:
supports SpamAssassin and other spam filters, through some modular filters.
1542: 1482: 1437: 1278: 1223: 1188: 1098: 1078: 1053: 1038: 1008: 988: 953: 853: 843: 838: 610: 596: 541: 384: 329: 290: 248: 180: 676: 444:
The user can customize these filters using a file "user_prefs" in their
320:
who had maintained a number of patches against an earlier program named
1547: 1507: 1467: 1416: 1173: 1168: 1148: 968: 918: 813: 622: 604: 157: 629:
SpamAssassin has also been used in many commercial products including:
563: 698: 399:
all incoming mail through SpamAssassin with an adjustment to user's
1103: 1083: 671: 482: 392: 383:
Typically either variant of the application is set up in a generic
333: 270: 504:
SpamAssassin by default tries to reinforce its own rules through
717: 712: 692: 701:
to automatically update SA with the newest and best SARE rules.
640: 1527: 1442: 1421: 1113: 730: 616: 579: 466: 460: 66: 423: 1512: 1303: 437: 357: 349: 337: 325: 184: 64:
to this revision, which may differ significantly from the
726: 578:
Most implementations of SpamAssassin will trigger on the
722: 427:
E-mail recognized as spam by SpamAssassin, here in the
695:
containing many very good rules for filtering with SA.
532:
in ways similar to previously received spam e-mails).
296:
based on content-matching rules, which also supports
548:. Versions prior to 3.0 are dual-licensed under the 324:
by Mark Jeftovic, which in turn was begun in August
766: 451: 1596: 535: 752: 699:OpenProtect's SpamAssassin sa-update channel 582:, a 68 byte string not unlike the antivirus 144: 759: 745: 613:- "A Free Anti-Virus and Anti-Spam Filter" 219: 387:program, or it is called directly from a 643:uses SpamAssassin in its anti-spam tool 422: 47: 599:products have support for SpamAssassin: 573: 406: 74:Revision as of 22:59, 22 March 2007 by 73: 14: 1597: 568:with the trademark holder's permission 493:as a means to tell 'ham' from 'spam'. 469:or URIBL.com which track spam websites 740: 725:If a spam email MENTIONS a known-bad 723:SURBL -- Spam URI Realtime Blocklists 649:Spamnix is also based on SpamAssassin 499: 44: 25: 17: 474:Distributed Checksum Clearinghouses 472:checksum-based filters such as the 343: 135: 104: 95: 52: 693:SpamAssassin Rules Emporium (SARE) 136: 1626: 665: 60:. The present address (URL) is a 1577: 1576: 146: 452:Network-based filtering methods 768:The Apache Software Foundation 672:SpamAssassin official homepage 560:Like many open-source programs 13: 1: 713:Vipul's Razor, on SourceForge 562:, the name "SpamAssassin" is 536:Licensing and usage elsewhere 456:SpamAssassin also supports: 316:SpamAssassin was created by 7: 705:Linux New Media Awards 2006 589: 372:) that communicates with a 24:of this page, as edited by 10: 1631: 718:Pyzor, also on SourceForge 554:GNU General Public License 311: 285:released freely under the 93: 50: 1572: 1556: 1430: 1399: 1383: 1345: 774: 729:, it gets blacklisted by 689:Automatically updating SA 637:incorporates SpamAssassin 461:DNS-based blackhole lists 266: 254: 242: 230: 195: 191: 172: 168: 156: 143: 488:Sender Policy Framework 465:URI blacklists such as 271:spamassassin.apache.org 682:Links for german users 432: 362:standalone application 151: 566:and may only be used 544:, licensed under the 426: 163:The SpamAssassin team 150: 147:File:SpamAssassin.png 1615:Free e-mail software 574:Testing SpamAssassin 407:Anti-spam techniques 352:-based application ( 45:22:59, 22 March 2007 414:regular expressions 140: 111:← Previous revision 829:Apache HTTP Server 546:Apache License 2.0 506:Bayesian filtering 500:Bayesian filtering 433: 354:Mail::SpamAssassin 348:SpamAssassin is a 305:generally regarded 287:Apache License 2.0 261:Apache License 2.0 152: 138: 1592: 1591: 677:SpamAssassin Wiki 276: 275: 249:Email spam filter 1622: 1580: 1579: 761: 754: 747: 738: 737: 653:Kerio MailServer 550:Artistic License 540:SpamAssassin is 429:Novell Evolution 344:Methods of usage 303:SpamAssassin is 283:computer program 232:Operating system 223: 218: 215: 213: 211: 209: 207: 148: 141: 137: 123:Newer revision → 101: 99: 98: 96:→‎External links 90: 69: 67:current revision 59: 58: 56: 55: 53:→‎External links 46: 42: 41: 1630: 1629: 1625: 1624: 1623: 1621: 1620: 1619: 1595: 1594: 1593: 1588: 1568: 1552: 1426: 1395: 1379: 1341: 776: 770: 765: 668: 592: 576: 538: 502: 454: 409: 395:can be made to 389:mail user agent 346: 330:SourceForge.net 314: 226: 204: 187: 134: 133: 132: 131: 130: 115:Latest revision 103: 102: 94: 91: 80: 78: 65: 51: 48: 31: 29: 12: 11: 5: 1628: 1618: 1617: 1612: 1607: 1605:Spam filtering 1590: 1589: 1587: 1586: 1573: 1570: 1569: 1567: 1566: 1564:Apache License 1560: 1558: 1554: 1553: 1551: 1550: 1545: 1540: 1535: 1530: 1525: 1520: 1515: 1510: 1505: 1500: 1495: 1490: 1485: 1480: 1475: 1470: 1465: 1460: 1455: 1450: 1445: 1440: 1434: 1432: 1428: 1427: 1425: 1424: 1419: 1414: 1409: 1403: 1401: 1400:Other projects 1397: 1396: 1394: 1393: 1387: 1385: 1381: 1380: 1378: 1377: 1372: 1367: 1362: 1357: 1351: 1349: 1343: 1342: 1340: 1339: 1334: 1331: 1326: 1321: 1316: 1311: 1306: 1301: 1299:Traffic Server 1296: 1291: 1286: 1281: 1276: 1271: 1266: 1261: 1256: 1251: 1246: 1241: 1236: 1231: 1226: 1221: 1216: 1211: 1206: 1201: 1196: 1191: 1186: 1181: 1176: 1171: 1166: 1161: 1156: 1151: 1146: 1141: 1136: 1131: 1126: 1121: 1116: 1111: 1106: 1101: 1096: 1091: 1086: 1081: 1076: 1071: 1066: 1061: 1056: 1051: 1046: 1041: 1036: 1031: 1026: 1021: 1016: 1011: 1006: 1001: 996: 991: 986: 981: 976: 971: 966: 961: 956: 951: 946: 941: 936: 931: 926: 921: 916: 911: 906: 901: 896: 891: 886: 881: 876: 871: 866: 861: 856: 851: 846: 841: 836: 831: 826: 821: 816: 811: 806: 801: 796: 791: 786: 780: 778: 772: 771: 764: 763: 756: 749: 741: 735: 734: 720: 715: 709: 708: 702: 696: 690: 684: 679: 674: 667: 666:External links 664: 663: 662: 656: 650: 647: 638: 626: 625: 620: 614: 608: 595:The following 591: 588: 575: 572: 537: 534: 526: 522: 515: 501: 498: 491: 490: 485: 480: 470: 463: 453: 450: 446:home directory 408: 405: 402: 379: 371: 355: 345: 342: 313: 310: 274: 273: 268: 264: 263: 258: 252: 251: 246: 240: 239: 237:Cross-platform 234: 228: 227: 225: 224: 201: 199: 193: 192: 189: 188: 179:3.1.8 / 178: 176: 174:Stable release 170: 169: 166: 165: 160: 154: 153: 76: 62:permanent link 27: 16: 15: 9: 6: 4: 3: 2: 1627: 1616: 1613: 1611: 1610:Perl software 1608: 1606: 1603: 1602: 1600: 1585: 1584: 1575: 1574: 1571: 1565: 1562: 1561: 1559: 1555: 1549: 1546: 1544: 1541: 1539: 1536: 1534: 1531: 1529: 1526: 1524: 1521: 1519: 1516: 1514: 1511: 1509: 1506: 1504: 1501: 1499: 1496: 1494: 1491: 1489: 1486: 1484: 1481: 1479: 1476: 1474: 1471: 1469: 1466: 1464: 1461: 1459: 1456: 1454: 1451: 1449: 1446: 1444: 1441: 1439: 1436: 1435: 1433: 1429: 1423: 1420: 1418: 1415: 1413: 1410: 1408: 1405: 1404: 1402: 1398: 1392: 1389: 1388: 1386: 1382: 1376: 1373: 1371: 1368: 1366: 1363: 1361: 1358: 1356: 1353: 1352: 1350: 1348: 1344: 1338: 1335: 1332: 1330: 1327: 1325: 1322: 1320: 1317: 1315: 1312: 1310: 1307: 1305: 1302: 1300: 1297: 1295: 1292: 1290: 1287: 1285: 1282: 1280: 1277: 1275: 1272: 1270: 1267: 1265: 1262: 1260: 1257: 1255: 1252: 1250: 1247: 1245: 1242: 1240: 1237: 1235: 1232: 1230: 1227: 1225: 1222: 1220: 1217: 1215: 1212: 1210: 1207: 1205: 1202: 1200: 1197: 1195: 1192: 1190: 1187: 1185: 1182: 1180: 1177: 1175: 1172: 1170: 1167: 1165: 1162: 1160: 1157: 1155: 1152: 1150: 1147: 1145: 1142: 1140: 1137: 1135: 1132: 1130: 1127: 1125: 1122: 1120: 1117: 1115: 1112: 1110: 1107: 1105: 1102: 1100: 1097: 1095: 1092: 1090: 1087: 1085: 1082: 1080: 1077: 1075: 1072: 1070: 1067: 1065: 1062: 1060: 1057: 1055: 1052: 1050: 1047: 1045: 1042: 1040: 1037: 1035: 1032: 1030: 1027: 1025: 1022: 1020: 1017: 1015: 1012: 1010: 1007: 1005: 1002: 1000: 997: 995: 992: 990: 987: 985: 982: 980: 977: 975: 972: 970: 967: 965: 962: 960: 957: 955: 952: 950: 947: 945: 942: 940: 937: 935: 932: 930: 927: 925: 922: 920: 917: 915: 912: 910: 907: 905: 902: 900: 897: 895: 892: 890: 887: 885: 882: 880: 877: 875: 872: 870: 867: 865: 862: 860: 857: 855: 852: 850: 847: 845: 842: 840: 837: 835: 832: 830: 827: 825: 822: 820: 817: 815: 812: 810: 807: 805: 802: 800: 797: 795: 792: 790: 787: 785: 782: 781: 779: 773: 769: 762: 757: 755: 750: 748: 743: 742: 739: 732: 728: 724: 721: 719: 716: 714: 711: 710: 706: 703: 700: 697: 694: 691: 688: 685: 683: 680: 678: 675: 673: 670: 669: 660: 657: 654: 651: 648: 646: 642: 639: 636: 633: 632: 631: 630: 624: 621: 618: 615: 612: 609: 606: 603: 602: 601: 600: 598: 587: 585: 581: 571: 569: 565: 561: 557: 555: 551: 547: 543: 533: 531: 524: 520: 517: 513: 511: 507: 497: 494: 489: 486: 484: 481: 479: 478:Vipul's Razor 475: 471: 468: 464: 462: 459: 458: 457: 449: 447: 442: 439: 431:email client. 430: 425: 421: 417: 415: 404: 400: 398: 394: 390: 386: 381: 377: 375: 369: 367: 363: 359: 353: 351: 341: 339: 335: 331: 327: 323: 319: 309: 306: 301: 299: 295: 292: 288: 284: 280: 272: 269: 265: 262: 259: 257: 253: 250: 247: 245: 241: 238: 235: 233: 229: 222: 217: 214:/spamassassin 203: 202: 200: 198: 194: 190: 186: 182: 177: 175: 171: 167: 164: 161: 159: 155: 149: 142: 128: 124: 120: 116: 112: 108: 97: 88: 84: 79: 72: 71: 68: 63: 54: 39: 35: 30: 23: 1581: 1239:SpamAssassin 1238: 644: 628: 627: 594: 593: 577: 558: 539: 529: 518: 509: 503: 495: 492: 455: 443: 434: 418: 410: 382: 347: 321: 318:Justin Mason 315: 302: 279:SpamAssassin 278: 277: 158:Developer(s) 139:SpamAssassin 22:old revision 19: 18: 659:MailLaunder 611:MailScanner 597:open source 564:trademarked 542:open source 401:.procmailrc 385:mail filter 291:e-mail spam 181:February 14 20:This is an 1599:Categories 1468:Deltacloud 1254:Subversion 1144:OрenOffice 1029:Jackrabbit 969:FreeMarker 894:CloudStack 879:CarbonData 859:Bloodhound 645:SpamKiller 635:AntibodyMX 623:MIMEDefang 322:filter.plx 197:Repository 1463:Continuum 1384:Incubator 1337:ZooKeeper 1294:Trafodion 1284:TinkerPop 984:Guacamole 944:Empire-db 929:Directory 884:Cassandra 775:Top-level 687:sa-update 294:filtering 289:used for 1583:Category 1557:Licenses 1498:Marmotta 1329:XMLBeans 1309:Velocity 1269:Tapestry 1264:SystemDS 1259:Superset 1249:Struts 2 1244:Struts 1 1199:RocketMQ 1104:NetBeans 1084:mod_perl 974:Geronimo 864:Brooklyn 794:Airavata 789:ActiveMQ 784:Accumulo 777:projects 590:See also 552:and the 530:non-spam 525:sa-learn 521:sa-learn 514:sa-learn 483:Hashcash 393:procmail 364:or as a 334:April 20 87:contribs 38:contribs 1538:Tuscany 1533:Stanbol 1493:Jakarta 1488:Harmony 1448:Beehive 1391:Taverna 1375:Logging 1347:Commons 1164:Phoenix 1159:Parquet 1139:OpenNLP 1134:OpenJPA 1129:OpenEJB 1089:MyFaces 1014:Iceberg 909:CouchDB 904:Cordova 889:Cayenne 869:Calcite 799:Airflow 605:Citadel 312:History 267:Website 256:License 212:/viewvc 208:.apache 77:Vid2vid 28:Vid2vid 1478:Giraph 1453:iBATIS 1365:Daemon 1324:Xerces 1314:Wicket 1289:Tomcat 1274:Thrift 1194:Roller 1154:PDFBox 1094:Mynewt 1069:Mahout 1064:Lucene 1044:JMeter 1024:Impala 1019:Ignite 994:Hadoop 979:Groovy 914:cTAKES 899:Cocoon 809:Ambari 804:Allura 641:McAfee 403:file. 374:daemon 366:client 1528:Sqoop 1523:Slide 1518:Shale 1513:River 1503:MXNet 1458:Click 1443:AxKit 1431:Attic 1422:Log4j 1407:Batik 1370:Jelly 1333:Yetus 1319:Xalan 1234:Storm 1229:Spark 1219:Sling 1214:SINGA 1209:Shiro 1204:Samza 1184:Pivot 1179:Pinot 1124:Oozie 1119:OFBiz 1114:NuttX 1109:Nutch 1074:Maven 1059:Kylin 1049:Kafka 1034:James 1004:Helix 999:HBase 964:Flume 959:Flink 949:Felix 939:Druid 934:Drill 924:Derby 874:Camel 849:Axis2 824:Arrow 819:Aries 731:SURBL 617:KMail 584:EICAR 580:GTUBE 467:SURBL 378:spamd 370:spamc 281:is a 1543:Wave 1483:Hama 1473:Etch 1438:Apex 1355:BCEL 1304:UIMA 1279:Tika 1224:Solr 1189:Qpid 1099:NiFi 1079:MINA 1054:Kudu 1039:Jena 1009:Hive 989:Gump 954:Flex 854:Beam 844:Axis 839:Avro 476:and 438:MIME 397:pipe 358:CPAN 350:Perl 338:2001 326:1997 244:Type 210:.org 185:2007 127:diff 121:) | 119:diff 107:diff 83:talk 34:talk 1548:XML 1508:ODE 1417:Ivy 1412:FOP 1360:BSF 1174:Pig 1169:POI 1149:ORC 919:CXF 834:APR 814:Ant 727:URL 510:and 356:in 332:on 298:DNS 206:svn 43:at 1601:: 570:. 556:. 340:. 336:, 183:, 113:| 109:) 85:| 36:| 760:e 753:t 746:v 733:. 376:( 368:( 216:/ 129:) 125:( 117:( 105:( 100:) 92:( 89:) 81:( 70:. 57:) 49:( 40:) 32:(

Index

old revision
Vid2vid
talk
contribs
→‎External links
permanent link
current revision
Vid2vid
talk
contribs
→‎External links
diff
← Previous revision
Latest revision
diff
Newer revision →
diff
File:SpamAssassin.png
Developer(s)
The SpamAssassin team
Stable release
February 14
2007
Repository
svn.apache.org/viewvc/spamassassin/
Edit this at Wikidata
Operating system
Cross-platform
Type
Email spam filter

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.