![Page 1: Mail Service using Postfix Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Mail Service](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/1.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/2.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/3.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/4.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/5.jpg)
Protocols
Mail Service
![Page 6: Mail Service using Postfix Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Mail Service](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/6.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/7.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/8.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/9.jpg)
ExchangeProtocols
Originally a Microsoft proprietary protocol
![Page 10: Mail Service using Postfix Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Mail Service](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/10.jpg)
SMTPProtocols
Simple Mail Transfert Protocol
![Page 11: Mail Service using Postfix Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Mail Service](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/11.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/12.jpg)
Part 1 Stop-and-thinkProtocols
![Page 13: Mail Service using Postfix Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Mail Service](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/13.jpg)
Mail Agents
Mail Service
![Page 14: Mail Service using Postfix Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Mail Service](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/14.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/15.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/16.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/17.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/18.jpg)
Mail ways over networkMail Agents
![Page 19: Mail Service using Postfix Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Mail Service](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/19.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/20.jpg)
Part 2 Stop-and-thinkMail Agents
![Page 21: Mail Service using Postfix Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Mail Service](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/21.jpg)
Postfix
Mail Service
![Page 22: Mail Service using Postfix Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Mail Service](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/22.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/23.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/24.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/25.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/26.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/27.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/28.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/29.jpg)
Part 3 Stop-and-thinkPostfix
![Page 30: Mail Service using Postfix Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Mail Service](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/30.jpg)
Optimized mail server
Mail Service
![Page 31: Mail Service using Postfix Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Mail Service](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/31.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/32.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/33.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/34.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/35.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/36.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/37.jpg)
Part 4 Stop-and-thinkOptimized mail server
![Page 38: Mail Service using Postfix Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Mail Service](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/38.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/39.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/40.jpg)
QuizMail Service
![Page 41: Mail Service using Postfix Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Mail Service](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/41.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/42.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022081506/56649ea15503460f94ba47fe/html5/thumbnails/43.jpg)
The endMail Service