+Since I basically quit using Windows and became a massive Ubuntu user in the last 2 years, I needed to look for a solution to continue running MgSMTP (since it's mine, of course I insist to use it :p). Unfortunately, I didn't have time to port MgSMTP to Linux, thus I use it with Wine. I've even made some modifications to the code to make it more compatible with Wine. Even though you have many mail server alternatives for Linux, if you still insist to use MgSMTP, and accept the resource-overhead that comes with running it under Wine, there's nothing holding you back.
+
+Here are some tips for running MgSMTP under Wine:
+
+- As you know, in the Unix world, only root processes can bind to ports below 1024. The standard SMTP port (25) is in this range. Still, you are not advised to run MgSMTP or Wine as root. The workaround for this is to create a system account dedicated for MgSMTP (e.g. "mgsmtp", also consider adding it to group "mail"). Set up MgSMTP to listen on a higher port (e.g. 2500), and then forward port 25 to port 2500. You can use iptables:
+iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 25 -j REDIRECT --to-port 2500
+
+The drawback of port forwarding is that it won't apply to the local machine, so applications running on the actual machine have to be configured to connect on port 2500. But other machines on your network will be able to connect your server on port 25.
+
+- It is also advised to isolate MgSMTP in a chroot jail, or even better, in a container (e.g. LXC). By using the latter, you will have a dedicated IP for MgSMTP with a separate iptables, thus you'll be able to connect that IP on port 25 from your host.
+
+- I personally suggest to install MgSMTP under /opt, e.g. /opt/mgsmtp, and it's also fine to set this directory as the home directory for your "mgsmtp" account. Thus your wineprefix will be /opt/mgsmtp/.wine, and Wine will see your home as Z:\opt\mgsmtp\.
+
+- Good idea to symlink or bind mount /var/mail to MgSMTP's mail directory, or link individual mailbox files to/from there, so the system will be aware of your mailboxes.
+
+- Wine has an inconvenient feature. It only runs services when other, non-service applications are running under the same wineprefix. When all non-service applications quit, Wine will kill all Windows services, including MgSMTP. I've searched for the reason and I've only found, Wine is not designed to run permanent Windows services. Live with it! The solution is to always keep an application open with Wine. I always open a cmd.exe for this purpose, and a screen is ideal to keep it alive.
+
+Example for MgSMTP installation under Wine:
+$ sudo su - mgsmtp
+$ screen
+$ wineconsole cmd
+> mgsmtp /INSTALL
+> net start MgSMTP
+
+Detach from screen. MgSMTP will continue to run in the background. Next time you want to start MgSMTP, you won't need "net start MgSMTP": since MgSMTP registers itself as an auto-start service, Wine will automatically start it when you open a cmd. Just remember to start cmd in a screen, so it is kept alive. Also advised to keep a separate wineprefix for MgSMTP (if you've created a separate Unix account to run it, then this condition is automatically fulfilled).
+
+
+IX. Service-specific exit codes
+-------------------------------
+
+If MgSMTP fails to start up, you may see service-specific exit codes either on the command-line (if you've tried to start the service with the "net" command) or in the system logs.