Configuring the Mercury Mail Transport System to manage email for a number of people using the Pegasus Mail client

Introduction

This setup assumes you want one set of user mailboxes and each user to login to Pegasus Mail from any workstation on the network to access their email. It is assumed the Windows versions of Mercury and Pegasus are being used and haven't already been installed.

Preparation

Create a mail directory, on whichever computer you choose, below which individual mailboxes can be created

for the Roaming Computing System: use \\file-server\mail; create a [mail] section in smb.conf; create /usr/mail; set permissions

or on a Windows 2000 server: use \\mail-server\mail; create the mail directory and share it; set permissions

Share that directory on the network (i.e. \\server\mail). it must be accessable to all computers using the same path, using either Universal Naming Convention (UNC) or a mapped drive letter

Create mail and SMTP queue directories in a place accessable to everyone (i.e. \\server\mail\mail-queue and \\server\mail\smtp-queue)

Install Pegasus Mail on one or all computers requiring it. it can be installed once on a file server and the program run from there via a standard workstation desktop icon; or installed on each workstation (installing just the once is by far the simplest method, whether its on a dedicated applications server, or just another workstation acting as a pseudo-server).

Run Pegasus Mail for the first time; choose 'multi-user installation from a networked computer'; enter the network path to the user mailboxes (i.e. \\server\mail); define atleast one user

Pre-configure Pegasus Mail for each user. there is a sample Pegasus Mail configuration file for use with Mercury in our documentation on Pegasus Mail which you can copy and paste, that represents our recommended settings. we'll make a link to a plain text version of just that .ini file at some point. just do a global-replace on every instance of ****** (there should be 6 instances of it) with the username of each user (if their Internet mail address differs from their (i.e. they're using synonyms) Pegasus name then that will need changing, in the last instance in the file). also, replace the single instance of your-domain-name.org with your actual domain name

Installation

Install Mercury (on whichever computer you choose, in D:\programs\mercury) you only need install those modules which are required, but these can be changed later. If you want to collect email using POP3 from mailboxes hosted with a provider elsewhere, and relay your mail on to their SMTP server for formatting and further distribution (rather than formatting it yourself), then you only need MercuryD and MercuryC; and perhaps MercuryX if you want to schedule such things as periodically dialling an Internet connection, if you have dial-up access rather than a fixed connection. When first asked which modules you want to install, you don't get the option for MercuryC, this option is on the next screen

MercuryD: distributing POP3

MercuryC: SMTP relay client

MercuryX: connection and process scheduler / task scheduler

Location of WINPMAIL.EXE or PMAIL.EXE:

for Roaming Computing System: \\FILE-SERVER\programs\programs\pmail

Mailbox directory:

for Roaming Computing System: \\FILE-SERVER\mail

or: \\MAIL-SERVER\mail

Configuration during installation

Configuration after installation

Mercury Core Module Configuration

MercuryD POP3 Client

MercuryC SMTP Client

Pegasus Mail

Filtering Rules -> Edit global rules [Mercury-program-directory\RULES.MER] - this is for filtering to specific user mailboxes, not the folders within mailboxes, that level of filtering is done from within Pegasus Mail

Aliases (and synonyms)

as per your requirements, email address conversion for mail between the local network and Internet: the two types of email address conversion; for channelling incoming mail to malboxes named other than the name on the incoming email : use 'Aliases'; for converting outgoing mail addresses from having an '@myhostname' address, or similar, to a different domain name, use 'Synonyms'

Auto response file

There are two methods, either create an areply.pm file in a user mailbox and Mercury will automatically send the contents of the file when mail arrives for that user; or you can configure from within Mercury to automatically send the contents of any file when mail arrives for a particular user.

Policy

Methods for automatically loading Mercury when the system starts

(Note: when Mercury is stopped by Fire Daemon the Mercury icon is left in the task tray)

Scheduling the sending and receiving of email and using dial-up Internet access

If you are using Mercury with a non-persistant (i.e. dial-up) connection to the Internet it is a bit more fiddly to setup than if you have a persistant (i.e. DSL, broadband) connection. Use the 'MercuryX connection and process scheduler' to force Mercury to sleep for a certain time, then to awaken, dial an Internet connection, operate for a short time the close the Internet connection

