wk2 email Flashcards
Sending email is dictated by what?
SMTP transaction
Receiving email is covered by what?
either POP3 or IMAP
What is SMTP
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
What is POP3
Post Office Protocol version 3 - an application-layer protocal used by email clients to retriieve email from a mail server
How does sending email work on a cpanel server in a nutshell?
- 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
What are the stock SMTP ports
SMTP :25
SMTPS :465
Alternate SMTP :26
Alternate SMTPS :587
How receiving email with POP works in a nutshell?
mail client (mac mail, thunderbird, outlook, etc) sends request to the mail server (which may be the same as their SMTP server)
What are the stock POP Ports?
POP :110
Secure POP :995
How receiving email with IMAP works in a nutshell?
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.
Stock IMAP ports
IMAP :143
Secure IMAP :993
In order of preference/usefulness, how do you check what exim is currently processing?
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
Where are the exim logs?
/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.
Attempts to send the message that matches the input ID.
exim -M
This will process the entire exim queue again. Adding an additional f (-qff) will force frozen messages as well.
exim -qf
This is using the mail command, but it runs the debugger, so that you can see any snags along the way.
exim -odf