PV090: Elektronická pošta

Matúš Kadlecay, <xkadlec9@fi.muni.cz>

Elektronická pošta


za doručenie sú zodpovedné komponenty (programy) zvaní aj "mail agents"
konkrétne to sú:

Formát správy

MIME

Príklad správy (obsahu)

Received: by sender-daemon@arethusa2.fi.muni.cz
        PID 31301 for 550646@mail.muni.cz@mail.muni.cz; Fri, 24 Oct 2025 19:00:02 +0200
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.muni.cz; h=
	content-type:date:from:from:message-id:mime-version:subject:to;
	 s=20230216; t=1761325202; bh=/Su2rr+kpvkLzz3SovHlLa6eSqnWNoStc5
	fEJpoLcLo=; b=QvExDCzxCzsuySXAc0VSIa7np8FG/dkoZa7/Z3f5ODk+lFtEgf
	NtCRr177TLIvczjaCJgf70MI+U8GNoEwcomO3XofULIpj2ELuDR7R4f3pzWngSEG
	47DFOi5Df1TsDtHqc/669WcGo4owiRFcuFcm5O8iglK8Z0oC/5REr7zpPrLS5/S2
	hk+2RkzQDvJVChVHYJV1jYEU5TM8AQD/rdCTLSAWA61Nl5ah/rSOzu3xVS+PWgpH
	QfHeUtQkkeIdNnRM9U4DpKgnYNctlKka28oK+qJ++xfL6Y7+zm8oCE3S+9ig8k4I
	0kJgkUIxYuyfcIs3Oiu44KQXQ7V63A3t5ctA==
X-Mailer: MIME-tools 5.515 (Entity 5.515)
MIME-Version: 1.0
From: "=?UTF-8?Q?Mat=C3=BA=C5=A1?= Kadlecay" <550646@mail.muni.cz>
To: =?UTF-8?Q?Mat=C3=BA=C5=A1?= Kadlecay <550646@mail.muni.cz>
Subject: =?UTF-8?Q?Test?=
X-Ismu-Affiliation: stud FI MU
X-Ismu-WWW-Page: http://is.muni.cz/osoba/550646
X-Ismu-WWW-Auth-Page: https://is.muni.cz/auth/osoba/550646
X-Ismu-Interface: v2
Message-ID: <1761325200-550646-514.801130046212-2084977@mail.muni.cz>
Content-Type: multipart/mixed; boundary="----------=_1761325200-2084977-0"
Date: Fri, 24 Oct 2025 19:00:00 +0200
Return-Path: 550646@mail.muni.cz
X-ISMU-Expires: 2026-10-24

This is a multi-part message in MIME format...

------------=_1761325200-2084977-0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

Ahoj, posielam ti obrázok.
------------=_1761325200-2084977-0
Content-Type: image/jpeg; name="testovaci_obrazok.jpg"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Mailer: MIME-tools 5.515 (Entity 5.515)
Content-Disposition: attachment; filename*=utf-8''testovaci_obrazok.jpg
X-Ismu-Storage: 183777102:485356985
X-Ismu-Attachment-ID: 1761325200.208497788.9782880782164

/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB
AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEB
AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCAAeACgDASIA
AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQA
AAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3
ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWm
p6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEA
AwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSEx
BhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElK
U1RVVldYWVpjZGVmZ2hpanN0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G4z6
vQw2ccPZ3h3l/FHCeac9TJeIstndSoYuiruji6KlOeAzKglisDWblTc6M69Ct8M/sKf8FHf2f/28
PBlvqHgTV7fwh8UtPsmm8afBLxJq9g/jXw7LbeRHfajpCqLR/GHg0T3MC2fi7SbCGAJdWcGu6d4e
1maTRoP5of8Ag83+HXj+5+GH/BO/4/X3gfXfiZ+yz8Dvjr8Q7D9o7wLpXi/V/DGn65e/EJPhRd/D
yz1yfRor260C313QfAHxY8Daf8S/7NuX8D6t4zs9MspV1PxnY2Gp/tt+2D/wRI/Z9/aF8Zf8Li+C
ninWf2UvjiutWviOXxV8O9LS78Ianr9teR6h/wAJHc+C7PVPDN1ofi43kENzb+JfBnibw2E1J7rX
NX0jX9ZnN2Pze/aB+JP/AAWg/wCCW3w8+G/xB+K/7VfwY+OXw0t/GCeCNM8Iaxp998Q9c8RTXWm6
3q8B8deLvEnwq8C/EzULMRWk0j39v8WpNciuI7KyS7m02N4x+8Zb9Hnw68d8a8d9HXjujkuY4yrC
WL8J/EvAcR4bNOHcViaGKr0ctyjjfJ8nz3I+IcFiK+FxFDKsRmlTKMVTwtOnPOcTTxEnKp+qYPwh
4O8U8S8V4PcVU8txmJqRdfgLjXCZxRx2T161KvVhgsv4ny7L80yvN8NVq0KtLAVcdPL68KEISzGv
Cs25frp/wSq/4K3fsx/8FZ/h18TPG/7MXw/+O/w+8OfBfxN4f8Da5p3xq+HXh/wZDPc6zosuqaUn
hDVfBHjP4g+CNZt7Kys5INU0aw8TJ4i8Mo2k3GuaBpeleIvC99rRX8/Sf8HH37cTuq/8Kq/ZS5P/
AEJPxeHb1/4Xg2PyNFe+/wBnD9Jlf8yvg/8A8S3CeS/58d2j1H9DfxrX/MDw7/4f8P3S/wCfXmf/
2Q==

------------=_1761325200-2084977-0--

SMTP

Priklad:

      S: 220 foo.com Simple Mail Transfer Service Ready
      C: EHLO bar.com
      S: 250-foo.com greets bar.com
      S: 250-8BITMIME
      S: 250-SIZE
      S: 250-DSN
      S: 250 HELP
      C: MAIL FROM:<Smith@bar.com>
      S: 250 OK
      C: RCPT TO:<Jones@foo.com>
      S: 250 OK
      C: RCPT TO:<Green@foo.com>
      S: 550 No such user here
      C: RCPT TO:<Brown@foo.com>
      S: 250 OK
      C: DATA
      S: 354 Start mail input; end with <CRLF>.<CRLF>
      C: Blah blah blah...
      C: ...etc. etc. etc.
      C: .
      S: 250 OK
      C: QUIT
      S: 221 foo.com Service closing transmission channel

Ukladanie správ na UNIXe

Poštoví klienti pre prečítanie pošty

DNS

Problém spamu

Jemný úvod do konfigurácie mail serveru

Zdroje