SlideShare a Scribd company logo
1 of 33
suremail
strategy, deliverability & infrastructure




                   Email Authenticatie
                                  EMMA-nl Workshop 13-10-2009


                                            Maarten Oelering
Agenda

• Email authenticatie
   •   Waarom is het een must?

   •   SPF, SIDF, DK, DKIM: overeenkomsten en verschillen

   •   Vragen


• DKIM implementatie
   •   Waarom juist DKIM?

   •   Een stappenplan met voorbeelden

   •   Afsluiting en vragen
Zomaar een email van PayPal...
En vertrouw je deze nog...
Nut van authenticatie
• Vertrouwen terugbrengen in email
 • Ontvanger beschermen tegen ‘spoofing’ en
    ‘phishing’
 • Verzender beschermen tegen misbruik
    domein (‘brand protection’)

• Meer efficiente spam filtering
 • Legitieme verzenders beter herkennen
    (betrouwbaarder, sneller, gedetailleerder)
Authenticatie als bouwblok

         Anti-spam beleid

      Reputatie / Accreditatie

           Authenticatie

             Identiteit
Afzender identiteiten

• IP adres mail server
• Hostnaam mail server (helo)
• Envelope sender (bounce adres)
• Sender header adres (optioneel)
• From header adres
Authenticatie via DNS
        •   Eigenaar domein plaatst bepaalde
            informatie in DNS

        •   Verzender verzend email met dit
            domein als identiteit

        •   Ontvanger controleert
            kenmerken in email met
            informatie uit DNS

        •   Ontvanger behandeld email
            afhankelijk van resultaat
FCrDNS

• Authenticatie van hostnaam mail
  server
 • IP adres lookup (PTR) => hostnaam
 • hostnaam lookup (A) => IP adres
 • hostnaam == HELO naam
• Toegepast in vele mail software
Sender Policy Framework

• Authenticatie van envelope sender
  domein en helo naam
• Registratie van mail servers welke
  namens domein mogen verzenden
• Toegepast door Google en vele anderen
Sender ID
• Authenticatie van “zichtbare
  afzender” (PRA = Sender cq From
  header)
• Registratie van mail servers net als SPF
• Optioneel SPF “versie 2” met scope
  parameter
• Toegepast door Microsoft (Hotmail en
  Exchange)
DomainKeys

• Authenticatie van email content
• Identiteit is From header domein
• Gebaseerd op cryptografie (PKI)
• Werkt ook bij forwarding
• Toegepast door Yahoo en anderen
DKIM

• Combinatie van DK en Cisco IIM
• Gezien als opvolger DomainKeys
• Willekeurige identiteit (SDID)
• Publicatie signing practices (ADSP)
• Toegepast door Yahoo, AOL, Google
Reguliere post als metafoor
             Microsoft Sender ID
Beleid providers
Waar staat u het liefst?
suremail
strategy, deliverability & infrastructure




               DKIM Implementatie
                                  EMMA-nl Workshop 13-10-2009


                                            Maarten Oelering
DKIM is hot
Waarom DKIM?

• Veilig door gebruik van cryptografie
• Werkt ook bij forwarding van emails
• Identiteit onafhankelijk van inhoud
• Publieke internet standaard
• Sterke groei in gebruik en acceptatie
Wat is DKIM niet

• Zegt niets over ‘waarheid’ van headers
  of content
• Zegt niets over de identiteit van de
  auteur
• Zegt niets over consequenties
  ontbrekende of ongeldige
  authenticatie
DKIM implementatie
       stappenplan

• Kies geschikte identiteit
• Maak sleutelpaar aan
• Publiceer gegevens in DNS
• Configureer mail server
• Test juiste werking
DKIM identiteit
• “...claiming responsibility for the
  introduction of a message into the mail
  stream...”
• Onafhankelijk van From, Sender
• Verschillende rollen mogelijk, bijv.
 • domein van auteur
 • domein van ESP
 • domein van reputatie provider (bv EMMA)
• Basis voor opvragen DNS record
Eigen domein als identiteit




(c) StrongMail
DKIM sleutelpaar

