MegaBrutal's SMTP Server (MgSMTP) Copyright (C) 2010-2014 MegaBrutal This is the source code for MgSMTP. View the changelog to be informed about the advances made since the previous release, and todo to get a view of the project's plans for the future. Versions prior to 0.9i were private, their changes were not noted. You can check out the program's source code with Git: git clone git://git.megabrutal.com/mgsmtp.git For source files those implement core features of MgSMTP, the GNU Affero General Public License applies: - MgSMTP.pas - Log.pas - Spool.pas - Mailbox.pas - Relay.pas - Bounce.pas - Listener.pas - Policies.pas For other files, mostly helper units, the GNU Lesser General Public License applies: - Common.pas - DNSMX.pas - DNSResolve.pas - EINIFiles.pas - NetRFC.pas - Network.pas - RFCSMTP.pas - SocketUtils.pas I've used and modified the unit, "comparewild.pas", originally published by Thomas Kelsey in 2007. For this single file, the GNU General Public License applies. See license.txt and license_lesser.txt, and license_gpl-2.0.txt to read the mentioned licenses. Compiling this source is really easy. You need the FPC (Free Pascal Compiler) installed on your computer. Supporting environmental variables (such as the compiler's directory in PATH) should be set up as well. If you want to compile for 64-bit architecture as well, you also need to install the i386-win32 to x86_64-win64 cross compiler package. To actually compile the source code, open up a command-line, and issue the following command: buildall.bat Magic happens! The batch file will compile the entire source code in a few seconds. You should get an mgsmtp.exe and an mgsmtp64.exe as a result, for Win32 and Win64 respectively. The mgsmtp_tests.zip package contains some test programs I used. If you do changes to this software, they may come handy for debugging. ~~~ By MegaBrutal ~~~