Hey everyone and welcome back. So in the beginning of this skill we mentioned about the different
components that were available to us with respect to our email and we discussed that
when we have some type of email on a server we can remotely access this information as the
client either by making a pop request a pop three request to be exact which will give us a copy of
that email on our local machine or alternatively we could use iMac to ultimately read the emails
directly from the server so whilst SMTP is super super important with respect to email of course
without SMTP there would be no email having the ability to access this email via imap or via pop
three is obviously very very important so what I want to do is to show you two different servers
that we can use that can actually implement this functionality and these are the two servers we have
to be aware of as well as their basic configuration files for the lpik 2 examination now the very
first one is called a courier server now the courier server can actually act as an SMTP server
but the reality is it also allows us to use pop three as well as imap so clearly this is very very
flexible and by default you are not going to have this on your system the way you can install this is
by saying sudo apt install courier and you can do dash pop to receive the pop related packages type in
my password and we begin installation with why I will just say no for now and okay and okay to generate
my certificates and to get our imap functionality we just say courier hyphen imap and hit enter and
that is also being installed now the first file we want to be looking at is one within the Etsy
directory is in the courier folder and this file will be called auth daemon RC this one right here
so if we go into this folder if we scroll on down we actually see this value here daemon's equals
five this just effectively allows us to denote how many processes are going to be available right
now we have five set but of course you can modify this behavior also what we want to be aware of
are these settings right here see this here this is something that would be useful to remember for
the examination we have our debug login settings when the value is set to zero we can see debugging
has been turned off if we set the value to one the debugging is now turned on and if we set the value
to two the debugging is turned on and we also have password logging so really the way you actually
invoke this behavior is just like you have seen so many times before within Linux configuration files
these hashtags or pound signs as you make all them all you have to do is to delete them to
ultimately uncomment out that line and suddenly right now my debugging is turned off if I put
this back and take out this one debugging is now turned on now with respect to pop three and let me
just put this back on again with respect to pop three and iMap courier has two different configuration
files so if we go into etsy courier do an ls notice we have a pop 3d file this is the configuration
file for pop three so if i say pop 3d if i scroll on down we can see the maximum number of daemons
these are the servers that are being started if we scroll on down a little bit further a very
important configuration is this one right here we can see the address equals zero now this just
means that we are going to listen on all ip addresses configured on all interfaces on our
server and we can actually see here zero means all ip addresses this just means listen absolutely
everywhere for any connections relating to this service and you'll notice with respect to pop three
that the default port happens to be 110 and this actually is the configuration right here now if we
happen to be using this service and we happen to have some type of client configuration maybe we
wanted to integrate with something like say a thunderbird email client we want to actually
provide information relating to our mail directory path so what i would do is i would actually specify
my path which if you recall i'm using home ipv zero and then it would be the mail directory and
within this i have my inbox so i would save this perfect and similarly for iMap i would go into iMap
and the same type of things apply we see the address equals zero this is to listen on all
ip addresses the port for iMap is by default 143 and similarly down the bottom the mail path
dir we would just configure it to point to whatever mail directory we had we have mail inbox in my
configuration so i would write this and ultimately i would have to restart my services so i would say
service courier pop restart and for iMap i would say iMap to restart those configuration files so
those are the basic configurations that we have to be aware of for the lpik 2 examination with
respect to courier the next tool that we can install is a dovecott server so dovecott is a
little bit newer again it also supports iMap and pop three it also allows us to use different types
of mail boxes so we can use our mail dir style as well as our inbox method so what i will say is
sido apt install dovecott and i will say iMap d and if i can spell that right there we go as well
as dovecott pop 3d so if i hit enter i will say yes and the installation will complete okay so if
i go into the etsy directory and then into dovecott if i do an ls you'll notice that we have this
configuration file dovecott.conf this was the main configuration file but in more modern implementations
we happen to be managing this configuration via a conf.d directory which is a very familiar concept
by now if we go into conf.d if we do an ls so within here we can see things like the iMap.conf
configuration file which you can use to modify your iMap configurations or alternatively you could
go into your pop 3 configuration file to modify the pop 3 configurations but one cool feature we
have with dovecott is as opposed to having to sift through these configuration files you can
actually just issue the command dovecott-n which will give you a nice display of those
configurations that are actually taking effect so if i say enter we can actually see right here
our dovecott configurations so we can see some basics such as our inbox we can have drafts we
can have junk our sent messages and our trash our protocols here could be iMap and pop 3 we have our
ssl certificates here but really you can go into much much more detail with respect to courier
and with dovecot but for the purposes of the examination what we want to be aware of are
what these tools actually do that are going to allow us to enjoy pop 3 or iMap capabilities to
retrieve the delivery of our email from remote servers we want to be aware of our basic configuration
files what they are and particularly their location as well as some of those basic configuration
settings such as our address setting or port setting so on so forth but for now that is us for
our introduction into email i hope this has been informative for you and i'd like to thank you for viewing