SlideShare una empresa de Scribd logo
1 de 30
Mail server
A mail server is an application that receives incoming e-mail from
the local users and remote senders’ and forwards outgoing e-mail
for delivery. Mail Server is also known as Mail Transfer Agent
(MTA) or a Mail router.
A computer dedicated to run such type of applications is called a
Mail Server.
● MTA - Mail Transfer Agent
It’s a program used for transporting mails from one host to
another host.
● MDA - Mail Delivery Agent
Its used by MTA to deliver emails to particular user mail box.
● MUA - Mail User Agent
It’s a program that people use to send/receive mails are known as
MUA.
MTA - Mail Transfer Agent
EXIM
1. An open source mail transfer agent (MTA)
2. A program responsible for receiving, routing, and
delivering e-mail messages.
3. Like all MTAs, Exim receives e-mail messages and
recipient addresses from local users and remote hosts.
4. Perform forwarding functions, and deliver the messages to
destinations.
Exim Log Files
Three logs are available for exim. They are exim_mainlog,
exim_rejectlog and exim_paniclog
The main exim log file (exim_mainlog) records the arrival of
each message as well as the delivery in a single logical line.
The reject log file (exim_rejectlog) records information about
messages and addresses that are rejected based on policy.
The exim panic log (exim_paniclog) is only used when Exim
suffers a disastrous error.
Exim Configuration Files
/etc/exim.conf
/var/log/exim_mainlog
/var/log/exim_rejectlog
/var/log/exim_paniclog
/etc/valiases/<domain-name>
/etc/vfilters/<domain-name>
Exim Mail Queue
The exim queue on cPanel servers is stored at
/var/spool/exim/input
On cPanel servers, we opt to split the queue into 62
subdirectories. ([a-z], [A-Z], and [0-9]). This causes all
messages to be distributed to the separate directories based on
the 6th character in the message ID.
This requires Exim to do more work when scanning the queue,
but vastly improves the disk writing performance.
To view header
root@localhost# exim -Mvh <message-id>
To view body
root@localhost# exim -Mvb <message-id>
To view message logs
root@localhost# exim -Mvl <message-id>
Start queue run
root@localhost# exim -q -v
Remove a message from the queue:
root@localhost# exim -Mrm <message-id>
Freeze a message:
root@localhost# exim -Mf <message-id> [ <message-id> ... ]
Deliver a message:
root@localhost# exim -M <message-id> [ <message-id> ... ]
Apart from Exim we have the below mails servers.
● Sendmail
● Postfix
● Qmail
Sendmail
Sendmail is the default MTA installed with FreeBSD.
It accepts mail from MUAs and delivers it to the exact mail host.
Sendmail can also accept network connections and deliver mail to
local mailboxes or to another program.
The configuration files for Sendmail are located in /etc/mail.
/etc/mail/access
This access database file defines which hosts or IP addresses have
access to the local mail server and what kind of access they
have.
Hosts listed as OK
Hosts listed as REJECT
Hosts listed as RELAY
Hosts listed as ERROR
Host is listed as SKIP
Hosts listed as QUARANTINE
# makemap hash /etc/mail/access < /etc/mail/access
# service sendmail restart
Configuration file : /etc/mail/sendmail.cf
Mail log: /var/log/maillog
Mail queue: mailq
Postfix
Postfix is a free and open-source mail transfer agent (MTA) that
routes and delivers electronic mail.
Configuration file: /etc/postfix/main.cf
myhostname = mail.example.com
mydomain = example.com
inet_interfaces = all
mydestination = $mydomain, $myhostname
myorigin = $mydomain
If the myhostname is:
mail.example.com
And if the user who sends mail is mike, then the resulting mail
return address is: mike@mail.example.com
username@myhostname(FQDN)
If users do not want the hostname of the server in the return
address then set the myorigin to this parameter:
myorigin = $mydomain
mike@example.com
Changes Necessary for Network Connections
mydomain = example.com
myorigin = $mydomain
myhostname = mail.example.com
mydestination = $myhostname, localhost, localhost.$mydomain
mynetworks = 192.168.3.0/24
inet_interfaces = all
service postfix restart
log file : /var/log/maillog
Qmail
Qmail is a secure, reliable, efficient, simple message transfer
agent.
Qmail works using about 15 small programs.
Qmail continuously runs 5 daemons.
1. qmail-send
2. qmail-lspawn
3. qmail-rspawn
4. qmail-clean
5. tcpserver
How Qmail works
1. Email arrival in Qmail
2. Queuing emails
3. Processing queued emails
4. Email delivery to local and remote recipients
5. Cleaning queue after delivering emails
Qmail configuration files
Configuration files : /var/qmail/control
1. badmailfrom
All "from addresses" which are blacklisted.
2. bouncefrom
username of bounce sender
3. bouncehost
hostname of bounce sender
4. concurrencyincoming
Maximum number of simultaneous incoming SMTP connections
allowed.
5. concurrencylocal
Maximum number of simultaneous local deliveries
6. concurrencyremote
Maximum number of simultaneous remote deliveries
7. defaultdomain
Default domain name of server
8. defaulthost
Hostname of server
9. databytes
Maximum number of bytes in message (0=no limit)
MDA- Mail Delivery Agent
Pop3
Post Office Protocol version 3 (POP3) is a standard mail
protocol used to receive emails from a remote server to a
local email client.
POP3 allows you to download email messages on your local
computer and read them even when you are offline.
IMAP
The Internet Message Access Protocol (IMAP) is a mail protocol
that allows an e-mail client to access e-mail on a remote mail
server.
IMAP and POP3 are the two most commonly used Internet mail
protocols for retrieving emails. Both protocols are supported by
all modern email clients.
Mail Ports
Outgoing SMTP Ports:
SMTP non encrypted ports : 25 and 587
SMTP encrypted port : 465
Incoming Mail server ports:
POP non ssl port : 110
IMAP non ssl port :143
POP ssl port : 995
IMAP ssl port : 993
MUA- Mail User Agent
● Outlook
● Thunderbird
● Windows Live
● Mac Entourage
Email clients
Web Based Email Client
● Squirrel Mail
● Horde
● Round cube
THANKYOU

