The MAIL utility will accept a sequence of commands and work though
them one after another.
For example:
-afilename
This command tells MAIL to append the POP entries in the given file
to those that are already in the registry. MAIL assumes that you
will only set up one user per mailbox and therefore assumes that all
mailboxes are unique. If it finds any mailboxes with the same names,
the old ones will be overwritten. Any completely new entries will
be added and any entries the same will be ignored. There are more
details below under "-l".-chostname
Looks up the CNAME for the specified host. (If you are not sure what
a CNAME is, please see our DNS Primer). For
example:
The last parameters define the aliases for each of the users. Any mail to postmaster will be sent to mike's mail box. Any mail for david to david's mailbox and any mail to mark or halp will go into test's mailbox. Note that mail to "mike" and "test" will be rejected - if these aliases are to be used, they must be added (i.e. extra aliases can be listed in the script).
Note, if a user has a holiday account, it will not be upset by the loading process, it will remain a holiday account and be updated (if required).
That covers all the options for defining a POP script! To load the script, it is a matter of entering:
It is usually used before another option on the same command line. For example, to wait a maximum of 600 seconds for POST to complete, you would use the command line:
The user's login name and password are the details that will be used by your POP3 clients. The POP3 service will require these details from your POP3 client and then open the specified mailbox file - this means that you could have several POP3 clients look at the same mailbox file but with different user names and passwords.
If the password starts with "-" the POP service will assume that there
is a plain-text password that must be encrypted. It wil encrypt the
password and write it back into the registry with a preceeding
asterisk. From this point on, the encrypted password in the registry
will be used. If you change the encrypted text, the user will fail
the password check and you will have to enter a new password with a
preceeding "-". For example the password "-brian" is encrypted to a string like
"*JFHISHkdhf" and only the password "brian" will match this encrypted
password in future.
If you elect to store passwords in the registry, you can allow some POP
clients to change the passwords - use the PasswordServer
entry to switch the password server on and off. Note that the password
server always encrypted passwords.
You may also use the NT Database for the user's password. To do this,
simply miss the password off the end of the definition for the POP user.
NTMAIL will then ask the NT Operating System if this user has "Logon Pivilidge"
(ie the privilidge to use anything belonging to NT). If so, the user will be
validated and allowed access to his POP account. For example, the user "brian"
might have the following entry:
On the 50+ user version, you may simply set the "Use NT Database" flag in
Smtpdata and both the user's name and password will be
those as defined in the NT User Database. In this case no entry is required in
the registry and the user's mail box will have the same name as the user. Thus
a user "brian" will get the mail box called "brian.mbx". If you would like to
set up aliases for brian, you will need to add a "Pop" line to the registry without
the user name and password defined. For example:
For example the following file
This is potentially very powerful and may cause other people problems if
you (for example) re-define the "From:" field to be something illegal.
4. List Manager Commands
The list manager will interpret four commands which must appear in the first
line of text of a mail message. When the list server replies to a message, it
will attempt to use the "From:" clause, "X-Replyto" clause and finally the address
the mail claims to have come from.
4.1 JOIN or SUBSCRIBE
This command takes one parameter, the name of the list to join. If the sender
is not already in the list, his address will be appended to the registry
entry for this list and the Join Mail file will be sent. If the list does
not exist, the list manager will send its help file instead.
4.2 LEAVE or UNSUBSCRIBE
If a user needs to leave a list, he will a leave command followed by the name
of the list he wishes to leave.
The list manager will check to see if the sender appears in that list and
remove him if he does. Then the leave mail file will be sent. If the
list is unknown or the name does not appear in the list, it will send its
help file instead.
4.3 LIST
The command will return a message to the sender containing a list of all
the members of a given list. This list is in "join" order and may be
requested in alphabetical order by placing the work "ALPHA" after the
list name.
4.4 HELP
Send the text file that gives help for this particular list manager.
If the name of a list is specified, send the help file for that
pacticular list.