• Gebruikt om hash te versleutelen
• RSA 1024 bits of meer
• “selectors” voor sleutelbeheer
 • gebruikt in DNS lookup
 • periodieke vervanging sleutels
 • delegeren sleutel uitgifte
Sleutelpaar aanmaken

Generate private key
 openssl genrsa -out sel001.deliverability.nl.rsa
 1024


Generate public key
 openssl rsa -in sel001.deliverability.nl.rsa
   -out sel001.deliverability.nl.pub -pubout
Sleutelpaar aanmaken
DNS DKIM record

BIND formaat
  sel001._domainkey.deliverability.nl. IN TXT (
    "v=DKIM1;t=s;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB"
    "gQC5mcIZMNtPgvNutAg6GUqe1Dgwnp0jltoZ8UCzZRfhFZ7jdz"
    "1HyZ0rBWemqwD5N/eXfZancA4FNUTra/Po283T5jA3Z2PWjgLh"
    "zjKCT4srQR9ZQezOK7LS6sdfqy0yz5BZOeXb+uwokBQ9OLqrxj"
    "Z/bdCfhbm7NXc+IeUF07qugwIDAQAB")


DNS beheer tool
DKIM signature
• “a=”: hash algoritme
• “c=”: canonicalizatie (voorbewerking
  content voor toepassen hash)
• “d=”: domein verantwoordelijke
  identiteit
• “i=”: identiteit van gebruiker of
  onderdeel van “d=” domein
• “s=”: selector voor sleutelbeheer
Ondersteuning DKIM
• Plugins voor Sendmail, Postfix
 • dkim-milter
 • dkimproxy
• Professionele MTA software
 • StrongMail (Email Delivery Server)
 • Port25 (PowerMTA)
 • Message Systems (Momentum for Sending)
PowerMTA configuratie

domain-key sel001, deliverability.nl,
  /etc/pmta/sel001.deliverability.nl.rsa

<domain *>
  dkim-algorithm    rsa-sha256
  dkim-body-canon   simple
  dkim-identity     @deliverability.nl
  dkim-sign         yes
</domain>
Testen DKIM
Meer weten?

• domainkeys.sourceforge.net
• dkim.org
• www.ietf.org/rfc/rfc4871.txt
• dkimcore.org
• maarten@suremail.eu

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

