AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Contents · Computing

The structure of the e-mail service

Lessons 32 · 1 lessons · N. I. Taylaqov (general editor), A. B. Akhmedov, M. D. Pardayeva, A. A. Abdug‘aniyev, U. M. Mirsanov. Informatics and Information Technologies, Grade 11, 1st edition. “Extremum-press”, Tashkent, 2018
32

The structure of the e-mail service

Textbook: pp. 116–118
GoalExplains the e-mail address and the structure of a message, the path of a message (MUA, MTA, MDA) and the protocols (SMTP, IMAP, POP3), writes and sends a message safely, recognises spam and phishing, and calculates the size of an attachment.
New words
mail user agent (your mail program) / mail transfer agent (server that passes mail on) / mail delivery agent (puts mail in the mailbox) · MUA / MTA / MDASMTP: the protocol that sends and relays mail between programs and servers · SMTPprotocols a mail program uses to read mail from the server; IMAP keeps mail on the server, POP3 usually downloads it · IMAP / POP3phishing: a deceptive message that tries to make you give away a password, card or code · fishing
Explanation

E-mail appeared in 1971 and is still one of the main means of communication. An address has two parts: the mailbox name and the domain, separated by the @ sign (bahor2026@example.uz). The message header has the fields From, To, Cc (copy), Bcc (hidden copy – the other recipients do not see it) and Subject, followed by the text and attachments. The path of a message: you write it in a mail program (or in a browser) – this is the MUA. It sends the message to a server with SMTP; these servers (MTA) pass it along a chain. The server of the recipient's domain is found through the MX record in DNS. The last server puts the message into the mailbox with the help of the MDA; the recipient reads it with IMAP or POP3 (or in a browser). Modern services encrypt the connection with TLS. Attachments are encoded with base64 so that they can be sent as text, so the size grows by about 4/3 (33%): 3 bytes become 4 characters. So with a limit of 25 MB the real file can be only about 18 MB. The mailbox storage is on the server disk and does not take the computer's memory (for example, free Gmail shares its 15 GB with other Google services). E-mail safety: (1) switch on two-step verification and use a separate long password for each service; (2) do not open attachments and links in a message from an unknown sender, especially .exe, .scr or macro documents; (3) signs of phishing: rushing (“your account will be closed in 24 hours”), asking for a password or code, a sender address that looks like an official one but is different, spelling mistakes; banks and state offices do not ask for passwords by e-mail; (4) spam is unwanted bulk mail: do not reply, do not trust the “unsubscribe” link in a distrusted message, and mark it as “spam”; (5) when writing to many people use Bcc and do not press “reply all” needlessly. E-mail etiquette: a clear subject, a greeting, a short and polite text, a signature; do not forward someone's message without permission. When registering, enter only the necessary personal data and add a second address or number for recovery.

💡 Where will I use this?
In real life

On a paper letter the address is written on the envelope, and the postal worker looks only at the envelope and does not read what is inside. In an email too the routing information is kept apart from the content.

Who uses it

Postal workers, office secretaries and network administrators send a message on by its address.

Try it today

On paper write an invented message to a teacher with a subject, a greeting, three lines of text and a signature. Does the subject alone make clear what the message is about?

Worked examples
Python
1import base64
2adr = "bahor2026@example.uz"
3nom, domen = adr.split("@")
4print(nom)
5print(domen)
6fayl = bytes(3000)
7print(len(base64.b64encode(fayl)))
Output
bahor2026
example.uz
4000
Address and size (Python, tested) – code above. The program prints three lines: bahor2026, example.uz and 4000. A 3000-byte file becomes 4000 characters in base64: 3000·4/3 = 4000.
A sample phishing message (invented): “Dear customer! Your account will be blocked in 24 hours. Confirm your password at this link.” Sender: xizmat@bank-tekshir.example. Signs: rushing, asking for a password, an unofficial domain. Right action: do not click the link, mark the message as “phishing”, and contact the bank through its official app or number.
Class activity

“Mail lab”: the class prepares sample messages (5 genuine-looking and 5 phishing, all invented, with no real people or organizations). Pairs mark each as “trustworthy” or “phishing” and write the reason.

Practice
1
In the address bahor2026@example.uz, separate the mailbox name and the domain.
2
How many MB is an 18 MB file after base64 encoding?
3
Write the difference between the To, Cc and Bcc fields.
4
A message from an unknown sender has the attachment hisob.exe. What do you do?
Story of the Week · The Khwarizmi WayThe graduation evening planClose the week: all of this week’s subjects in one storyRead →