Más contenido relacionado

La actualidad más candente (20)

Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
 
Email - Electronic Mail
Email - Electronic MailEmail - Electronic Mail
Email - Electronic Mail
 
E mail protocol - SMTP
E mail protocol - SMTPE mail protocol - SMTP
E mail protocol - SMTP
 
Pop (post office protocol)e mail (electronic mail)
Pop (post office protocol)e mail (electronic mail)Pop (post office protocol)e mail (electronic mail)
Pop (post office protocol)e mail (electronic mail)
 
Smtp, pop3, imapv 4
Smtp, pop3, imapv 4Smtp, pop3, imapv 4
Smtp, pop3, imapv 4
 
Imap(internet massege access protocaols)
Imap(internet massege access protocaols)Imap(internet massege access protocaols)
Imap(internet massege access protocaols)
 
POP3 Post Office Protocol
POP3 Post Office ProtocolPOP3 Post Office Protocol
POP3 Post Office Protocol
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
 
E mail protocols
E mail protocolsE mail protocols
E mail protocols
 
SMTP - SIMPLE MAIL TRANSFER PROTOCOL
SMTP - SIMPLE MAIL TRANSFER PROTOCOLSMTP - SIMPLE MAIL TRANSFER PROTOCOL
SMTP - SIMPLE MAIL TRANSFER PROTOCOL
 
SNMP/SMTP/MIME
SNMP/SMTP/MIMESNMP/SMTP/MIME
SNMP/SMTP/MIME
 
OTechs Mail system proposal
OTechs Mail system proposalOTechs Mail system proposal
OTechs Mail system proposal
 
Information on protocols-email protocols
Information on protocols-email protocolsInformation on protocols-email protocols
Information on protocols-email protocols
 
POP (Post Office Protocol )
POP (Post Office Protocol )POP (Post Office Protocol )
POP (Post Office Protocol )
 
