clubct2b.jpg (9764 bytes)

CHAPTER FIVE - PowerMail

5.1) Introduction

5.2) Redirecting Mail

5.3) Infobots (Autoresponders)

5.4) Configuration

5.5) Notes

5.6) Recent changes


5.1) Introduction

ClubCt.Com LLC has the sophisticated PowerMail(tm) mailing system. In addition to being able to have nearly unlimited infobots by simply adding text files to a directory, you can also redirect mail for everyone in your domain by simply modifying a text file. PowerMail is not set up automatically for new accounts, but you can go to the ClubCT Control Panel to do it.

5.2) Redirecting mail

Make a text (upload in ASCII or text mode) file in your home directory named redirect (or .redirect) that says:

Default               yourusername@yourdomain.com
eric                  73452.452@compuserve.com
susan                 susan.simpson@mci.com
kim                   goddess@afterlife.com
hellllp               73452.452@compuserve.com root@instant-answers.net
john                  john
default               crazy@bob.com
This would redirect mail for eric@yourdomain.com to 73452.452@compuserve.com, etc. Mail for defined userids in your domain (that is, userids who can login to your domain) should be routed with .forwarding.

Mail to a user that was not in this list would be sent to the default user, crazy@bob.com. You are encouraged to have a default entry, if just to be sure you don't lose mail due to any other mistakes.

5.3) Infobots

Once you have used the Control Panel to install PowerMail on your domain, you can create a file in your home directory named help which says:

We offer you help.

Mail to help@yourdomain.com will return the message "We offer you help".

Infobot files should not have upper case letters in them. Incoming mail addresses are normalized to lower case before the infobot directory(ies) is searched.

VERY IMPORTANT : You must create an alias in your redirect (.redirect) file for the filename (e.g., help) which indicates where the E-Mail sent to help should be forwarded. Otherwise this message will be lost! The default address will NOT be used!

5.4) Configuration

PowerMail is configured through a text file which you may place in your home directory, called .soprc. If this file is not present, the default behavior corresponds to a .soprc like so:

BounceFile .redirect
InfobotDir .

Please note that the above two directives are not defaults! A blank .soprc is not the same as a non-existent one. If you create a .soprc with no BounceFile directive, for example, .redirect will not be checked.

Think of that .soprc as a default in the absence of anything else, not of those two directives individually as defaults. Use the above as a starting point for any .soprc you make.

Most people don't need to create a .soprc or read the following because that default is meant to be the most useful configuration.

5.4.1) BounceFile

Also known as RedirectFile. Specifies a file which will be parsed for mail redirection. In that file, the first word on a line gives an alias for your domain, and the following word(s) give the destination. So the line:

rhd rhd@test.com

will redirect mail originally sent to rhd@yourdomain.com to rhd@test.com. And the line:

two-techs rhd@test.com roh@test.com

will redirect mail for that alias to the two addresses given.

The alias default (or *) is special. It will be used if and only if nothing else was done with the mail, whether redirection or infobot mailing. Note that if you don't give a default, there is no default.

This directive may appear multiple times and the files read will be merged. In case of conflict the file specified last wins.

5.4.2) InfobotDir and InfobotExt

InfobotDir specifies a directory to search for infobot data files. Persons who make use of their Unix accounts may want to make an infobot directory off of their home and specify

InfobotDir infobot

People who don't have any other particular clutter in their home directories can get by with

InfobotDir ~

which is also the default if no InfobotDir directive at all appears.

InfobotExt specifies extensions to use for infobots. The lack of this directive is equal to

InfobotExt "" .txt

Consider mail coming in for info@yourdomain.com. In this case, files named simply info will be sought out in the InfobotDir specified directories. If you had the line

InfobotExt .txt

in your .soprc, info would not be used, but info.txt would. If you had

InfobotExt .txt .html

both info.txt and info.html will be used.

In the last example, if both info.txt and info.html were found, both would be mailed in turn. This could be useful, or harmful. Look for more control in future versions of PowerMail.

InfobotExt may be specified more than once, or multiple extensions may be given on one line. In the absence of any InfobotExt line, first no extension is added to the mail address that comes in, then .txt is added. In its presence, the mail address without modification is not tried, unless the null extension "" is given.

5.4.3) InfobotAccessLog

Keeps a log of where infobots were sent. The log file must be world-writable. (It probably also needs to exist before you start, unless the directory it's going to be kept in is world-writeable.) For example, at a shell prompt,

touch infobot-access-log
chmod 666 infobot-access-log

Then put in your .soprc:

InfobotAccessLog infobot-access-log

Format of log file: try it and see. (Recipient, date, file)

Only the last instance of this directive has effect. No user-visible logging is done if this directive is absent.

5.4.4) SaveEnvelopeAddress

Writes the address that was on the envelope for this piece of mail into a header that you specify. For example:

SaveEnvelopeAddress X-Envelope-To

Notice the lack of a colon in the .soprc file. Using an X- header for this is of course recommended, but not enforced.

5.4.5) AllowSlashes

Allow slashes in infobot names, letting users go into subdirectories to specify the file they want returned. A leading slash is still dropped. NoAllowSlashes doesn't allow slashes in infobot names: it converts them to hyphens before looking up the infobot. The default is NoAllowSlashes.

This affects infobots, not redirection aliases.

5.4.6) AllowDotFiles

Allow leading periods in infobot names. Probably not useful, though maybe not that harmful. NoAllowDotFiles drops leading dots in infobot names. The default is NoAllowDotFiles.

This affects infobots, not redirection aliases.

5.4.7) AllowTildeRecursion

If the destination begins with a tilde (~), it will immediately be looked up again without the tilde. For example:

rhd rhd@test.com
Rich_D ~rhd
root ~rhd

This does not currently work with multiple destinations. You can do this:

the-list name1@dom1 name2@dom2 name3@dom3
alt1 ~the-list
alt2 ~the-list

but you cannot (yet) do this:

sales-people name1@dom1 name2@dom2
support-people name3@dom3 name4@dom4
everyone ~sales-people ~support-people

Since that would obviously be useful it will probably be added soon.

AllowTildeRecursion is the default and may be overridden with NoAllowTildeRecursion.

5.5) Notes

  1. Current version is less then 1.0; more to come.
  2. You can redirect mail and send back an infobot for a given alias. Just set them both up normally (as if you were just doing one or the other).
  3. Infobots will not respond to low-precedence (bulk) mail. The mail will not go on to default redirection either, it is simply ignored. Of course, such mail is redirected if specified in the .redirect file. (Confusing? Don't worry: it works the way it should.)
  4. You can hide newlines in both .soprc and .redirect:
    long-list one@one.com two@two.net three@three.org four@four.chi.il.us \
              five@five.co.uk syxx@nwowrestling.com seven@cia.gov
  5. Particularly in light of note #1, report experiences good and bad to clubct@clubct.com.

5.6) Recent Changes

v0.40a
v0.40
v0.39c
v0.39b
v0.30
v0.23
v0.22
v0.21
v0.20
v0.12

Back to the Table of Contents