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

Preview:

Citation preview

Mail Service using PostfixCampus-Booster ID : **XXXXX

www.supinfo.com

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: presenter@supinfo.comPresenter’s Name

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

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

Protocols

Mail Service

Preview

POP

IMAP

Exchange

SMTP

These are the chapters that we will approach :

Protocols

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.

IMAPProtocols

Internet Message Access Protocol

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

ExchangeProtocols

Originally a Microsoft proprietary protocol

SMTPProtocols

Simple Mail Transfert Protocol

Part 1 Stop-and-thinkProtocols

Do you have any questions ?

Part 1 Stop-and-thinkProtocols

Mail Agents

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

Mail User AgentMail Agents

A MUA is a frontend program used to manage email

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

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

Mail ways over networkMail Agents

Part 2 Stop-and-thinkMail Agents

Do you have any questions ?

Part 2 Stop-and-thinkMail Agents

Postfix

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

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

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

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

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

The postconf commandPostfix

The Postfix configuration utility

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

Part 3 Stop-and-thinkPostfix

Do you have any questions ?

Part 3 Stop-and-thinkPostfix

Optimized mail server

Mail Service

Preview

Postfix Admin

Spamassassin

Webmail

These are the chapters that we will approach :

Optimized mail server

Postfix AdminOptimized mail server

Web Based management tool created for Postfix

Postfix AdminOptimized mail server

Requirements :

Postfix

MySQL or PostgreSQL

PHP v4 or v5

Compatible IMAP/POP3 server.

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

WebmailOptimized mail server

MUA allowing access to email using web browser.

Part 4 Stop-and-thinkOptimized mail server

Do you have any questions ?

Part 4 Stop-and-thinkOptimized mail server

PostfixPostfix

Optimized mail serverOptimized mail server ProtocolsProtocols

Course summary

Mail AgentsMail Agents

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

QuizMail 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

Congratulations

You have successfully completed the SUPINFO course module

Mail Service

The endMail Service

Recommended