1
00:00:00,000 --> 00:00:18,600
Hey everyone and welcome back. So in the beginning of this skill we mentioned about the different

2
00:00:18,600 --> 00:00:24,160
components that were available to us with respect to our email and we discussed that

3
00:00:24,160 --> 00:00:30,600
when we have some type of email on a server we can remotely access this information as the

4
00:00:30,600 --> 00:00:37,799
client either by making a pop request a pop three request to be exact which will give us a copy of

5
00:00:37,799 --> 00:00:45,600
that email on our local machine or alternatively we could use iMac to ultimately read the emails

6
00:00:45,600 --> 00:00:52,659
directly from the server so whilst SMTP is super super important with respect to email of course

7
00:00:52,659 --> 00:00:59,159
without SMTP there would be no email having the ability to access this email via imap or via pop

8
00:00:59,159 --> 00:01:05,099
three is obviously very very important so what I want to do is to show you two different servers

9
00:01:05,099 --> 00:01:11,219
that we can use that can actually implement this functionality and these are the two servers we have

10
00:01:11,219 --> 00:01:17,179
to be aware of as well as their basic configuration files for the lpik 2 examination now the very

11
00:01:17,180 --> 00:01:24,020
first one is called a courier server now the courier server can actually act as an SMTP server

12
00:01:24,020 --> 00:01:31,860
but the reality is it also allows us to use pop three as well as imap so clearly this is very very

13
00:01:31,860 --> 00:01:37,940
flexible and by default you are not going to have this on your system the way you can install this is

14
00:01:37,940 --> 00:01:46,140
by saying sudo apt install courier and you can do dash pop to receive the pop related packages type in

15
00:01:46,180 --> 00:01:53,060
my password and we begin installation with why I will just say no for now and okay and okay to generate

16
00:01:53,060 --> 00:01:59,819
my certificates and to get our imap functionality we just say courier hyphen imap and hit enter and

17
00:01:59,819 --> 00:02:06,260
that is also being installed now the first file we want to be looking at is one within the Etsy

18
00:02:06,260 --> 00:02:13,099
directory is in the courier folder and this file will be called auth daemon RC this one right here

19
00:02:13,180 --> 00:02:18,419
so if we go into this folder if we scroll on down we actually see this value here daemon's equals

20
00:02:18,419 --> 00:02:24,699
five this just effectively allows us to denote how many processes are going to be available right

21
00:02:24,699 --> 00:02:30,939
now we have five set but of course you can modify this behavior also what we want to be aware of

22
00:02:30,939 --> 00:02:36,579
are these settings right here see this here this is something that would be useful to remember for

23
00:02:36,580 --> 00:02:44,260
the examination we have our debug login settings when the value is set to zero we can see debugging

24
00:02:44,260 --> 00:02:51,300
has been turned off if we set the value to one the debugging is now turned on and if we set the value

25
00:02:51,300 --> 00:02:57,780
to two the debugging is turned on and we also have password logging so really the way you actually

26
00:02:57,780 --> 00:03:02,980
invoke this behavior is just like you have seen so many times before within Linux configuration files

27
00:03:03,539 --> 00:03:09,780
these hashtags or pound signs as you make all them all you have to do is to delete them to

28
00:03:09,780 --> 00:03:16,099
ultimately uncomment out that line and suddenly right now my debugging is turned off if I put

29
00:03:16,099 --> 00:03:22,579
this back and take out this one debugging is now turned on now with respect to pop three and let me

30
00:03:22,579 --> 00:03:28,419
just put this back on again with respect to pop three and iMap courier has two different configuration

31
00:03:28,419 --> 00:03:35,780
files so if we go into etsy courier do an ls notice we have a pop 3d file this is the configuration

32
00:03:35,780 --> 00:03:42,419
file for pop three so if i say pop 3d if i scroll on down we can see the maximum number of daemons

33
00:03:42,419 --> 00:03:47,539
these are the servers that are being started if we scroll on down a little bit further a very

34
00:03:47,539 --> 00:03:53,539
important configuration is this one right here we can see the address equals zero now this just

35
00:03:53,539 --> 00:03:59,459
means that we are going to listen on all ip addresses configured on all interfaces on our

36
00:03:59,459 --> 00:04:05,379
server and we can actually see here zero means all ip addresses this just means listen absolutely

37
00:04:05,379 --> 00:04:12,180
everywhere for any connections relating to this service and you'll notice with respect to pop three

