Pegasus Mail & Mercury

Welcome to the Community for Pegasus Mail and
The Mercury Mail Transport System, the Internet's longest-serving PC e-mail system!
Welcome to Pegasus Mail & Mercury Sign in | Join | Help
in
Home Blogs Forums Downloads Pegasus Mail Overview Mercury Overview Wiki

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

Last post 08-12-2010, 17:01 by Thomas R. Stephenson. 1 replies.
Sort Posts: Previous Next
  •  08-08-2010, 7:48

    • Nikolas is not online. Last active: 09-26-2010, 3:26 Nikolas
    • Top 500 Contributor
    • Joined on 06-17-2010
    • Member
    • Points 335

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

    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.'.

  •  08-12-2010, 17:01

    Re: 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

     


    Thomas R. Stephenson
    San Jose, California
    Member of Pegasus Mail Support Team

    I do not answer private messages from the forum. If you want to contact me use email to techsupp@tstephenson.com.
View as RSS news feed in XML

Contact | Advertise | Host provider: PraktIT | Terms of Use | Privacy Statement
Copyright © 2007-2011 David Harris / Peter Strömblad. | Pegasus Mail Home Page