wk2 email Flashcards

1
Q

Sending email is dictated by what?

A

SMTP transaction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Receiving email is covered by what?

A

either POP3 or IMAP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is SMTP

A

Simple Mail Transfer Protocal - a communication protocal for receiing or sending mail. User-level email clients typically use SMTP only for sending messages to a mail server for relaying

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is POP3

A

Post Office Protocol version 3 - an application-layer protocal used by email clients to retriieve email from a mail server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does sending email work on a cpanel server in a nutshell?

A
  • Customer/client types up an email and hits send
  • Exim is listening for the connection and has a transaction with the customer/client
  • Exim checks the MX record for the domain after the @ in the TO field of the email
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the stock SMTP ports

A

SMTP :25
SMTPS :465

Alternate SMTP :26
Alternate SMTPS :587

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How receiving email with POP works in a nutshell?

A

mail client (mac mail, thunderbird, outlook, etc) sends request to the mail server (which may be the same as their SMTP server)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the stock POP Ports?

A

POP :110

Secure POP :995

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How receiving email with IMAP works in a nutshell?

A

mail client app (outlook, etc) sends request to mail server (might be same as their smtp server) using the IMAP listening port

the app listening on the IMAP port, dovecot in the case of cPanel, accepts the connection and then has a conversation with the client

With IMAP, there can be a more comlex converstaion occuring back and forth between client and server than what you might see in POP or SMTP.

Ultimately IMAP takes a number of tasks that were client-side and makes them server-side.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Stock IMAP ports

A

IMAP :143

Secure IMAP :993

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In order of preference/usefulness, how do you check what exim is currently processing?

A

exiwhat
shows active connections being handled

ps -C exim wwwu
shows a list of all running exim processes.

lsof -c exim
shows a list of files being accessed by exim
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Where are the exim logs?

A

/var/log/exim*

exim_mainlog
exim_rejectlog
exim_paniclog

/var/log/exim_mainlog
    Logs message arrival and delivery attempts
    The output is controlled by the log_selector option
/var/log/exim_rejectlog
    Logs delivery rejections based on policy (e.g. ACL)
/var/log/exim_paniclog
    Logs server errors, such as those that cause exim to crash, or those that cause a message to never be delivered.
    Should be empty, or nearly empty.

exim -bP log_file_path will display the log file path.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Attempts to send the message that matches the input ID.

A

exim -M

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

This will process the entire exim queue again. Adding an additional f (-qff) will force frozen messages as well.

A

exim -qf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

This is using the mail command, but it runs the debugger, so that you can see any snags along the way.

A

exim -odf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

This will print the total count of queue messages. This number should be low. If it’s high, it needs to be investigated.

A

exim -bpc

17
Q

This summarizes the queue for you

A

exiqsumm

18
Q

This extracts statistics from the log

A

eximstats

19
Q

This will check acceptance from a given IP address to the mail server

A

exim_checkaccess

20
Q

Where’s the exim config file? (you shouldn’t manually edit it)

A

/etc/exim.conf

21
Q

What is dovecot

A

Dovecot is an open-source IMAP and POP3 email server, written with security primarily in mind. It is a fast and simple setup that requires no special administration and uses very little memory.

As we mentioned earlier in How Email Works, Dovecot is the default POP/IMAP application on a cPanel server. The system uses /etc/dovecot/dovecot.conf to initialize the Dovecot service with settings the end-user defines. This can also be configured in WHM’s Mailserver Configuration interface.

22
Q

What’s the name of doveccot’s administration tool?

A

doveadm

23
Q

Locate, test, or reopen Dovecot’s log files

A

doveadm log

24
Q

This will show who is currently logged into the dovecot server

A

doveadm who

25
Q

Tests authentication for a user

A

doveadm auth

26
Q

This will fetch messages matchin a given search query

A

doveadm fetch

27
Q

Shows a list of mailbox GUIDs and message UIDs matching a given search query

A

doveadm search

28
Q

This will inspect or reset stats

A

doveadm stats