Electronic mail
Electronic mailElectronic mail
Electronic mail
 
10135 a 05
10135 a 0510135 a 05
10135 a 05
 
Simple mail transfer protocol (smtp)
Simple mail transfer protocol (smtp) Simple mail transfer protocol (smtp)
Simple mail transfer protocol (smtp)
 
Electronic Mail
Electronic MailElectronic Mail
Electronic Mail
 
Electronic mail
Electronic mailElectronic mail
Electronic mail
 

Destacado

Ruiheng Household
Ruiheng HouseholdRuiheng Household
Ruiheng HouseholdCharles Cao
 
Social media in china ring xu
Social media in china  ring xuSocial media in china  ring xu
Social media in china ring xualisonsimmance
 
Dong Chuan introduction
Dong Chuan introductionDong Chuan introduction
Dong Chuan introductionMarvin Zhang
 
Cia. Hering - 2Q16 Results
Cia. Hering - 2Q16 ResultsCia. Hering - 2Q16 Results
Cia. Hering - 2Q16 ResultsCia Hering RI
 
Export1
Export1Export1
Export1MPS
 
Tmw 3 html3_2010
Tmw 3 html3_2010Tmw 3 html3_2010
Tmw 3 html3_2010grep1
 
Hide email address in sourc...
Hide email address in sourc...Hide email address in sourc...
Hide email address in sourc...chaitanya535
 
James Grevas' Presentation
James Grevas' PresentationJames Grevas' Presentation
James Grevas' PresentationCeil-Jarrett
 
Kingpower Co Profile July 2012
Kingpower Co Profile July 2012Kingpower Co Profile July 2012
Kingpower Co Profile July 2012HKCh
 
CHIKO Mounting Solutions
CHIKO  Mounting SolutionsCHIKO  Mounting Solutions
CHIKO Mounting SolutionsVictoria Xu
 
Chapter 26 skeleton notes
Chapter 26   skeleton notesChapter 26   skeleton notes
Chapter 26 skeleton notesfingiie
 
Automotive industry
Automotive industryAutomotive industry
Automotive industryfshariar
 
Digitale Chinees - wegwijs langs tools, software en andere handige hulpmiddel...
Digitale Chinees - wegwijs langs tools, software en andere handige hulpmiddel...Digitale Chinees - wegwijs langs tools, software en andere handige hulpmiddel...
Digitale Chinees - wegwijs langs tools, software en andere handige hulpmiddel...Marjolein Hoekstra
 
中國造船企業概況2011
中國造船企業概況2011中國造船企業概況2011
中國造船企業概況2011xilin peng
 

Destacado (20)

Ruiheng Household
Ruiheng HouseholdRuiheng Household
Ruiheng Household
 
Qihui C
Qihui CQihui C
Qihui C
 
Social media in china ring xu
Social media in china  ring xuSocial media in china  ring xu
Social media in china ring xu
 
Dong Chuan introduction
Dong Chuan introductionDong Chuan introduction
Dong Chuan introduction
 
Cia. Hering - 2Q16 Results
Cia. Hering - 2Q16 ResultsCia. Hering - 2Q16 Results
Cia. Hering - 2Q16 Results
 
2. cella energy
2. cella energy2. cella energy
2. cella energy
 
M111
M111M111
M111
 
Export1
Export1Export1
Export1
 
Tmw 3 html3_2010
Tmw 3 html3_2010Tmw 3 html3_2010
Tmw 3 html3_2010
 
Bait and switch advertising
Bait and switch advertisingBait and switch advertising
Bait and switch advertising
 
Hide email address in sourc...
Hide email address in sourc...Hide email address in sourc...
Hide email address in sourc...
 
James Grevas' Presentation
James Grevas' PresentationJames Grevas' Presentation
James Grevas' Presentation
 
Kingpower Co Profile July 2012
Kingpower Co Profile July 2012Kingpower Co Profile July 2012
Kingpower Co Profile July 2012
 
