Introduction to e-mail system and postfix

  • Published on
    13-Nov-2014

  • View
    624

  • Download
    0

Embed Size (px)

DESCRIPTION

Introducing E-mail system concepts and postfix installation to NCU eecesnmg's new member.

Transcript

Mail Server

1

self = {

2

Zero

3

4

eecesnmg Mail Server

5

} # self

6

What is Mail Server?

7

8

9

10

11

12

The Most IMPORTANT Server

13

Why?

14

Because they use it everyday!

15

Concepts

16

Traditional Mail Delivery

17

Electronic equivalent

18

MUA Mail User Agent MTA Mail Transfer Agent MDA Mail Delivery Agent19

M U Aail ser

gent

20

MT Aail ransfer

gent

a.k.a

e.g. Sendmail, Postx21

M D Aail elivery

gent

22

e-Mail deliveryServers (MTA, MDA)

Sender (MUA) Receiver (MUA)23

Lets play.

24

228-205:~ Zero$ telnet localhost 25

25

228-205:~ Zero$ telnet localhost 25 Connected to localhost. Escape character is '^]'. 220 228-205.dorm.ncu.edu.tw ESMTP Postx

26

228-205:~ Zero$ telnet localhost 25 Connected to localhost. Escape character is '^]'. 220 228-205.dorm.ncu.edu.tw ESMTP Postx helo ce.ncu.edu.tw 250 228-205.dorm.ncu.edu.tw

27

228-205:~ Zero$ telnet localhost 25 Connected to localhost. Escape character is '^]'. 220 228-205.dorm.ncu.edu.tw ESMTP Postx helo ce.ncu.edu.tw 250 228-205.dorm.ncu.edu.tw mail from:Zero 250 2.1.0 Ok rcpt to:Target 250 2.1.5 Ok

28

228-205:~ Zero$ telnet localhost 25 Connected to localhost. Escape character is '^]'. 220 228-205.dorm.ncu.edu.tw ESMTP Postx helo ce.ncu.edu.tw 250 228-205.dorm.ncu.edu.tw mail from:Zero 250 2.1.0 Ok rcpt to:Target 250 2.1.5 Ok data 354 End data with . This is a test mail. . 250 2.0.0 Ok: queued as 2F516B326C29

quit 221 2.0.0 Bye Connection closed by foreign host.

30

31

?

32

33

Why ?34

FreeBSD/i386 (MailSec.ce.ncu.edu.tw) (ttyv0) login: Zero password:

Welcome to FreeBSD! [Zero@MailSec] /home/Zero$

35

[Zero@MailSec] /home/Zero$ sudo su [root@MailSec] /home/Zero$ cd /usr/ports/mail/postx [root@MailSec] /usr/ports/mail/postx $ make install ...... .... /etc/rc.conf

sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" postx_enable="YES"36

Service Control Start Stop Logsudo postx start sudo postx stop sudo postx restart tail -F /var/log/maillog37

Restart

Then? Cross your nger.

38

After Postx installed SASL Authentication Some conguration Anti-Spam Anti-Virus Webmail ....39

Recommended

View more >