Can anyone please suggest how to create own mail server using linux and how to implement security??
-
There a lot of different mail servers available already. Having a responsive Mail-Server implementing all given standards is quite some work. Since there are different security issues to be handled, you may want to read further in the RFC 5322, 1939, 3501, 5321,....
-
to add to NetZwerg
Surprizingly there is apparently a Mailserver in Qt. However, note that this documentation is for Qt 4.8. You need to check if the developement has been deprecated in Qt 5 or not. -
@nitishrai I already did, get familiar with the RFC Documents. These describe what has to be implemented. For having some small example-code check the Qt Network Examples.
-
@nitishrai I would start with a very small SMTP server without encryption. Have a small basic application listen on SMTP-Port, spawning Thread-workers for incoming connection. Workers implement the SMTP Protocoll. After successfully receiving the message let the same thread send the message to the MX-Record-Server via SMTP. Without reading into the protocolls itself you won't get very far. A Mailserver can become a complex system as soon as you implement authentication, encryption, POP*, IMAP, Mail Queuing, Graylisting, Blacklisting, ....
So just start with a simple non encrypted SMTP Server just receiving SMTP-Emails for your host.
PS: you can send me PM within this domain, just click my nick and select Chat