38
00:04:12,180 --> 00:04:18,659
that the default port happens to be 110 and this actually is the configuration right here now if we

39
00:04:18,659 --> 00:04:23,379
happen to be using this service and we happen to have some type of client configuration maybe we

40
00:04:23,379 --> 00:04:28,180
wanted to integrate with something like say a thunderbird email client we want to actually

41
00:04:28,180 --> 00:04:34,740
provide information relating to our mail directory path so what i would do is i would actually specify

42
00:04:34,740 --> 00:04:41,139
my path which if you recall i'm using home ipv zero and then it would be the mail directory and

43
00:04:41,139 --> 00:04:48,339
within this i have my inbox so i would save this perfect and similarly for iMap i would go into iMap

44
00:04:48,979 --> 00:04:53,699
and the same type of things apply we see the address equals zero this is to listen on all

45
00:04:53,699 --> 00:05:02,099
ip addresses the port for iMap is by default 143 and similarly down the bottom the mail path

46
00:05:02,099 --> 00:05:08,579
dir we would just configure it to point to whatever mail directory we had we have mail inbox in my

47
00:05:08,579 --> 00:05:14,659
configuration so i would write this and ultimately i would have to restart my services so i would say

48
00:05:15,300 --> 00:05:23,540
service courier pop restart and for iMap i would say iMap to restart those configuration files so

49
00:05:23,540 --> 00:05:28,180
those are the basic configurations that we have to be aware of for the lpik 2 examination with

50
00:05:28,180 --> 00:05:35,379
respect to courier the next tool that we can install is a dovecott server so dovecott is a

51
00:05:35,379 --> 00:05:41,780
little bit newer again it also supports iMap and pop three it also allows us to use different types

52
00:05:41,859 --> 00:05:50,019
of mail boxes so we can use our mail dir style as well as our inbox method so what i will say is

53
00:05:50,019 --> 00:05:57,859
sido apt install dovecott and i will say iMap d and if i can spell that right there we go as well

54
00:05:57,859 --> 00:06:05,139
as dovecott pop 3d so if i hit enter i will say yes and the installation will complete okay so if

55
00:06:05,139 --> 00:06:10,979
i go into the etsy directory and then into dovecott if i do an ls you'll notice that we have this

56
00:06:10,980 --> 00:06:17,780
configuration file dovecott.conf this was the main configuration file but in more modern implementations

57
00:06:17,780 --> 00:06:23,620
we happen to be managing this configuration via a conf.d directory which is a very familiar concept

58
00:06:23,620 --> 00:06:29,939
by now if we go into conf.d if we do an ls so within here we can see things like the iMap.conf

59
00:06:29,939 --> 00:06:35,379
configuration file which you can use to modify your iMap configurations or alternatively you could

60
00:06:35,379 --> 00:06:41,620
go into your pop 3 configuration file to modify the pop 3 configurations but one cool feature we

61
00:06:41,620 --> 00:06:46,659
have with dovecott is as opposed to having to sift through these configuration files you can

62
00:06:46,659 --> 00:06:53,620
actually just issue the command dovecott-n which will give you a nice display of those

63
00:06:53,620 --> 00:06:59,379
configurations that are actually taking effect so if i say enter we can actually see right here

64
00:06:59,379 --> 00:07:06,420
our dovecott configurations so we can see some basics such as our inbox we can have drafts we

65
00:07:06,420 --> 00:07:14,180
can have junk our sent messages and our trash our protocols here could be iMap and pop 3 we have our

66
00:07:14,180 --> 00:07:19,860
ssl certificates here but really you can go into much much more detail with respect to courier

67
00:07:19,860 --> 00:07:24,819
and with dovecot but for the purposes of the examination what we want to be aware of are

68
00:07:24,819 --> 00:07:31,300
what these tools actually do that are going to allow us to enjoy pop 3 or iMap capabilities to

69
00:07:31,300 --> 00:07:37,939
retrieve the delivery of our email from remote servers we want to be aware of our basic configuration

70
00:07:37,939 --> 00:07:44,180
files what they are and particularly their location as well as some of those basic configuration

71
00:07:44,180 --> 00:07:50,579
settings such as our address setting or port setting so on so forth but for now that is us for

72
00:07:50,579 --> 00:07:55,139
our introduction into email i hope this has been informative for you and i'd like to thank you for viewing

