protocolos de e-mail (smtp, pop e imap)
DESCRIPTION
Apresentação realizada no dia 25/10/2013, sobre os protocolos de e-mail, na disciplina de Redes e Sistemas Distribuídos no Centro Universitário Católica de Santa Catarina.TRANSCRIPT
![Page 1: Protocolos de E-mail (SMTP, POP e IMAP)](https://reader036.vdocuments.mx/reader036/viewer/2022081413/546e81d6b4af9fb4268b464f/html5/thumbnails/1.jpg)
Protocolos de E-mail
Diogo Rodrigues LopesPaulo Vitor Bischof
![Page 2: Protocolos de E-mail (SMTP, POP e IMAP)](https://reader036.vdocuments.mx/reader036/viewer/2022081413/546e81d6b4af9fb4268b464f/html5/thumbnails/2.jpg)
Agenda
1. Introdução;2. História;3. Funcionamento;4. Protocolos Seguros;5. Considerações finais;
![Page 3: Protocolos de E-mail (SMTP, POP e IMAP)](https://reader036.vdocuments.mx/reader036/viewer/2022081413/546e81d6b4af9fb4268b464f/html5/thumbnails/3.jpg)
SMTP
• Protocolo padrão de envio de E-mail• Criado em 1982, na Universidade do Sul da
Califórnia por Jon Postel• Envia o e-mail do client para o server
![Page 4: Protocolos de E-mail (SMTP, POP e IMAP)](https://reader036.vdocuments.mx/reader036/viewer/2022081413/546e81d6b4af9fb4268b464f/html5/thumbnails/4.jpg)
SMTP SyntaxCOMMAND DESCRIPTION
HELO <domain> (Hello) Connect to the server as specified in <domain>MAIL FROM:<reverse-path>
Tell the server the sender’s identity as specified in <reverse-path> [Mail-parameters]
RCPT TO:<forward-path>
(Recipient) Tell the server the intended recipient’s identity as specified in [Rcpt-parameters] <forward-path>
DATA Convey the message body to the serverRSET (Reset) Reset the server connectionVRFY <string> (Verify) Ask the receiver to confirm that a user has been
identifiedEXPN <string> (Expand) Ask the receiver to confirm that a mailing list has
been identifiedHELP [<string>] Obtain help informationNOOP [<string>] (No operation) Indicate no operation, but signify the sender is
still connected (i.e.,“alive”)QUIT Close the server connection
![Page 5: Protocolos de E-mail (SMTP, POP e IMAP)](https://reader036.vdocuments.mx/reader036/viewer/2022081413/546e81d6b4af9fb4268b464f/html5/thumbnails/5.jpg)
POP
• Criado em 1984• Protocolo de leitura• Copia as mensagens do server para o client• Possui problemas de sincronização, pois foi
projetado para deletar as mensagens do servidor
![Page 6: Protocolos de E-mail (SMTP, POP e IMAP)](https://reader036.vdocuments.mx/reader036/viewer/2022081413/546e81d6b4af9fb4268b464f/html5/thumbnails/6.jpg)
POPCOMMAND DESCRIPTION
BASIC COMMANDS FROM RFC 918 USER <name> Set usernamePASS <password> Set passwordSTAT Check the status of the mailbox, typically retrieves
number of messagesLIST [msg] List messages in the mailbox; Optional argument for
message [msg]RETR <msg> Retrieve message <msg>DELE <msg> Delete message <msg>QUIT QuitNOOP No operationRSET Reset
![Page 7: Protocolos de E-mail (SMTP, POP e IMAP)](https://reader036.vdocuments.mx/reader036/viewer/2022081413/546e81d6b4af9fb4268b464f/html5/thumbnails/7.jpg)
POPCOMMAND DESCRIPTION
OPTIONAL COMMANDS FROM RFC 1939 TOP <msg> <n> Retrieve the top <n> lines of message <msg>UIDL [msg] Retrieve unique id for [msg]APOP <name> <digest> A more robust form of authentication than
USER/PASSEXTENSION COMMAND FROM RFC 2449 CAPA Retrieve a list of capabilities supported by the
POP3 server
![Page 8: Protocolos de E-mail (SMTP, POP e IMAP)](https://reader036.vdocuments.mx/reader036/viewer/2022081413/546e81d6b4af9fb4268b464f/html5/thumbnails/8.jpg)
IMAP
• Criado em 1988, para solucionar problemas conhecidos do protocolo POP.
• Possui mais recursos que o POP• Solucionou a sincronização de E-mail entre server e clients.
• Permite pesquisar e-mails no servidor
![Page 9: Protocolos de E-mail (SMTP, POP e IMAP)](https://reader036.vdocuments.mx/reader036/viewer/2022081413/546e81d6b4af9fb4268b464f/html5/thumbnails/9.jpg)
IMAPCOMMAND DESCRIPTION
NOOP Perform no operationSTARTTLS Establish confidentiality and integrity protectionAUTHENTICATE <type> Choose authentication method LOGIN <user> <passwd> Login with username and password LOGOUT Logout the current userSELECT <mailbox> Select the desired mailbox to accessEXAMINE <mailbox> Same as SELECT except opens mailbox for read-onlyCREATE <mailbox> Create a mailbox with the name <mailbox>DELETE <mailbox> Delete selected mailboxRENAME <mailbox> <newmailbox>
Rename mailbox
SUBSCRIBE <mailbox> Subscribe to selected mailboxUNSUBSCRIBE <mailbox> Unsubscribe from selected mailbox
![Page 10: Protocolos de E-mail (SMTP, POP e IMAP)](https://reader036.vdocuments.mx/reader036/viewer/2022081413/546e81d6b4af9fb4268b464f/html5/thumbnails/10.jpg)
IMAPCOMMAND DESCRIPTION
LIST <reference> [pattern] List contents of current reference based on an optional pattern
LSUB <reference> [pattern] List a set of mailboxes matching the patternSTATUS <mailbox> <item> Show the status of specific items in the selected
mailboxAPPEND <mailbox> [flags] <msg> Append a message to the selected mailboxCHECK Perform a checkpoint on the currently selected mailboxCLOSE Close the currently selected mailboxEXPUNGE Expunge deleted messages from the mailboxSEARCH <criteria> Search the mailbox based on certain criteriaFETCH <message> <item> Fetch the specified item from the selected messageSTORE <message> <item> <newvalue>
Update the selected item in a message
COPY <message> <mailbox> Copy a message to the provided mailboxUID <command> [args] Perform an operation on a message based on its UIDCAPABILITY Query the server for its capabilities
![Page 11: Protocolos de E-mail (SMTP, POP e IMAP)](https://reader036.vdocuments.mx/reader036/viewer/2022081413/546e81d6b4af9fb4268b464f/html5/thumbnails/11.jpg)
Protocolos Seguros
• Surgiram na década de 90• PGP• SSL• TLS
![Page 12: Protocolos de E-mail (SMTP, POP e IMAP)](https://reader036.vdocuments.mx/reader036/viewer/2022081413/546e81d6b4af9fb4268b464f/html5/thumbnails/12.jpg)
Considerações finais
• Posso usar SSL ou TLS?• PGP ainda existe?• Qual protocolo devo configurar no meu
smartphone?• Se usar SSL a NSA pode ler meu e-mail?
![Page 13: Protocolos de E-mail (SMTP, POP e IMAP)](https://reader036.vdocuments.mx/reader036/viewer/2022081413/546e81d6b4af9fb4268b464f/html5/thumbnails/13.jpg)
Referência bibliográfica
KUROSE, James F. Redes de Computadores e a Internet – 5ª Edição.
TANENBAUM, Andrew S.; Redes de Computadores - 5ª Edição. Pearson Education do Brasil, 2011.
![Page 14: Protocolos de E-mail (SMTP, POP e IMAP)](https://reader036.vdocuments.mx/reader036/viewer/2022081413/546e81d6b4af9fb4268b464f/html5/thumbnails/14.jpg)
Obrigado
Diogo Rodrigues LopesPaulo Vitor Bischof