2. Me
1
Gábor Bernics
29 years old
IT Specialist at Penta Unió Ltd.
Love Linux, prefer Debian
Hungarian wine, „Túró Rudi”, playing futsal
Gábor Bernics - Linux based mail server 2013.02.24.
3. Why?
2
E-mail is very current:
Cheap
Immediatly
Anywhere at anytime
E-mail is part of my life: manage e-mail servers and
desktop clients, contact with clients, make direct
marketing compaign, etc.
20.000.000.000 per day (without spam)
Gábor Bernics - Linux based mail server 2013.02.24.
4. Trip
3
MUA > SMTP > MTA > SMTP > MTA > INBOX > IMAP/POP3 >
MUA
Gábor Bernics - Linux based mail server 2013.02.24.
5. 3M
4
MTA (Mail Transfer Agent):
Transfer message from one to another computer
Client - server architecture over SMTP
Postfix, Exim, Sendmail
MDA (Mail or Local Delivery Agent):
Deliver to user mailbox
Procmail, Postfix-Virtual, Dovecot LDA
MUA (Mail User Agent):
Client for access user’s email
Thunderbird, Outlook, web based mail clients
Gábor Bernics - Linux based mail server 2013.02.24.
6. Protocols
5
SMTP (Simple Mail Transfer Protocol)
Internet standard for electrnic mail transmission across Internet Protocol (IP)
defined by RFC821 (1982)
Port number: 25 (MTA – MTA)
Simply, text based, MIME encode
IMAP (Internet Message Access Protocol):
defined by RFC 3501
Support Online - Offline mode
Port number: 143
POP3 (Post Office Protocol):
Older than IMAP
Defined by RFC 918 (1984)
simple download-and-delete
Port number: 110
Gábor Bernics Linux based mail server 2013.02.24.
7. IMAP vs POP3
6
Store email on the server and client too Low storage one server (but more
Folders, mark read/
unread/
deleted mail risk!)
Fast search on the background Low system load on the server
Log every momentum Can access to mails without network
connection
Gábor Bernics - Linux based mail server 2013.02.24.
8. Postfix
7
Install postfix with basic parameters:
apt-get install postfix
Check the log:
cat /var/log/mail.log
Add your domain to the config files:
postconf -e "myorigin = example.com„
Add your hostname (computer name):
postconf -e "myhostname=server1.example.com”
Now add the domain names that your system will handle:
postconf -e "relay_domains = example.com, example2.com, example3.com”
Reload Postfix Server:
postfix reload
Gábor Bernics Linux based mail server 2013.02.24.
9. 9 Thank you!
Gábor Bernics
gabor@bernics.hu
+36 70/233-9767
http://bernics.hu/presentation
Gábor Bernics Linux mail server in 10 minutes 2013.02.24.
10. 9 Thank you!
Gábor Bernics
gabor@bernics.hu
+36 70/233-9767
http://bernics.hu/presentation
Gábor Bernics Linux mail server in 10 minutes 2013.02.24.
Editor's Notes
Hello, I am Gabor and this is my first presentation about a typical linux based mail server. It is a very wide range subject, becouse I have only 10 minutes that’s why I will be short.
On the first slide you can see basic information about me. My name is Gabor Bernics, I am twentynine years old, I work as IT Specialist at Penta Unió Ltd. I have been liking Linux since 2002, I prefer Debian from 3.0 („Woody”) I Like hungarian wine, Túró Rudi and I like playing futsal.
First question: Why choose this topic? Because email is very current, it’s cheap (very cheapper than normal mail), people can read and write immediatly and can use anywhere and anytime. E-mail is part of my life too: I manage e-mail servers and desktop clients, contact with clients via email, I make direct marketing compaign, et cetra. People send 20 billion email per day, it’s a very big number..but spams give up to 90 percent of daily email traffic. The fight for spams is a seperate industry nowday.
On the fird slide you see a typical route of an email: User send an email by Mail User Agent across smtp to our provider, provider give the mail to the MTA server of recipient. MUA of recipient get the mail from IMAP or POP 3.
On these slide you show three concept with 3M: The task of MTA (Mail Transfer Agent) is a transfer message from one to another computer. These is a client – server architecture, SMTP server can works both. Typical MTAs on Linux are Postfix, Exim and Sendmail The task of MDA (Mail or Local Delivery Agent) is deliver mails to user user mailbox. Typical MDAs on Linux are Procmail, Postfix-Virtual delivery agent and Dovecot LDA MUA is Mail User Agent, there are clients for access user’s email Typical MUA are Thunderbird, Outlook, but users prefer web basedmail clients nowday – it’s flexible, not depend the place or OS. The current webmail providers are gmail, hotmail, yahoomail.