Merak Instant Antispam Guide Revised

Total Page:16

File Type:pdf, Size:1020Kb

Merak Instant Antispam Guide Revised AntiSpam Guide 8.3.8 Prin ted on 27 January, 2006 i Contents Introduction 1 How It Works 3 MIAS Scoring System.................................................................................................................6 Actions.......................................................................................................................................6 Bypassing MIAS.........................................................................................................................7 Spam Folders..............................................................................................................................7 Processing Flow Chart.................................................................................................................8 Administration 12 General configuration.................................................................................................................12 MIAS action configuration.........................................................................................................14 Other Configuration...................................................................................................................15 Statistics....................................................................................................................................17 Configuration Files 18 Bypass Files...............................................................................................................................19 MIAS Properties in Detail..........................................................................................................19 Spam Assassin 21 How It Works.......................................................................................................................................22 SA Scoring System....................................................................................................................22 Reporting Function.....................................................................................................................23 Additional Filters.......................................................................................................................24 Administration......................................................................................................................................25 Configuration Files...............................................................................................................................27 MIAS Properties in Detail..........................................................................................................28 Sender Policy Framework and Sender Rewriting Scheme 29 Administration...........................................................................................................................30 DomainKeys 31 Administration...........................................................................................................................32 ii Contents Greylisting 35 How It Works.......................................................................................................................................36 Administration......................................................................................................................................38 Configuration Files...............................................................................................................................40 Challenge Response 41 How It Works.......................................................................................................................................42 Administration......................................................................................................................................46 Configuration File.................................................................................................................................51 Bayesian Filters 52 How It Works.......................................................................................................................................53 Administration......................................................................................................................................56 Configuration Files...............................................................................................................................58 Body & HTML filters 59 How It Works.......................................................................................................................................60 Body & HTML filters.................................................................................................................60 Charset filters.............................................................................................................................60 Administration......................................................................................................................................62 Configuration Files...............................................................................................................................66 Content Filters 67 How It Works.......................................................................................................................................68 Administration......................................................................................................................................70 Content Filters Export / Import...................................................................................................72 Configuration Files...............................................................................................................................73 Black and White Lists 73 How It Works.......................................................................................................................................74 Administration......................................................................................................................................76 Configuration Files...............................................................................................................................78 Other 78 Tarpitting..............................................................................................................................................79 How it works.............................................................................................................................79 Administration...........................................................................................................................79 Configuration files.....................................................................................................................81 DNSBL................................................................................................................................................82 How it works.............................................................................................................................82 Administration...........................................................................................................................82 Configuration files.....................................................................................................................83 Miscellaneous.......................................................................................................................................85 HELO/EHLO.............................................................................................................................85 Contents iii Delayed SMTP session processing..............................................................................................86 Troubleshooting 87 Engine Logging....................................................................................................................................88 Actions......................................................................................................................................88 Reasons.....................................................................................................................................90 SMTP Test Tool...................................................................................................................................92 FAQs....................................................................................................................................................94 Why Is Spam Message in My Inbox Folder?...............................................................................95 Why Is Legitimate Message in Spam Folder?..............................................................................96 How to check the Automated General Spam Reference Base Update...........................................96 How to Enable SPF....................................................................................................................97 How to customize Challenge Response messages?......................................................................98 How to Stop Spammers Using ESMTP and Demo/Known Accounts...........................................99 How to Use Merak as your AntiSpam and AntiVirus Gateway for MS Exchange Server?..........101 How to enable spam folders for selected users..........................................................................105 How to bypass all local messages from Spam Scanning ?..........................................................106
Recommended publications
  • Fighting Spam
    Fighting Spam 2017-10-18 Dianne Skoll Roaring Penguin Software Inc. [email protected] www.roaringpenguin.com Approaches to Fighting Spam ● Reputation-Based (IP, Domain) ● Authentication (SPF, DKIM, DMARC) ● Behavior-Based (greylisting, botnet detection) ● Content-Based ● Defense in Depth www.roaringpenguin.com IP Reputation ● Typically implemented by DNSBLs. ● Reactive – IPs are listed only after they spam. ● Some DNSBLs are high-quality. Most are not. ● Few are transparent as to listing and delisting criteria. ● Few have good IPv6 coverage. ● Useful as a first pass to cut down on spam passing to the rest of the filtering stages. www.roaringpenguin.com Domain Reputation ● Also typically implemented by DNSBLs. ● Reactive. ● Low to moderate hit rate. ● May be applied to sending domain and/or to domains of URLs in the message body. www.roaringpenguin.com Domain Reputation - 2 ● Spammers often register throwaway domains as sending domains. ● Idea: Penalize messages from “newly-seen” domains. ● CanIt 10.1.7 tracks domains seen across all CanIt installations and permits you to (mildly) penalize mail from only-recently-seen domains. www.roaringpenguin.com Authentication: SPF ● SPF (Sender Policy Framework) is a mechanism whereby domain owners can declare which machines may send email on their domains’ behalf. ● For arbitrary domains, an SPF “pass” is a mild spam indicator! ● Spammers are better at setting up SPF than many legitimate administrators. www.roaringpenguin.com Authentication: SPF - 2 ● SPF is useful for trusted domains (banks, PayPal, eBay, etc.) ● Adding points on SPF “fail” or “softfail” is useful. ● Subtracting points on SPF “pass” for arbitrary domains is dangerous. ● Subtracting points on SPF “pass” for trusted domains is useful.
    [Show full text]
  • Sicherer Betrieb Von E-Mail-Servern (Isi-S)
    Sicherer Betrieb von E-Mail-Servern (ISi-Mail-Server) BSI-Studie zur Internet-Sicherheit (ISi-S) Version 1.0 ISi-Reihe ISi-S Sicherer Betrieb von E-Mail-Servern Vervielfältigung und Verbreitung Bitte beachten Sie, dass das Werk einschließlich aller Teile urheberrechtlich geschützt ist. Erlaubt sind die Vervielfältigung und Verbreitung zu nicht-kommerziellen Zwecken, insbesondere zu Zwecken der Ausbildung, Schulung, Information oder hausinternen Bekanntmachung, sofern sie unter Hinweis auf die ISi-Reihe des BSI als Quelle erfolgen. Dies ist ein Werk der ISi-Reihe. Ein vollständiges Verzeichnis der erschienenen Bände findet man auf den Internet-Seiten des BSI. http://www.bsi.bund.de oder http://www.isi-reihe.de Bundesamt für Sicherheit in der Informationstechnik ISi-Projektgruppe Postfach 20 03 63 53133 Bonn Tel. +49 (0) 228 99 9582-0 E-Mail: [email protected] Internet: http://www.bsi.bund.de © Bundesamt für Sicherheit in der Informationstechnik 2009 2 Bundesamt für Sicherheit in der Informationstechnik ISi-Reihe ISi-S Sicherer Betrieb von E-Mail-Servern Vorwort Liebe Leserinnen und Leser, immer mehr Prozesse verlagern sich in die virtuelle Welt des Internets: Kommunikation und Daten- austausch erfolgen per E-Mail, Bankgeschäfte und Einkäufe werden zunehmend online getätigt. Dabei müssen häufig persönliche und vertrauliche Daten über das Internet versendet werden. Diese sind ein attraktives und lukratives Ziel für Online-Kriminelle, die heute international organisiert und professionell strukturiert zusammen arbeiten. IT-Kriminalität ist für die Angreifer ein lohnenswertes Geschäft bei vergleichsweise niedrigem Risiko. Identitätsdiebstahl und Angriffe mit Schadprogram- men unterschiedlichster Art gehören bei der Nutzung des Internets zu den ernstzunehmenden Bedrohungen für alle Anwender.
    [Show full text]
  • Design and Management of Email Service
    Design and Management of Email Service Source : homepage.ntu.edu.tw/~jsc/2005-mail.ppt Outline Introduction to the architecture and operation of SMTP Design of a suitable email system – Webmail solutions Postfix and simple configuration samples Spam and virus filtering Conclusion 2 Overview Electronic mail service has already evolved into one of the major Internet applications. It is not only fundamental, but also a must. Users may become impatient when mails were delayed, not to mention failed to access their emails. – Imagine we meet the situation of power failure or cut of water supply 3 Architecture of a Simple Mail System Consists of the following components – MTA - Mail transfer agent Sending and forwarding emails Server end – MDA - Mail delivery agent Delivering emails to recipients’ mailbox Server end – Pop3/Imap4 Daemons For users to download their mailboxs Server end – MUA - Mail user agent Reading and composing emails 4 Client end Architecture of a Simple Mail System Protocols Used for Mail System Protocols – For computer programs to communicate with each other – Similar to languages that human beings speak SMTP – Simple Mail Transfer Protocol – Too simple to provide any “advanced features” Authentication Authorization POP3 – Post Office Protocol version 3 – Simple IMAP4 – Internet Message Access Protocol version 4 – Fully compatible with internet message standards, e.g. MIME. – Allow messages to be accessed from more than one computer. – Provide support for online, offline, and disconnected modes. 6 – Multiple and share folders. Mail Forwarding Between Servers How to Find the Way to the Destination? How do we find the way to [email protected]? 8 DNS: The Key to All Internet Services Query DNS server by the address part of email address.([email protected]) 1.
    [Show full text]
  • Set up Mail Server Documentation 1.0
    Set Up Mail Server Documentation 1.0 Nosy 2014 01 23 Contents 1 1 1.1......................................................1 1.2......................................................2 2 11 3 13 3.1...................................................... 13 3.2...................................................... 13 3.3...................................................... 13 4 15 5 17 5.1...................................................... 17 5.2...................................................... 17 5.3...................................................... 17 5.4...................................................... 18 6 19 6.1...................................................... 19 6.2...................................................... 28 6.3...................................................... 32 6.4 Webmail................................................. 36 6.5...................................................... 37 6.6...................................................... 38 7 39 7.1...................................................... 39 7.2 SQL.................................................... 41 8 43 8.1...................................................... 43 8.2 strategy.................................................. 43 8.3...................................................... 44 8.4...................................................... 45 8.5...................................................... 45 8.6 Telnet................................................... 46 8.7 Can postfix receive?..........................................
    [Show full text]
  • Social-Engineering Experiment
    Social-Engineering Experiment Master's Thesis Marco Studer [email protected] System Security Group Institute of Information Security ETH Zurich Supervisors: Dr. Raphael Reischuk Prof. Dr. Srdjan Capkun August 13, 2018 i The icons used to indicate quotes and mitigation strategies appear under the Creative Commons Attribution 4.0 International license at https://fontawesome.com/license. No changes were made to the icons. Full credit is given to FontAwesome. Acknowledgements I thank Raphael Reischuk for his tireless effort and for the immense amount of time he invested in me and the project. His enthusiasm motivated me throughout the project. He taught me countless things and was more friend than supervisor. I thank hYuuBluei for giving me the opportunity to write this thesis. I cost hYuuBluei and its employees a lot of time and nerves. I am thankful for their patience and for being so understanding. ii Abstract Social engineering, the act of manipulating people into committing actions ben- eficial to an attacker (and most likely detrimental to the manipulated target), is as old as time itself and is likely to remain a dangerous threat to organizations and individuals alike | especially today, in times where information is more valuable than ever before. In order to better understand the implications of social engineering, this thesis constitutes research on social engineering in the context of an internation- ally operating organization. More specifically, the thesis presents the planning and execution of various social-engineering attacks that were performed over the course of approximately two months. All attacks were conducted without any insider knowledge about the targeted organization.
    [Show full text]
  • Measuring the Role of Greylisting and Nolisting in Fighting Spam
    Measuring the Role of Greylisting and Nolisting in Fighting Spam Fabio Pagani Matteo De Astis Mariano Graziano Eurecom Universita` degli Studi di Milano Eurecom and Cisco Systems, Inc. [email protected] [email protected] [email protected] Andrea Lanzi Davide Balzarotti Universita` degli Studi di Milano Eurecom [email protected] [email protected] Abstract—Spam has been largely studied in the past years require to keep some senders status and/or retrieving special from different perspectives but, unfortunately, it is still an open Domain Name System (DNS) records in order to verify problem and a lucrative and active business for criminals and an existing trust relationships or a certain reputation before bot herders. While several countermeasures have been proposed accepting an email. Post-acceptance tests involve instead a and deployed in the past decade, their impact and effectiveness number of local tests, such as the use of a classifier on the is not always clear. In particular, on top of the most common email body. content- and sender-based anti-spam techniques, two minor approaches are popular among system administrators to cope While the most popular techniques have been widely with this annoying problem: greylisting and nolisting. These studied in previous research [3]–[5], [11], [18], [22], [23], techniques exploit known features of the Simple Mail Transfer [28], [29], [35], [36], [38], the effectiveness of other minor Protocol (SMTP) protocol that are not often respected by spam bots. This assumption makes these two countermeasures really approaches have never been properly measured. In particular, simple to adopt and, at least in theory, quite effective.
    [Show full text]
  • Lecture Notes for Web Security 2019 Part 5 — E-Mail Security Martin Hell
    Lecture Notes for Web Security 2019 Part 5 | E-mail Security Martin Hell This chapter will discuss some different security aspects of emails. In order to understand these aspects, it is necessary to understand the SMTP protocol, i.e., how emails are sent from one user to another, and what the messages look like. 1 The SMTP Protocol SMTP (Simple Mail Transfer Protocol) is the most common protocol used to transfer emails. It was first defined in RFC 821 [6], which was obsoleted by RFC 2821 [4], which was again obsoleted by RFC 5321 [5]. The email architecture consists of several building blocks, see Figure 1. • MUA - Mail User Agent. This is the source and target of emails and is responsible for delivering the email to the MSA. Typical examples are Eudora, Outlook, Pine and Kmail. • MSA - Mail Submission Agent. This receives the message from the MUA and delivers it to the MTA. This is usually implemented together with the MTA instead of being a standalone program. The MSA can implement security checks on the email, e.g., checking that it is not spam, before sending it to the MTA. Message submission uses TCP port 587 and is discussed in RFC 4409 [3]. • MTA - Mail Transfer Agent. This is the building block that implements the SMTP protocol. It is responsible for both sending and receiving mes- sages. When the destination has been reached, the MTA at the end host sends the message to the MDA. Examples of MTAs are sendmail, postfix, qmail and Microsoft's Exchange Server. • MDA - Mail Delivery Agent.
    [Show full text]
  • GREETDELAY, a New Approach to Fight Spam from Botnets
    GUUG Frühjahrsfachgespräch GREETDELAY, a new approach to fight Spam from BotNets Dr. Erwin Hoffmann March 2007 Four Source Hypothesis .... • Main source: BotNet PCs • 2nd source: Through-Away Domains • 3rd source: Unqualified operated and configured E-Mail Gateways (Open Relays) • 4th source: On-purpose MTAs (in particular .ru) BotNets are build "industrial" to serve criminal purposes and are Today, BotNets are controlled centrally marketed as such. A BotNet consists by means of the IRC protocol. typically of about 20,000 PCs. It is guessed, that worldwide 50 mio PCs Source: "Threat Update: Botnets" by Lukas Feiler are available through BotNets Current Filter Approaches (1) .... Sample: port-87-234-35-12.static.qsc.de; p50805008.dip.t-dialin.net • Rejection during TCP connection phase; in particular DNS lookups: • Legitimate senders have to a have a A-Record maybe bad for dial-in users • Legitmate senders have to have a MX Record for the domain common practice for most of the cable net provider • Qualified senders have additional DomainKeys/SPF in place still not common; only for big players; a lot of overhead • RBL and OpenRelay lookups (bye, bye ORDB) may be poisend (requires additional whitelists) more-or-less static IPs only Ä Since BotNet PCs connect typically through cable nets/DSL (see above: QSC, t-online) those means don't help much Current Filter Approaches (2) .... Reject::SNDR::DNS_Helo: P:ESMTP S:82.127.162.206:alille-151-1-4-206.w82-127.abo.wanadoo.fr H:yuowe5 F:[email protected] • Rejection during SMTP session: • Reverse MX Lookup of 'Mail From:' address almost useless these days • DNS A/MX lookup of the provided 'Helo/Ehlo' name useful, but what about Thunderbird's [a.b.c.d] ? • Greylisting, ie.
    [Show full text]
  • Postfix, Past Present and Future
    IBM Research Postfix, past present and future Wietse Venema IBM T. J. Watson Research Center Hawthorne, NY, USA © 2010 IBM Corporation IBM Research Postfix in a nutshell . Who runs Postfix: – Providers with 10+M mailboxes (Outblaze, UOL). – Desktops & servers (MacOS X, Ubuntu, NetBSD). – Appliances (Brightmail, Frontbridge, etc.). Who provides Postfix: – Yours truly, helped by small number of volunteers with input from a small core of active users. – Code contributions are accepted. Sometimes as is, usually after some editing. 2 Postfix, past present and future © 2010 IBM Corporation IBM Research Overview . Publicity makes a big difference. Why (not) write another UNIX mail system. Postfix implementation. Extensibility as a proverbial life saver. Catching up on Sendmail. Lies, d*mned lies, and market share. Work in progress: postscreen. Conclusion. 3 Postfix, past present and future © 2010 IBM Corporation IBM Research . Publicity makes a difference “[Releasing SATAN is] like distributing high-powered rocket launchers throughout the world, free of charge, available at your local library or school.” San Jose Mercury, 1995 4 Postfix, past present and future © 2010 IBM Corporation IBM Research SHARING SOFTWARE, IBM TO RELEASE MAIL PROGRAM BLUEPRINT By JOHN MARKOFF - - - The program, Secure Mailer, serves as an electronic post office for server computers connected to the Internet. It was developed by Wietse Venema, an IBM researcher and computer security specialist. - - - Currently about 70 percent of all e-mail worldwide is handled by Sendmail, a program that has been developed over more. New York Times Business Section, December 1998. Publicity makes a difference 5 Postfix, past present and future © 2010 IBM Corporation IBM Research Postfix (Secure Mailer) project .
    [Show full text]
  • Qmail Quickstarter: Install, Set up and Run Your Own Email Server
    Qmail Quickstarter Install, Set Up, and Run your own Email Server A fast-paced and easy-to-follow, step-by-step guide that gets you up and running quickly Kyle Wheeler BIRMINGHAM - MUMBAI Qmail Quickstarter Install, Set Up, and Run your own Email Server Copyright © 2007 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, Packt Publishing, nor its dealers or distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: June 2007 Production Reference: 1040607 Published by Packt Publishing Ltd. 32 Lincoln Road Olton Birmingham, B27 6PA, UK. ISBN 978-1-847191-15-1 www.packtpub.com Cover Image by Vinayak Chittar ([email protected]) [ FM- ] Credits Author Editorial Manager Kyle Wheeler Dipali Chittar Reviewer Project Coordinator Russell Nelson Abhijeet Deobhakta Development Editor Indexer Nanda Padmanabhan Bhushan Pangaonkar Assistant Development Editor Proofreader Rashmi Phadnis Chris Smith Technical Editor Production Coordinator Saurabh Singh Manjiri Nadkarni Code Testing Cover Designer Ankur Shah Manjiri Nadkarni Project Manager Patricia Weir [ FM- ] About the Author Kyle Wheeler is a PhD candidate at the University of Notre Dame in the Computer Science and Engineering Department.
    [Show full text]
  • Fighting Spam: Tools, Tips, and Techniques
    Fighting Spam: Tools, Tips, and Techniques Brian Sebby Argonne National Laboratory [email protected] National Laboratories Information Technology Summit ‘08 May 11, 2008 1 Part I: Introduction 2 2 Argonne National Laboratory IT Environment Challenges Diverse population: – 2,500 employees – 10,000+ visitors annually – Off-site computer users – Foreign national employees, users, and collaborators Diverse funding: – Not every computer is a DOE computer. – IT is funded in many ways. Every program is working in an increasingly distributed computing model. Our goal: a consistent and comprehensively secure environment that supports the diversity of IT and requirements. Argonne is managed by the UChicago Argonne LLC for the Department of Energy. 3 3 Emphasis on the Synergies of Multi-Program Science, Engineering & Applications Accelerator Fundamental Research Physics Computational Infrastructure Science Analysis Materials Characterization Catalysis Science Transportation Science User Facilities Nuclear Fuel Cycle Structural .. and much more. Biology 4 4 My Background I joined Argonne in 2000. In 2002, Argonne moved to a mail gateway setup with SpamAssassin. I took over the gateway in 2003. 2004: First appliance evaluation 2005: Greylisting added to our gateway 2006: SURBL, SARE rules added to SpamAssassin 2006: SPF enabled, disabled 2007: Second appliance evaluation, moved gateway services to appliance Today: Manage our appliances, and internal mail servers running Postfix 5 5 Argonne’s Typical Mail Flows On an average day, the primary inbound mail gateway at Argonne receives: – ~ 250,000 messages – ~ 200,000 (80%) are stopped by our appliance’s Reputation Filters – ~ 3,000 (1.2%) are stopped as invalid addresses – ~ 10,000 (4%) are flagged as spam – ~ 37,000 (15%) are clean messages Our backup inbound mail gateway receives: – ~ 110,000 messages – ~ 108,000 (98%) are stopped by our appliance’s Reputation Filters – ~ 200 (0%) are stopped as invalid addresses – ~ 1,500 (2%) are flagged as spam – ~ 500 (0%) are clean messages 6 6 This Talk is… NOT a tutorial.
    [Show full text]
  • Fortimail 6.0.4 Administration Guide June 6, 2019 3Rd Edition Copyright © 2019 Fortinet, Inc
    FortiMail Administration Guide Version 6.0.4 FortiMail 6.0.4 Administration Guide June 6, 2019 3rd Edition Copyright © 2019 Fortinet, Inc. All rights reserved. Fortinet®, FortiGate®, FortiCare® and FortiGuard®, and certain other marks are registered trademarks of Fortinet, Inc., and other Fortinet names herein may also be registered and/or common law trademarks of Fortinet. All other product or company names may be trademarks of their respective owners. Performance and other metrics contained herein were attained in internal lab tests under ideal conditions, and actual performance and other results may vary. Network variables, different network environments and other conditions may affect performance results. Nothing herein represents any binding commitment by Fortinet, and Fortinet disclaims all warranties, whether express or implied, except to the extent Fortinet enters a binding written contract, signed by Fortinet’s General Counsel, with a purchaser that expressly warrants that the identified product will perform according to certain expressly-identified performance metrics and, in such event, only the specific performance metrics expressly identified in such binding written contract shall be binding on Fortinet. For absolute clarity, any such warranty will be limited to performance in the same ideal conditions as in Fortinet’s internal lab tests. Fortinet disclaims in full any covenants, representations, and guarantees pursuant hereto, whether express or implied. Fortinet reserves the right to change, modify, transfer, or otherwise revise this publication without notice, and the most current version of the publication shall be applicable. Technical Documentation docs.fortinet.com Knowledge Base kb.fortinet.com Customer Service & Support support.fortinet.com Training Services training.fortinet.com FortiGuard fortiguard.com Document Feedback [email protected] Table of contents Concepts and workflow..................................................................................
    [Show full text]