Copyright © 2007 by Scott Orr and the Trustees of Indiana University

Slides:



Advertisements
Similar presentations
Anti-SPAM experience at LAL Michel Jouvin LAL / IN2P3
Advertisements

TrustPort Net Gateway traffic protection. Keep It Secure Entry point protection –Clear separation of the risky internet and secured.
Fighting spam: the thin grey line Alun Jones,
Protocols and Troubleshooting Brandon Checketts.
----Presented by Di Xu  Introduction  Overview of Spam  Solutions to Spam  Conclusion.
Exchange 2003 and SPAM Fighting Emmanuel Ormancey, Rafal Otto Internet Services Group Department of Information Technology CERN 3 June 2015.
WeeSan Lee
Spam May CS239. Taxonomy (UBE)  Advertisement  Phishing Webpage  Content  Links From: Thrifty Health-Insurance Mailed-By: noticeoption.comReply-To:
Sender policy framework. Note: is a good reference source for SPFhttp://
Guide to Operating System Security Chapter 10 Security.
2440: 141 Web Site Administration Services Instructor: Enoch E. Damson.
Pro Exchange SPAM Filter An Exchange 2000 based spam filtering solution.
Spam Sonia Jahid University of Illinois Fall 2007.
23 October 2002Emmanuel Ormancey1 Spam Filtering at CERN Emmanuel Ormancey - 23 October 2002.
Spam Reduction Techniques Using greylisting and SpamAssassin.
TrustPort Net Gateway traffic protection. Keep It Secure Entry point protection –Clear separation of the risky internet and secured.
Exchange deployment at CERN and new ideas for SPAM fighting Michel Christaller, Emmanuel Ormancey, Alberto Pace.
CT NIKHEF Nov Mail NIKHEF CT system support.
Spam and Anti-Spam By Aditi Desai Yousuf Haider. Agenda Introduction Purpose of Spam Types of Spam Spam Techniques Anti spam Why Spam is so Easy Anti.
Norman SecureTide Powerful cloud solution to stop spam and threats before it reaches your network.
Antispam GARR Michele Michelotto Hepix Karlsruhe, 11 May 2005.
1 SMTP Transport Configuration SMTP Configurations and Virtual Servers Customizing the SMTP Service.
Login Screen This is the Sign In page for the Dashboard Enter Id and Password to sign In New User Registration.
CensorNet Ltd An introduction to CensorNet Mailsafe Presented by: XXXXXXXX Product Manager Tel: XXXXXXXXXXXXX.
Sending Mark Kruger Coldfusionmuse.com Cfwebtools.com.
Combating Abuse Brian Nisbet NOC Manager HEAnet.
SMTP PROTOCOL CONFIGURATION AND MANAGEMENT Chapter 8.
1 北區機房 IP 維運處暨 IDC 維運組 鄭任峰 郵件系統維運 課程 : Sendmail 與 postfix 的設定與比較 北區機房 IP 維運處暨 IDC 維運組 鄭任峰.
Login Screen This is the Sign In page for the Dashboard New User Registration Enter Id and Password to sign In.
S ystem P rogrammers' A ssociation for R esearching C omputer S ystems Popular MTAs EXIM & POSTFIX SPARCS 10 이대근 (harry)
SMTP/POSTFIX.
ISQS server attacks Presented by Deven Patel.
© Toronto Area Security Klatch 2007 A drop-in anti-spam solution A 15 minute speed talk by Paul Wouters.
Client X CronLab Spam Filter Technical Training Presentation 19/09/2015.
and Mobile Code Issues CS432 - Security in Computing Copyright © 2005, 2009 by Scott Orr and the Trustees of Indiana University.
Introduction to Internet Mail Abridged & Updated by Hervey Allen Noah Sematimba Based on Materials by Philip Hazel.
Mail Service Mail Service using Postfix Campus-Booster ID : **XXXXX
Postfix Mail Server Postfix is used frequently and handle thousands of messages. compatible with sendmail at command level. high performance program easier-
NA Homework 4+5 Postfix + DNS. 2 Demo >Setup everything before Demo, or you ’ ll get no point if something don ’ t work. >Show your mail functions to.
Mailserver. Why Postfix ? Sendmail’s legacy Built from ground up Central queue-ing More future-proof Exim4 default of debian, but...
1 Electronic Messaging Module - Electronic Messaging ♦ Overview Electronic messaging helps you exchange messages with other computer users anywhere in.
1 SMTP - Simple Mail Transfer Protocol –RFC 821 POP - Post Office Protocol –RFC 1939 Also: –RFC 822 Standard for the Format of ARPA Internet Text.
Silicon & Software Systems (S3)‏ Copyright © Silicon & Software Systems Limited Antispam protection IT Department 20/03/2008 Ondrej Valousek.
GATEWAY WITH PER-USER SPAM BLOCKING AND VIRUS SCANNING Greg Woods National Center for Atmospheric Research Scientific Computing Division Boulder,
Source pictures for document ”Thoughts about increasing spam annoyance” by License: This material may be distributed only subject.
LinxChix And Exim. Mail agents MUA = Mail User Agent Interacts directly with the end user  Pine, MH, Elm, mutt, mail, Eudora, Marcel, Mailstrom,
1 Information Systems 2/26/03 Tom Coppeto Mark Silis MIT Mail System Update 26 February 2003.
Homework 04 Mail System. Computer Center, CS, NCTU 2 Architecture SMTP POP3/IMAP domain.tld Internet Users sub.domain.tld Mail Server.
SMTP Tapu Ahmed Jeremy Nunn. Basics Responsible for electronic mail delivery. Responsible for electronic mail delivery. Simple ASCII protocol that runs.
Principles of Computer Security: CompTIA Security + ® and Beyond, Third Edition © 2012 Principles of Computer Security: CompTIA Security+ ® and Beyond,
Sender policy framework. Note: is a good reference source for SPFhttp://
CITA 310 Section 6 Providing Services (Textbook Chapter 8)
1 Web Server Administration Chapter 8 Providing Services.
Linux Operations and Administration Chapter Twelve Configuring a Mail Server.
[1] Control Spam by the Use of Greylisting Torgny Hallenmark LDC - Computing Center Lund University, Sweden TERENA Networking.
Fighting Spam in an Exchange Environment Tzahi Kolber IT Supervisor - Polycom Israel.
FNAL Central Systems Jack Schmidt, Al Lilianstrom, Ray Pasetes, and Kevin Hill (Fermi National Accelerator Laboratory) Introduction The FNAL .
Anti-Spam Updates Activity Coordination Meeting March 2006 Kevin Hill.
Spamfilter Relay Mailserver Mark McSweeney CentraLUG, February 1, 2010.
sender policy framework
concepts & protocols
Anti-Spam Managing Spam with Kerio Connect
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
Network Administration Practice Homework4 – Mail System
Unix System Administration
Overview What is Spoofing Types of Spoofing
Spam Fighting at CERN 12 January 2019 Emmanuel Ormancey.
This is the Sign In page for the Dashboard
Management Suite v2.0 DoubleCheck Manager Management Suite v2.0.
Presentation transcript:

Copyright © 2007 by Scott Orr and the Trustees of Indiana University Email Services CSCI N321 – System and Network Administration Copyright © 2007 by Scott Orr and the Trustees of Indiana University

Section Overview Email Architecture Postfix Configuration Mail forwarding CS Spam-Filtering Architecture Procmail

References Apache Site – http://www.postfix.org RedHat Deployment Guide Chapter 24 – Email

Email Server Architecture MTA MTA MDA (sendmail) (postfix) (procmail) smtp imap(s) pop(s) smtp(s) MUA AA (Outlook) (imapd) (popd)

SMTP Protocol [smo@sysadmin ~]$ telnet tempest.cs.iupui.edu 25 Trying 134.68.140.202... Connected to tempest.cs.iupui.edu (134.68.140.202). Escape character is '^]'. 220 tempest.cs.iupui.edu ESMTP Postfix helo sysadmin 250 tempest.cs.iupui.edu mail from: <smorr@indiana.edu> 250 2.1.0 Ok rcpt to: <sorr@cs.iupui.edu> 250 2.1.5 Ok data 354 End data with <CR><LF>.<CR><LF> Subject: Hello Hi Scott . 250 2.0.0 Ok: queued as B06375050618 quit 221 2.0.0 Bye Connection closed by foreign host.

Postfix MTA More secure replacement for Sendmail Suite of programs to handle email postfix <option> start stop reload flush Configuration files /etc/postfix/master.cf /etc/postfix/main.cf

master.cf Maps services to postfix daemons Format Service Name Service Type (inet | fifo | unix) Private (y | n) Unprivileged (y | n) Chroot (y | n) Wakeup # Maxproc # command + args Spam and Virus filtering

main.cf – Directories/Owner Key Directories queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix mail_spool_directory = /var/spool/mail config_directory = /etc/postfix Ownership - mail_owner = postfix

main.cf – Delivery Addesses Address Configuration myhostname = tempest.cs.iupui.edu mydomain = cs.iupui.edu myorigin = $mydomain mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain Smart Host relayhost = mail-relay.iu.edu

main.cf – SMTPd smtpd_banner = $myhostname ESMTP $mail_name smtpd_helo_required = yes smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination

Authenticated Delivery Only allow valid users to send email main.cf smtpd_sasl_auth_enable = yes smtpd_sasl_loglevel = 2 smtpd_sasl_received_header = yes saslauthd Daemon /etc/sysconfig/saslauthd /usr/lib/sasl2/smtpd.conf

SSL Support Authenticated access must be protected main.cf smtpd_use_tls = yes smtpd_tls_auth_only = yes smtpd_tls_key_file = /etc/postfix/certs/smtpd.key smtpd_tls_cert_file = /etc/postfix/certs/smtpd.crt smtpd_tls_loglevel = 2 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s