CHIKO Mounting Solutions
CHIKO  Mounting SolutionsCHIKO  Mounting Solutions
CHIKO Mounting Solutions
 
Chapter 26 skeleton notes
Chapter 26   skeleton notesChapter 26   skeleton notes
Chapter 26 skeleton notes
 
Automotive industry
Automotive industryAutomotive industry
Automotive industry
 
Digitale Chinees - wegwijs langs tools, software en andere handige hulpmiddel...
Digitale Chinees - wegwijs langs tools, software en andere handige hulpmiddel...Digitale Chinees - wegwijs langs tools, software en andere handige hulpmiddel...
Digitale Chinees - wegwijs langs tools, software en andere handige hulpmiddel...
 
Aphyu
AphyuAphyu
Aphyu
 
Seedindustry
SeedindustrySeedindustry
Seedindustry
 
中國造船企業概況2011
中國造船企業概況2011中國造船企業概況2011
中國造船企業概況2011
 

Similar a Mail server

window server 2008 mail configuration
window server 2008 mail configurationwindow server 2008 mail configuration
window server 2008 mail configurationanwarkade1
 
Ch06 edge transport
Ch06 edge transportCh06 edge transport
Ch06 edge transportShane Flooks
 
Simple mail transfer protocol
Simple mail transfer protocolSimple mail transfer protocol
Simple mail transfer protocolAnagha Ghotkar
 
Voice enable smtp client
Voice enable smtp clientVoice enable smtp client
Voice enable smtp clientNilesh Padwal
 
Lecture 9 electronic_mail_representation_and_transfer
Lecture 9 electronic_mail_representation_and_transferLecture 9 electronic_mail_representation_and_transfer
Lecture 9 electronic_mail_representation_and_transferSerious_SamSoul
 
Introduction to basics command in linux, and working in linux
Introduction to basics command in linux, and working in linuxIntroduction to basics command in linux, and working in linux
Introduction to basics command in linux, and working in linuxGracia Marcom
 
Websphere MQ admin guide
Websphere MQ admin guideWebsphere MQ admin guide
Websphere MQ admin guideRam Babu
 
Mail services and mail commands in linux
Mail services and mail commands in linuxMail services and mail commands in linux
Mail services and mail commands in linuxGracia Marcom
 

Similar a Mail server (20)

Linux10 sendmail
Linux10 sendmailLinux10 sendmail
Linux10 sendmail
 
window server 2008 mail configuration
window server 2008 mail configurationwindow server 2008 mail configuration
window server 2008 mail configuration
 
pop3-imap.ppt
pop3-imap.pptpop3-imap.ppt
pop3-imap.ppt
 
pop3-imap.ppt
pop3-imap.pptpop3-imap.ppt
pop3-imap.ppt
 
Unix Administration 5
Unix Administration 5Unix Administration 5
Unix Administration 5
 
Postfix
PostfixPostfix
Postfix
 
Ch06 edge transport
Ch06 edge transportCh06 edge transport
Ch06 edge transport
 
Simple mail transfer protocol
Simple mail transfer protocolSimple mail transfer protocol
Simple mail transfer protocol
 
Mail server
Mail serverMail server
Mail server
 
how email works
how email workshow email works
how email works
 
How e mail works
How e mail worksHow e mail works
How e mail works
 
Electronic Mail.ppt
Electronic Mail.pptElectronic Mail.ppt
Electronic Mail.ppt
 
How Email Works
How Email WorksHow Email Works
How Email Works
 
Ch22 system administration
Ch22 system administration Ch22 system administration
Ch22 system administration
 
Voice enable smtp client
Voice enable smtp clientVoice enable smtp client
Voice enable smtp client
 
Lecture 9 electronic_mail_representation_and_transfer
Lecture 9 electronic_mail_representation_and_transferLecture 9 electronic_mail_representation_and_transfer
Lecture 9 electronic_mail_representation_and_transfer
 
Introduction to basics command in linux, and working in linux
Introduction to basics command in linux, and working in linuxIntroduction to basics command in linux, and working in linux
Introduction to basics command in linux, and working in linux
 