EMMA-nl E-mail authenticatie workshop

  • 1. suremail strategy, deliverability & infrastructure Email Authenticatie EMMA-nl Workshop 13-10-2009 Maarten Oelering
  • 2. Agenda • Email authenticatie • Waarom is het een must? • SPF, SIDF, DK, DKIM: overeenkomsten en verschillen • Vragen • DKIM implementatie • Waarom juist DKIM? • Een stappenplan met voorbeelden • Afsluiting en vragen
  • 3. Zomaar een email van PayPal...
  • 4.
  • 5. En vertrouw je deze nog...
  • 6. Nut van authenticatie • Vertrouwen terugbrengen in email • Ontvanger beschermen tegen ‘spoofing’ en ‘phishing’ • Verzender beschermen tegen misbruik domein (‘brand protection’) • Meer efficiente spam filtering • Legitieme verzenders beter herkennen (betrouwbaarder, sneller, gedetailleerder)
  • 7. Authenticatie als bouwblok Anti-spam beleid Reputatie / Accreditatie Authenticatie Identiteit
  • 8. Afzender identiteiten • IP adres mail server • Hostnaam mail server (helo) • Envelope sender (bounce adres) • Sender header adres (optioneel) • From header adres
  • 9. Authenticatie via DNS • Eigenaar domein plaatst bepaalde informatie in DNS • Verzender verzend email met dit domein als identiteit • Ontvanger controleert kenmerken in email met informatie uit DNS • Ontvanger behandeld email afhankelijk van resultaat
  • 10. FCrDNS • Authenticatie van hostnaam mail server • IP adres lookup (PTR) => hostnaam • hostnaam lookup (A) => IP adres • hostnaam == HELO naam • Toegepast in vele mail software
  • 11. Sender Policy Framework • Authenticatie van envelope sender domein en helo naam • Registratie van mail servers welke namens domein mogen verzenden • Toegepast door Google en vele anderen
  • 12. Sender ID • Authenticatie van “zichtbare afzender” (PRA = Sender cq From header) • Registratie van mail servers net als SPF • Optioneel SPF “versie 2” met scope parameter • Toegepast door Microsoft (Hotmail en Exchange)
  • 13. DomainKeys • Authenticatie van email content • Identiteit is From header domein • Gebaseerd op cryptografie (PKI) • Werkt ook bij forwarding • Toegepast door Yahoo en anderen
  • 14. DKIM • Combinatie van DK en Cisco IIM • Gezien als opvolger DomainKeys • Willekeurige identiteit (SDID) • Publicatie signing practices (ADSP) • Toegepast door Yahoo, AOL, Google
  • 15. Reguliere post als metafoor Microsoft Sender ID
  • 17. Waar staat u het liefst?
  • 18. suremail strategy, deliverability & infrastructure DKIM Implementatie EMMA-nl Workshop 13-10-2009 Maarten Oelering
  • 20. Waarom DKIM? • Veilig door gebruik van cryptografie • Werkt ook bij forwarding van emails • Identiteit onafhankelijk van inhoud • Publieke internet standaard • Sterke groei in gebruik en acceptatie
  • 21. Wat is DKIM niet • Zegt niets over ‘waarheid’ van headers of content • Zegt niets over de identiteit van de auteur • Zegt niets over consequenties ontbrekende of ongeldige authenticatie
  • 22. DKIM implementatie stappenplan • Kies geschikte identiteit • Maak sleutelpaar aan • Publiceer gegevens in DNS • Configureer mail server • Test juiste werking
  • 23. DKIM identiteit • “...claiming responsibility for the introduction of a message into the mail stream...” • Onafhankelijk van From, Sender • Verschillende rollen mogelijk, bijv. • domein van auteur • domein van ESP • domein van reputatie provider (bv EMMA) • Basis voor opvragen DNS record
  • 24. Eigen domein als identiteit (c) StrongMail
  • 25. DKIM sleutelpaar • Gebruikt om hash te versleutelen • RSA 1024 bits of meer • “selectors” voor sleutelbeheer • gebruikt in DNS lookup • periodieke vervanging sleutels • delegeren sleutel uitgifte
  • 26. Sleutelpaar aanmaken Generate private key openssl genrsa -out sel001.deliverability.nl.rsa 1024 Generate public key openssl rsa -in sel001.deliverability.nl.rsa -out sel001.deliverability.nl.pub -pubout
  • 28. DNS DKIM record BIND formaat sel001._domainkey.deliverability.nl. IN TXT ( "v=DKIM1;t=s;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB" "gQC5mcIZMNtPgvNutAg6GUqe1Dgwnp0jltoZ8UCzZRfhFZ7jdz" "1HyZ0rBWemqwD5N/eXfZancA4FNUTra/Po283T5jA3Z2PWjgLh" "zjKCT4srQR9ZQezOK7LS6sdfqy0yz5BZOeXb+uwokBQ9OLqrxj" "Z/bdCfhbm7NXc+IeUF07qugwIDAQAB") DNS beheer tool
  • 29. DKIM signature • “a=”: hash algoritme • “c=”: canonicalizatie (voorbewerking content voor toepassen hash) • “d=”: domein verantwoordelijke identiteit • “i=”: identiteit van gebruiker of onderdeel van “d=” domein • “s=”: selector voor sleutelbeheer
  • 30. Ondersteuning DKIM • Plugins voor Sendmail, Postfix • dkim-milter • dkimproxy • Professionele MTA software • StrongMail (Email Delivery Server) • Port25 (PowerMTA) • Message Systems (Momentum for Sending)
  • 31. PowerMTA configuratie domain-key sel001, deliverability.nl, /etc/pmta/sel001.deliverability.nl.rsa <domain *> dkim-algorithm rsa-sha256 dkim-body-canon simple dkim-identity @deliverability.nl dkim-sign yes </domain>
  • 33. Meer weten? • domainkeys.sourceforge.net • dkim.org • www.ietf.org/rfc/rfc4871.txt • dkimcore.org • maarten@suremail.eu