43
Mail Service using Postfix Campus-Booster ID : **XXXXX www.supinfo.com Copyright © SUPINFO. All rights reserved Mail Service

Mail Service using Postfix Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Mail Service

Embed Size (px)

Citation preview

Page 1: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Mail Service using PostfixCampus-Booster ID : **XXXXX

www.supinfo.com

Copyright © SUPINFO. All rights reserved

Mail Service

Page 2: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Your trainer…

Title: **Enter title or job role.

Accomplishments: **What makes the presenter qualified to present this course.

Education: **List degrees if important.

Publications: **Writings by the presenter on the subject of the course or presentation.

Contact:**Campus-Booster ID: [email protected]’s Name

Mail Service

Page 3: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Course objectives

Know which protocols get involved in mail service. Difference between IMAP, POP, SMTP

Be able to identify what agent is used in mail service. MUA, MDA or MTA.

Know to install and configure Postfix.

By completing this course, you will:

Mail Service

Page 4: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Course topics

Protocols. What are the protocols used in mail service.

Mail Agents. What’s get involved into mail transfers over network.

Postfix. The main configuration’s files.

Optimized mail server. Additional tools to optimize the mail server.

These are the parts that we will approach :

Mail Service

Page 5: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Protocols

Mail Service

Page 6: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Preview

POP

IMAP

Exchange

SMTP

These are the chapters that we will approach :

Protocols

Page 7: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

POPProtocols

Post Office Protocol version 3 (POP3)

Messages are stored locally on computer.Once downloaded, they’re removed from serverand can’t be viewed from another location.

Page 8: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

IMAPProtocols

Internet Message Access Protocol

Messages are stored centrally and can beviewed from any configured computer.

Page 9: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

ExchangeProtocols

Originally a Microsoft proprietary protocol

Page 10: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

SMTPProtocols

Simple Mail Transfert Protocol

Page 11: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Part 1 Stop-and-thinkProtocols

Do you have any questions ?

Page 12: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Part 1 Stop-and-thinkProtocols

Page 13: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Mail Agents

Mail Service

Page 14: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Preview

Mail User Agent

Mail Transfert Agent

Mail Delivery Agent

Mail ways over network

These are the chapters that we will approach :

Mail Agents

Page 15: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Mail User AgentMail Agents

A MUA is a frontend program used to manage email

Page 16: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Mail Transfert AgentMail Agents

Uses the SMTP protocol

Receives email from MTA

… or from MUA

Add a “Received:” trace header field to message

Is sometimes combined with a mail delivery agent

A MTA is a program that transfers email between hosts

Page 17: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Mail Delivery AgentMail Agents

A MDA is a program that delivers email in mailboxes

Is invoked by MTA

Delivers email to proper user’s mailbox

Stores email in different format

Page 18: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Mail ways over networkMail Agents

Page 19: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Part 2 Stop-and-thinkMail Agents

Do you have any questions ?

Page 20: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Part 2 Stop-and-thinkMail Agents

Page 21: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Postfix

Mail Service

Page 22: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Preview

An alternative to Sendmail.

Postfix configuration files

main.cf

master.cf

The postconf command

These are the chapters that we will approach :

Postfix

Page 23: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

An alternative to SendmailPostfix

Sendmail is the standard MTA of UNIX operating system.

Free and Open Source software

Can be difficult to configure

Current major release : Sendmail 8.14.3

Page 24: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Postfix configuration filesPostfix

[root@localhost~]# ls /etc/postfix/access header_checks postfix-filesaliases main.cf postfix-script*bounce.cf.default main.cf.default post-install*canonical main.cf.dist relocateddynamicmaps.cf makedefs.out transportgeneric master.cf virtual

Postfix is installed in /etc/postfix

Page 25: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

main.cfPostfix

Primary configuration file for Postfix

# commentparameter = valuenew_parameter = $parameter

Example (with main configuration parameters) :

myhostname = host.domain.name# FQDNmydomain = domain.name# Specifies the local Internet domain namemyorigin = $myhostnameinet_interfaces = all# Specifies the network interface addressesmydestination = $myhostname, localhost.$mydomain $mydomainhome_mailbox = Mailboxmynetworks = 192.168.1.0/24, 127.0.0.0/8

Page 26: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

master.cfPostfix

The master daemon controls all the others Postfix processes.

# ======================================================================# service type private unpriv chroot wakeup maxproc command + args# (yes) (yes) (yes) (never) (100)# ======================================================================smtp inet n - y - - smtpd#smtps inet n - n - - smtpd# -o smtpd_tls_wrappermode=yes# -o smtpd_sasl_auth_enable=yes# -o smtpd_client_restrictions=permit_sasl_authenticated,rejectrelay unix - - y - - smtp -o fallback_relay=# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5

Page 27: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

The postconf commandPostfix

The Postfix configuration utility

[root@localhost~]# postconf [-dhmlnv] [-c directory] [parameters...]

Page 28: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Part 3 Stop-and-thinkPostfix

Do you have any questions ?

Page 29: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Part 3 Stop-and-thinkPostfix

Page 30: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Optimized mail server

Mail Service

Page 31: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Preview

Postfix Admin

Spamassassin

Webmail

These are the chapters that we will approach :

Optimized mail server

Page 32: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Postfix AdminOptimized mail server

Web Based management tool created for Postfix

Page 33: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Postfix AdminOptimized mail server

Requirements :

Postfix

MySQL or PostgreSQL

PHP v4 or v5

Compatible IMAP/POP3 server.

Page 34: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

SpamassassinOptimized mail server

Program under Apache Licence 2.0 used for email spam filtering

Anti spam

Can be used with MUA

… or MTA

Uses bayesien filter

… or content filter

Page 35: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

WebmailOptimized mail server

MUA allowing access to email using web browser.

Page 36: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Part 4 Stop-and-thinkOptimized mail server

Do you have any questions ?

Page 37: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Part 4 Stop-and-thinkOptimized mail server

Page 38: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

PostfixPostfix

Optimized mail serverOptimized mail server ProtocolsProtocols

Course summary

Mail AgentsMail Agents

Mail Service

Page 39: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Module Quiz introduction

Required?

Graded?

Questions

What the quiz covers

**Yes or No

**Yes or No

**Number of questions

Scoring **nn points per question

Passing **nn points or nn percent correct

Mail Service

Page 40: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

QuizMail Service

Page 41: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

For more

CoursesWeb sites

www.postfix.org

www.sendmail.org

OpenSSL

MySQL

If you want to go into these subjects more deeply, …

www.labo-linux.org

Mail Service

Page 42: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

Congratulations

You have successfully completed the SUPINFO course module

Mail Service

Page 43: Mail Service using Postfix Campus-Booster ID : **XXXXX  Copyright © SUPINFO. All rights reserved Mail Service

The endMail Service