Mail server
Mail serverMail server
Mail server
 
Websphere MQ admin guide
Websphere MQ admin guideWebsphere MQ admin guide
Websphere MQ admin guide
 
Mail services and mail commands in linux
Mail services and mail commands in linuxMail services and mail commands in linux
Mail services and mail commands in linux
 

Más de Patruni Chidananda Sastry (14)

Spread spectrum
Spread spectrumSpread spectrum
Spread spectrum
 
Power consumption by means of wi fi
Power consumption by means of wi fiPower consumption by means of wi fi
Power consumption by means of wi fi
 
Digital thermometer ppt
Digital thermometer pptDigital thermometer ppt
Digital thermometer ppt
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
Gps
Gps Gps
Gps
 
Basics of electronics
Basics of electronicsBasics of electronics
Basics of electronics
 
Linux
Linux Linux
Linux
 
C tutorial
C tutorialC tutorial
C tutorial
 
Dns
DnsDns
Dns
 
Raid
Raid Raid
Raid
 
Raid intro
Raid introRaid intro
Raid intro
 
SEO AND DIGITAL MARKETING
SEO AND DIGITAL MARKETINGSEO AND DIGITAL MARKETING
SEO AND DIGITAL MARKETING
 
Moisture controller report total
Moisture controller report totalMoisture controller report total
Moisture controller report total
 
Linux basics andng hosti
Linux basics andng hostiLinux basics andng hosti
Linux basics andng hosti
 

Último

₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...Diya Sharma
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts servicevipmodelshub1
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxellan12
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607dollysharma2066
 
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls KolkataVIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)Damian Radcliffe
 
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebGDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebJames Anderson
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceDelhi Call girls
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Servicesexy call girls service in goa
 
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Roomdivyansh0kumar0
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersDamian Radcliffe
 
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts servicesonalikaur4
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$kojalkojal131
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Sheetaleventcompany
 
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya Shirtrahman018755
 

Último (20)

₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
 
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls KolkataVIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)
 
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebGDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
 
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
 
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
 
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
 
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
 
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
 

