Mercury FAQ
Instructions on how to get MERCURY working in Linux as a non-Root/non-Power User user

4. Paste the following command on a line after '.' and before 'exit 0':

iptables -t nat -A PREROUTING -p tcp --dport 25 -j REDIRECT --to 2525

This works for the other standard ports as well, here's what I've entered in the /etc/rc.local and I've made connections to the POP3 and IMAP4 host via the normal ports as well.

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

iptables -t nat -A PREROUTING -p tcp --dport   25 -j REDIRECT --to 8025
iptables -t nat -A PREROUTING -p tcp --dport 143 -j REDIRECT --to 8143
iptables -t nat -A PREROUTING -p tcp --dport 110 -j REDIRECT --to 8110

exit 0

The only thing that does not work in Mercury/32 with Wine is the SSL/TLS and you can use STunnel for Linux to allow the MercuryC SMTP client to connect  to a relay host and have the MercuryS, MercuryP and MercuryI servers support SSL connections.  See http://bugs.winehq.org/show_bug.cgi?id=14797

 

<blockquote><p>4. Paste the following command on a line after '.' and before 'exit 0':</p><p>iptables -t nat -A PREROUTING -p tcp --dport 25 -j REDIRECT --to 2525</p></blockquote><p>This works for the other standard ports as well, here's what I've entered in the /etc/rc.local and I've made connections to the POP3 and IMAP4 host via the normal ports as well. </p><p>#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. iptables -t nat -A PREROUTING -p tcp --dport   25 -j REDIRECT --to 8025 iptables -t nat -A PREROUTING -p tcp --dport 143 -j REDIRECT --to 8143 iptables -t nat -A PREROUTING -p tcp --dport 110 -j REDIRECT --to 8110 exit 0</p><p>The only thing that does not work in Mercury/32 with Wine is the SSL/TLS and you can use STunnel for Linux to allow the MercuryC SMTP client to connect  to a relay host and have the MercuryS, MercuryP and MercuryI servers support SSL connections.  See <a href="http://bugs.winehq.org/show_bug.cgi?id=14797" title="http://bugs.winehq.org/show_bug.cgi?id=14797" mce_href="http://bugs.winehq.org/show_bug.cgi?id=14797">http://bugs.winehq.org/show_bug.cgi?id=14797</a> </p><p> </p>

If you want to get MERCURY working in a Linux environment as a non-Root/Power User, perform the following:


1. Install WINE if you haven't already got it by going to Terminal and input:

sudo apt-get install wine


2. Install (or copy the MERCURY folder from Windows partition) MERCURY using WINE.


3. Goto terminal again and input the following:

sudo su root

cd ..

cd ..

gedit etc/rc.local


4. Paste the following command on a line after '.' and before 'exit 0':

iptables -t nat -A PREROUTING -p tcp --dport 25 -j REDIRECT --to 2525


5. In MERCURY, configure MercuryS to listen in on port 2525.


!


So what this will do is allow you to run MERCURY in Linux using WINE as non-Root/non-Power User user and have the operating system forward incoming connections on port 25 to port 2525 on boot, so one can run a SMTP server with MERCURY.

With instruction '4.' you can change the redirect port 2525 to any port you like; be using the same port for instruction '5.'.

<p>If you want to get MERCURY working in a Linux environment as a non-Root/Power User, perform the following:</p><p> </p><p>1. Install WINE if you haven't already got it by going to Terminal and input:</p><p>sudo apt-get install wine</p><p> </p><p>2. Install (or copy the MERCURY folder from Windows partition) MERCURY using WINE.</p><p> </p><p>3. Goto terminal again and input the following:</p><p>sudo su root</p><p>cd ..</p><p>cd .. </p><p>gedit etc/rc.local</p><p> </p><p>4. Paste the following command on a line after '.' and before 'exit 0':</p><p>iptables -t nat -A PREROUTING -p tcp --dport 25 -j REDIRECT --to 2525</p><p> </p><p>5. In MERCURY, configure MercuryS to listen in on port 2525.</p><p> </p><p>!</p><p> </p><p>So what this will do is allow you to run MERCURY in Linux using WINE as non-Root/non-Power User user and have the operating system forward incoming connections on port 25 to port 2525 on boot, so one can run a SMTP server with MERCURY.</p><p>With instruction '4.' you can change the redirect port 2525 to any port you like; be using the same port for instruction '5.'.</p>
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft