-->

  • All about SMTP server

     


     

    What is SMTP?


    SMTP stands for "Simple Mail Transfer Protocol". It is utilised to handle the sending of emails. In order to support email services, a protocol pair is required, comprising of SMTP and POP/IMAP. Together they allow the user to send outgoing mail and retrieve incoming mail, respectively. All about SMTP server



    The SMTP server performs three basic functions:


    • It verifies who is sending emails through the SMTP server.
    • It sends the outgoing mail
    • If the outgoing mail can't be delivered it sends the message back to the sender


    Most people will have encountered SMTP when configuring a new email address on some third-party email clients, such as Thunderbird; as when you configure a new email client, you will need to configure the SMTP server configuration in order to send outgoing emails.



    POP and IMAP


    POP, or "Post Office Protocol" and IMAP, "Internet Message Access Protocol" are both email protocols who are responsible for the transfer of email between a client and a mail server. The main differences is in POP's more simplistic approach of downloading the inbox from the mail server, to the client. Where IMAP will synchronise the current inbox, with new mail on the server, downloading anything new. This means that changes to the inbox made on one computer, over IMAP, will persist if you then synchronise the inbox from another computer. The POP/IMAP server is responsible for fulfiling this process.  All about SMTP server



    How does SMTP work?


    Email delivery functions much the same as the physical mail delivery system. The user will supply the email (a letter) and a service (the postal delivery service), and through a series of steps- will deliver it to the recipients inbox (postbox). The role of the SMTP server in this service, is to act as the sorting office, the email (letter) is picked up and sent to this server, which then directs it to the recipient.

    We can map the journey of an email from your computer to the recipient’s like this:

     

     






    1. The mail user agent, which is either your email client or an external program. connects to the SMTP server of your domain, e.g. smtp.google.com. This initiates the SMTP handshake. This connection works over the SMTP port- which is usually 25. Once these connections have been made and validated, the SMTP session starts.

    2. The process of sending mail can now begin. The client first submits the sender, and recipient's email address- the body of the email and any attachments, to the server.

    3. The SMTP server then checks whether the domain name of the recipient and the sender is the same.

    4. The SMTP server of the sender will make a connection to the recipient's SMTP server before relaying the email. If the recipient's server can't be accessed, or is not available- the Email gets put into an SMTP queue.

    5. Then, the recipient's SMTP server will verify the incoming email. It does this by checking if the domain and user name have been recognised. The server will then forward the email to the POP or IMAP server, as shown in the diagram above.

    6. The E-Mail will then show up in the recipient's inbox.

    This is a very simplified version of the process, and there are a lot of sub-protocols, communications and details that haven't been included. If you're looking to learn more about this topic, this is a really friendly to read breakdown of the finer technical details- I actually used it to write this breakdown:

    https://computer.howstuffworks.com/e-mail-messaging/email3.htm
     

     

    What runs SMTP?


    SMTP Server software is readily available on Windows server platforms, with many other variants of SMTP being available to run on Linux.

    More Information:

    Here is a resource that explain the technical implementation, and working of, SMTP in more detail than I have covered here.

    https://www.afternerd.com/blog/smtp/


     

    1) What does SMTP stand for?

    Ans :- Simple Mail Transfer Protocol


    2) What does SMTP handle the sending of?

    Ans :- emails



    3) What is the first step in the SMTP process? 

    Ans :-  handshake


    4) What is the default SMTP port?

    Ans :- 25



    5) Where does the SMTP server send the email if the recipient's server is not available?

    Ans :- smtp queue


    6) On what server does the Email ultimately end up on?

    Ans :- POP/IMAP


    7) Can a Linux machine run an SMTP server? (Y/N)

    Ans :- Y


    8) Can a Windows machine run an SMTP server? (Y/N)

    Ans :- Y




    Disclaimer


    This was written for educational purpose and pentest only.
    The author will not be responsible for any damage ..!
    The author of this tool is not responsible for any misuse of the information.
    You will not misuse the information to gain unauthorized access.
    This information shall only be used to expand knowledge and not for causing  malicious or damaging attacks. Performing any hacks without written permission is illegal ..!


    All video’s and tutorials are for informational and educational purposes only. We believe that ethical hacking, information security and cyber security should be familiar subjects to anyone using digital information and computers. We believe that it is impossible to defend yourself from hackers without knowing how hacking is done. The tutorials and videos provided on www.hackingtruth.in is only for those who are interested to learn about Ethical Hacking, Security, Penetration Testing and malware analysis. Hacking tutorials is against misuse of the information and we strongly suggest against it. Please regard the word hacking as ethical hacking or penetration testing every time this word is used.


    All tutorials and videos have been made using our own routers, servers, websites and other resources, they do not contain any illegal activity. We do not promote, encourage, support or excite any illegal activity or hacking without written permission in general. We want to raise security awareness and inform our readers on how to prevent themselves from being a victim of hackers. If you plan to use the information for illegal purposes, please leave this website now. We cannot be held responsible for any misuse of the given information.



    - Hacking Truth by Kumar Atul Jaiswal




    I hope you liked this post, then you should not forget to share this post at all.
    Thank you so much :-)

     


  • 0 comments:

    Post a Comment

    For Any Tech Updates, Hacking News, Internet, Computer, Technology and related to IT Field Articles Follow Our Blog.