Mail server

  • 1. Mail server A mail server is an application that receives incoming e-mail from the local users and remote senders’ and forwards outgoing e-mail for delivery. Mail Server is also known as Mail Transfer Agent (MTA) or a Mail router. A computer dedicated to run such type of applications is called a Mail Server.
  • 2.
  • 3. ● MTA - Mail Transfer Agent It’s a program used for transporting mails from one host to another host. ● MDA - Mail Delivery Agent Its used by MTA to deliver emails to particular user mail box. ● MUA - Mail User Agent It’s a program that people use to send/receive mails are known as MUA.
  • 4. MTA - Mail Transfer Agent
  • 5. EXIM 1. An open source mail transfer agent (MTA) 2. A program responsible for receiving, routing, and delivering e-mail messages. 3. Like all MTAs, Exim receives e-mail messages and recipient addresses from local users and remote hosts. 4. Perform forwarding functions, and deliver the messages to destinations.
  • 6. Exim Log Files Three logs are available for exim. They are exim_mainlog, exim_rejectlog and exim_paniclog The main exim log file (exim_mainlog) records the arrival of each message as well as the delivery in a single logical line. The reject log file (exim_rejectlog) records information about messages and addresses that are rejected based on policy. The exim panic log (exim_paniclog) is only used when Exim suffers a disastrous error.
  • 8. Exim Mail Queue The exim queue on cPanel servers is stored at /var/spool/exim/input On cPanel servers, we opt to split the queue into 62 subdirectories. ([a-z], [A-Z], and [0-9]). This causes all messages to be distributed to the separate directories based on the 6th character in the message ID. This requires Exim to do more work when scanning the queue, but vastly improves the disk writing performance.
  • 9. To view header root@localhost# exim -Mvh <message-id> To view body root@localhost# exim -Mvb <message-id> To view message logs root@localhost# exim -Mvl <message-id>
  • 10. Start queue run root@localhost# exim -q -v Remove a message from the queue: root@localhost# exim -Mrm <message-id> Freeze a message: root@localhost# exim -Mf <message-id> [ <message-id> ... ] Deliver a message: root@localhost# exim -M <message-id> [ <message-id> ... ]
  • 11. Apart from Exim we have the below mails servers. ● Sendmail ● Postfix ● Qmail
  • 12. Sendmail Sendmail is the default MTA installed with FreeBSD. It accepts mail from MUAs and delivers it to the exact mail host. Sendmail can also accept network connections and deliver mail to local mailboxes or to another program.
  • 13. The configuration files for Sendmail are located in /etc/mail. /etc/mail/access This access database file defines which hosts or IP addresses have access to the local mail server and what kind of access they have. Hosts listed as OK Hosts listed as REJECT Hosts listed as RELAY Hosts listed as ERROR Host is listed as SKIP Hosts listed as QUARANTINE
  • 14. # makemap hash /etc/mail/access < /etc/mail/access # service sendmail restart Configuration file : /etc/mail/sendmail.cf Mail log: /var/log/maillog Mail queue: mailq
  • 15. Postfix Postfix is a free and open-source mail transfer agent (MTA) that routes and delivers electronic mail. Configuration file: /etc/postfix/main.cf myhostname = mail.example.com mydomain = example.com inet_interfaces = all mydestination = $mydomain, $myhostname
  • 16. myorigin = $mydomain If the myhostname is: mail.example.com And if the user who sends mail is mike, then the resulting mail return address is: mike@mail.example.com username@myhostname(FQDN) If users do not want the hostname of the server in the return address then set the myorigin to this parameter: myorigin = $mydomain mike@example.com
  • 17. Changes Necessary for Network Connections mydomain = example.com myorigin = $mydomain myhostname = mail.example.com mydestination = $myhostname, localhost, localhost.$mydomain mynetworks = 192.168.3.0/24 inet_interfaces = all service postfix restart log file : /var/log/maillog
  • 18. Qmail Qmail is a secure, reliable, efficient, simple message transfer agent. Qmail works using about 15 small programs. Qmail continuously runs 5 daemons. 1. qmail-send 2. qmail-lspawn 3. qmail-rspawn 4. qmail-clean 5. tcpserver
  • 19. How Qmail works 1. Email arrival in Qmail 2. Queuing emails 3. Processing queued emails 4. Email delivery to local and remote recipients 5. Cleaning queue after delivering emails
  • 20. Qmail configuration files Configuration files : /var/qmail/control 1. badmailfrom All "from addresses" which are blacklisted. 2. bouncefrom username of bounce sender 3. bouncehost hostname of bounce sender
  • 21. 4. concurrencyincoming Maximum number of simultaneous incoming SMTP connections allowed. 5. concurrencylocal Maximum number of simultaneous local deliveries 6. concurrencyremote Maximum number of simultaneous remote deliveries
  • 22. 7. defaultdomain Default domain name of server 8. defaulthost Hostname of server 9. databytes Maximum number of bytes in message (0=no limit)
  • 24. Pop3 Post Office Protocol version 3 (POP3) is a standard mail protocol used to receive emails from a remote server to a local email client. POP3 allows you to download email messages on your local computer and read them even when you are offline.
  • 25. IMAP The Internet Message Access Protocol (IMAP) is a mail protocol that allows an e-mail client to access e-mail on a remote mail server. IMAP and POP3 are the two most commonly used Internet mail protocols for retrieving emails. Both protocols are supported by all modern email clients.
  • 26. Mail Ports Outgoing SMTP Ports: SMTP non encrypted ports : 25 and 587 SMTP encrypted port : 465 Incoming Mail server ports: POP non ssl port : 110 IMAP non ssl port :143 POP ssl port : 995 IMAP ssl port : 993
  • 27. MUA- Mail User Agent
  • 28. ● Outlook ● Thunderbird ● Windows Live ● Mac Entourage Email clients
  • 29. Web Based Email Client ● Squirrel Mail ● Horde ● Round cube