HOW TO SETUP YOUR OWN MAIL SERVER WITH ANTI-SPAM CONFIGURATION

949

Introduction

This tutorial will teach you how to set up your own robust email server. We are focusing on a small personal server with up to a few email accounts. After following this guide, you will have a fully functional mail server and you can connect with your favourite client to access, read and send emails. The Anti-Spam configuration will drop unwanted messages.

This tutorial will use yourdomain.com as domain name and mail.yourdomain.com as hostname for our mail server. The desired email address will be This e-mail address is being protected from spambots. You need JavaScript enabled to view it
. We assume that our server has the IP address 1.2.3.4.

Software and technologies used

  • Postfix v2.9.6 as SMTP server
  • Dovecot v2.0.19 as IMAP server
  • We will use Unix user accounts and tunnel the SASL authentication through TLS
  • Postgrey v1.34 – to reject spam from the beginning
    (more about postgrey)
  • SPF (Sender Policy Framework) validating to reduce spam
    (more aboutSPF)
  • SPF DNS entry to prevent spoofing
  • DKIM (Domain Keys Identified Mail) to sign our email messages
    (moreabout DKIM)

Read on over here…