Mail Forwarding /etc/postfix/aliases newaliases alias: real-address[,…] newaliases postmaster@cs.iupui.edu main.cf alias_maps = hash:/etc/postfix/aliases alias_database = hash:/etc/postfix/aliases ~/.forward Mailing lists alias: :include:<path_to_file> Majordomo & mailmain

Reading Email IMAP/IMAPS Webmail Used to read messages online Should always use with via SSL Typically started via inetd/xinetd Webmail Squirrelmail Horde

Opening Spam-dora’s Box April 12, 1994 – Lawyers Laurence Canter and Martha Siegel sent message about upcoming Green Card lottery to some 6000+ Usenet News Groups in less than 90 minutes Arizona ISP Internet Direct received so many email complaints, their email server(s) crashed more than 15 times. C&S account gets cancelled and threaten to sue (although never do) C&S publish How to Make a Fortune on the Information Superhighway (1995)

14 years later… SPAM (Unsolicited Commercial Email) 60% - 94% of all email (1st Qtr. 2008) Phishing Attacks less than 1% of all email but growing Significant increase in Botnets Top Spam-Sending Countries United States (37.9%) China (4.6%) United Kingdom (4.3%) Germany (3.8%) Brazil (3.8%) Source: Commtouch Software Online Labs

Costs of Spam Spammers Recipent Great ROI!!! Malware writer partnerships Phishing Recipent Time Bandwidth Storage space

SPAM Filtering Techniques Black lists White lists Content (keyword blocking) Invalid addresses/header values Heuristics Bayesian Filtering

Greylisting Each message identified by a triplet Envelope recipient Envelope sender IP address of delivering host Delivery based on following rules: If IP address or recipient on whitelist – send msg to recipient If not seen triplet before – send tempfail msg and record triplet If time limit on triplet not expired – send tmpfail msg If time limit on triplet expired – send msg to recipient and update last seen time. Remove triplet from database after not seen for set period of time

Sender Policy Framework (SPF) Receiving host verifies sender is legitimate mail server for originating domain Add TXT (SPF) records to Domain DNS Domain specific Each host with MX record (also A, PTR, IP addr, external hosts) cs.iupui.edu. IN TXT "v=spf1 mx a:storm.cs.iupui.edu" Issues Breaks email forwarding Spammers can still send messages if they have an account on domain Most major ISPs do not support SPF (yet)

Maia-Mailguard (Amavisd) CS Email Architecture smtp postfix Maia-Mailguard (Amavisd) clamav spamassasin Greylist? Procmail Quarantine (MySQL) Mail spool

Clam Antivirus Open Source If signature match… Added header fields: Delivered-To: virus-quarantine X-Quarantine-Id: <zzWB7-YxAXsI> X-Amavis-Alert: INFECTED, message contains virus: <virus signature ID> Moved to quarantine area Email sent to virusalert@cs.iupui.edu Hourly checks for signature updates Phishing signatures included 

Spamassassin Open Source (Part of Apache project) Weighted Heuristic tests Full Message Header Body URI Third party plugins

SA: Full Message Tests Message found in hashed Spam databases Entries contributed by Spam recipients Uses statistical and randomized signatures Distributed Checksum Clearinghouse (DCC) Vipul’s Razor

SA: Message Header Tests Header Anomalies (length, sender, etc.) Subject Obfuscation Realtime Blackhole Lists (RBL) Open Relays/Proxy (SORBS) Address/Domain Abuse lists Sender Policy Framework (SPF) DomainKeys

SA: Message Body Tests Common Spam content checks HTML obfuscation* Locale specific checks URLs in RBLs Bayesian Filters Calculates probability message is Spam (- score) < 50% / (+ score) > 50% Must be trained using Spam and “Ham” *The Spammers' Compendium

SA: URI Message Tests Focuses on embedded URLs Keywords in URLs Address obfuscation TLD checks CGIs and Authentications

Spam Thresholds Spam check [header] tagging (-999) Spam detected (6.3) Spam Status Score & breakdown by test Spam-level histogram Spam detected (6.3) Quarantine Level (-)

Header Tagging Example X-Spam-Status: No, hits=6.069 tagged_above=3 required=6.3 tests=[DNS_FROM_RFC_ABUSE=0.374, DNS_FROM_RFC_POST=1.376, HTML_50_60=0.095, HTML_FONT_BIG=0.232, HTML_IMAGE_ONLY_24=1.003, HTML_MESSAGE=0.001, MIME_HTML_ONLY=1.158, MSGID_FROM_MTA_HEADER=0, RCVD_IN_BL_SPAMCOP_NET=1.832, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Level: ******

Procmail (MDA) Handles were incoming messages are stored Procmail “recipes” System-wide: /etc/procmail User: ~/.procmailrc Single recipe & recipe chaining Recipe Example: :0: * ^Subject: Broker Alert $SPAMMAYBE Also great for managing email lists/folders Vacation-Away messages