If you are using Windows 2000 (and presumably Windows XP), the features to automatedly dial-up an Internet connection if non already exists when Mercury awakens, and to close it when Mercury sleeps, will not work as dial-up networking operates differently in these operating systems and Microsoft's dial-up networking code has problems. Instead you can use the Freeware RASDial95 program which is distributed with Mercury and located within the Mercury-program-directory\EXTRAS directory

A later version of RASDial95, 1.2, can be downloaded from http://www.muconsulting.com/rasdialpro/rasdial95-1.2.zip. A commercial version, called RASDialPro, is available for download from http://www.muconsulting.com/rasdialpro/) and can be used for 30days before you're legally bound to pay 30US Dollars. Hopefully RASDialPro fixes the flaws in RASDial95. If you're using RASDialPro then substitute 'rdialpro' in place of references here to 'rasdial95'

to dial, RASDial95 wants the command 'rasdial95 dial-up-connection-name username password'. sadly it wants the password in plain text (the commercial version doesn't have this limitation); and it appears to drop the Internet connection if it is already running (don't know if this is fixed in the commercial version), which can especially be a problem if you're connecting often to check and send mail.
have RASDial hangup the connection when done by using the command 'RASDial95 dial-up-connection-name /DISCONNECT'

If you are using Windows 98, instead of RASDial95, 'use Win98/IE4 dialing functions...'

to automatically dial an Internet connection when required. make sure that Control Panel -> Internet Options -> Connections -> pick the connection -> 'Dial whenever a network connection is not present' is set.
Beware a situation when using this method of initiating a connection, where Mercury manages to work as expected when forced with the Task Scheduler's 'poll now' button to open and close the connection, but when actually left to its own devices will only open the connection and not close it. if you experience this then one workaround is to instead use the RASDial95 method

for saving money on fone costs on a dial-up system, the Task Scheduler can be open for just 30 seconds, perhaps every 30 minutes. if the 'Allow queues to "drain" before shutting down connection' setting is on, Mercury won't close the Internet connection until all processes have finished downloading/uploading. also, Mercury fires the POP3 and SMTP clients and core process, at the moment the Task Scheduler brings Mercury back to life; so the following timings might thus be appropriate on a dial-up system:

if there is a period you don't want mail checked atall, enter '-1' for the number of minutes in that period

Logging

If you suspect there could be problems, such as the POP3 collection of mail working but it not getting picked up by the core process and thus getting lost (unless it goes somewhere we don't know about yet), you may want to temporarily turn on session logging, such as for MercuryD. depending on how often the mail is checked and the size of information coming through, this could get large, so set it to a seperate temp partition if you have one

these are the places where logging can be enabled and disabled

Potential problems

Mercury's configuration is only saved when the program is closed down properly, such as using File -> Exit so after making any changes to the configuration, shut down and restart Mercury to save them so they won't be lost if the server crashes or loses its power unexpectedly

If you're using the NetBEUI network protocol to transfer data between Windows machines, Windows transfers that data in small bursts and this can cause problems for programs like Pegasus Mail, resulting in the loss of its configuration (an obvious indication of this is the disappearance of the fixed toolbar under the menu). It may help to use the TCP/IP protocol for your network data transfer, but only as long as you're using a firewall because of the security risks involved with NetBIOS over TCP/IP. (We still see the problem of lost Pegasus Mail settings despite having made this change, but not as often)

Mercury configuration files worth backing up

If these files are backed up then you've got a copy of everything of any worth in terms of time you put into configuring it, making a trivial task of completely restoring the program to its previous functionality.

There may well be more of importance, but we think this covers all that relate to the configuration described here and we'll update this list as we learn more.

Notes...

set MercuryD's temp directory to a seperate temp partition if you have one (i.e. F:\mercury)

Further information

Documentation is available from the author for a fee.

Knowledge-base

Public mailing lists: http://www.pmail.com/support2.htm.

To Do

Configuration -> MercuryD POP3 Client -> choose POP3 host
depending on whether this is collecting for a single mailbox or for multiple mailboxes, choose either 'Local user' or 'Default user'