JANET Site E-mail Requirements
What's this all about?
Existing and new JANET customer organisations may choose to operate
their own
This note is primarily intended for managers of
The note assumes a little familiarity with Internet ways of working.
In particular common terms and abbreviations such as IP, DNS, TCP or
RFC are used in the text without explanation. A very brief glossary
is included at the end. The terms "
- Nature of the requirements
- External view
-
E-mail addresses - Required
E-mail addresses - DNS - use of the Domain Name Service
- Message format
- Relaying
- Gateways
- Dialup accounts
-
Web-based e-mail
-
- Internal view
- Service agreement
- Glossary
Contents |
Nature of the requirements
RFC 2119 sets out a convention for the use of keywords such as "MUST" and "SHOULD" to indicate what degree of discretion is allowed (if any) in interpreting directions and requirements.
Where keywords in this note are presented in BOLD UPPER CASE,
the conventional meanings of RFC 2119 apply in assessing whether
a JANET site's
Where the same words are used without the above emphasis, they have their ordinary informal meanings.
External view
E-mail addresses
Internet
in which the domain name broadly distinguishes your organisation's
network from all others in the Internet and possibly specifies some
department or division within the organisation, and the
There are normally no spaces in either part, nor on either side of the
"@" separator.
Most organisations connected to JANET are entitled to a domain in ac.uk (the imaginary domain college.ac.uk is used for illustration here), but the correspondence between JANET and ac.uk is not complete. JANET(UK) publishes rules on the choice of domain names immediately below ac.uk.
Published destination addresses SHOULD be of forms such as
- Karl.Marx@college.ac.uk - simple and explicit, but may be hard to keep unambiguous;
- k.marx@dept.college.ac.uk - less personal identity revealed, more organisational structure;
- fr03200@college.ac.uk - no personal name included
Addresses SHOULD NOT be of forms such as
- karlm-chemsrv2@ntserver2.chem.college.ac.uk
- they are not stable; administrative or technical changes can make these addresses misleading.
- the information they appear to contain is of more value to someone considering breaching your security than to any legitimate user.
Most
Addresses used in the mail protocol (the "SMTP envelope")
enable
Any address in the protocol "envelope" or the header of
a message sent from your organisation's
- MAIL FROM: ("envelope") SHOULD be as published (but see the exceptions below).
- From: header line MUST be as published.
- Sender: header line SHOULD NOT normally be used (but see below).
-
Reply-To: header line SHOULD NOT normally be used (but see below).
Exceptions: the requirements may be different for messages sent by an automatic process such as a Web form or a mailing list.
Required e-mail addresses
You MUST implement the postmaster and abuse addresses for all domains within your management. RFC 2142 describes other role addresses which you should provide under certain circumstances; in particular if you support the facilities which any of those addresses provide you MUST use the names prescribed for them.
You MUST arrange for a timely response to messages from JANET(UK) or its contractors sent to the postmaster and abuse addresses for your organisation.
You may, of course, wish to use alternative names as well; you then
need to ensure that your
It is quite acceptable for the same individual or team of individuals
to be responsible for messages addressed to more than one role.
DNS
The IP address of a sending mailer SHOULD have a PTR (pointer
The sending mailer HELO (or EHLO in ESMTP) SHOULD be fully qualified and SHOULD correspond to an A (Address) record in the DNS which matches the mailer's IP address.
Domains and subdomains for which the domain name of the appropriate
inbound mailer is different from the domain name in
Message format
The header part of every message sent from your organisation MUST
meet the requirements of RFC 822
in which the following lines are mandatory:
Date:
From:
To:
(see above on
The header SHOULD also include a
Message-ID: line.
Whether or not the headers of messages sent from your organisation have
Received: lines
depends on the software you use and the structure of your
Timestamps in Date: and Received: header lines MUST
be accurate to 1 second or better, with the correct timezone indicated.
The Date: line is usually supplied by the user program which
generates the mail messages, so that you may need to keep accurate the
clocks of numerous desktop or public computers. Various network technologies
have proprietary ways to synchronize clocks within your own network;
the JANET Network Time service
enables you to keep your network's time in step with those of other
organisations in JANET and throughout the Internet.
Messages MUST conform to the MIME specifications in RFC 2045 and related RFCs (possibly by having no MIME features at all).
Relaying
In many cases only a very small number of systems will be expected
to send
Systems with this external access in either direction are exposed to open relaying attempts, and such attempts will only be defeated by a combination of technical and administrative arrangements.
The organisation's router or firewall SHOULD reject outbound packets to port 25 at external addresses and inbound packets to port 25 at internal addresses, except for the above sending and listening managed mailers.
All
Similar considerations apply to TCP port 587, which RFC 2476
assigns for message submission.
Gateways
Some
Others are primarily designed for use within an organisation. They
can offer features not available in the Internet at large by a variety
of proprietary techniques; but to exchange Internet mail with other
organisations they need a gateway system which presents to the Internet
behaviour exactly like that of a native Internet mail system as described
above. It then accepts in some way messages from the proprietary
In such an environment the external behaviour of your
Dialup accounts
You may wish to allow your
If you have a proprietary
There is nothing in the most common open
The normal advice to users is to send through their ISP's outbound
mailer instead. The ISP normally has additional knowledge such as the
telephone number from which the dialup call came and can in most cases
justify the relaying needed even if the user chooses to use your organization
address from home. If dialup access is important to you and your users,
you should check very carefully any claims by a supplier that a standard
Web-based e-mail
The approach of Hotmail and
since then of many other service providers, particularly where there
is no payment for the
- a Web server supplying a variety of forms for the tasks which a user can perform (Web forms are pages with provision for user input);
- an authentication database against which one of the forms will validate users;
- a message store which certain of the forms will manipulate to support
an "In box" from which each user can read their own
incoming
e-mail , and usually folders named by each user to allow them to organize their mail as they wish; - an external mailer which delivers incoming and internal
e-mail to message stores, and formats and transmits outgoing messages.
Benefits include:
- the complete absence of
e-mail software and data (messages) from all end user computers; - concentration of management and technical resources for
e-mail at a central system or collection of systems; - access to organisational
e-mail (both reading and sending) from other locations.
Against this:
- the software is relatively complex and needs significant management;
- it may be difficult to integrate existing user databases;
- fewer features and facilities may be available to end users than
through dedicated
e-mail software; - the service may interact more slowly with users than dedicated
e-mail software.
If you consider obtaining a
Internal view
Addresses
All addresses used in outgoing messages MUST be valid and MUST
have
This is not the same as allowing mail programs to supply a default domain,
which is less satisfactory.
It is highly desirable that all the addresses used internally are
the same as those published for external use so that users do not need
to choose which address to give to their correspondents. If your internal
Even where internal
Audit trail
You MUST adopt software and management procedures which make it possible to identify the person responsible for sending each message, independently of any information in the message itself which an end user might supply falsely. This might be achieved in various ways; for instance:
- record an IP address in the message header along with the timestamp (possibly as a Received: line) and refer to access logs;
- record an authenticated login in the message (only a partial solution);
- or ensure that
e-mail system logs are adequate and are not lost or damaged.
- publish clear instructions to all
e-mail users about security of accounts, passwords, use of shared or unattended computers and other related matters.
You MUST adopt software and management procedures to result
in a log of all messages sent out from the organisation which is retained
for a suitable and agreed period (eg 3 months).
You MUST ensure that such logs are kept secure against unauthorised
examination, alteration or accidental loss.
You MUST ensure that JANET(UK) or their contractors can contact
your
Distribution lists
Your
Check that:
- you are satisfied with the arrangements for managing membership of internal lists;
- access to internal lists is controlled. Normally only members of the list will be able to send messages to it, but for some lists you may wish to extend this to certain managers or others, to anyone inside your organisation, or even to certain individuals or roles outside your organisation.
Privacy
The organisation MUST publish internally a privacy statement setting out:
- the circumstances in which
e-mail and access logs and stored messages will be made available to persons or agencies other than the originator and recipients of the messages concerned; - and the way in which originators and recipients will then be advised of the disclosure of this information.
User support
Users can expect support of various sorts:
- routine requests for changes to their account details;
- information on the status of your
e-mail service; - Advice on the
e-mail software they use; - advice on reports (often failure reports) from your own
e-mail system or from one somewhere else; - action on what they perceive as abuse through the
e-mail service, including both unwanted bulke-mail (UBE, spam etc) and abuse which appears to be personal; - advice on good practice in using
e-mail ; - advice on the use of
e-mail to access external services (eg mailing lists); - advice on the interaction between your
e-mail service and dialup or other connection services they may wish to use; - directions on security and acceptable use (with reference to the JANET Acceptable Use Policy as appropriate).
Much of the advice and information will best be provided through internal Web pages or other documentation; effort put in to the maintenance of a Frequently Asked Questions list is likely to be effective.
Where your user support function is separate from the operation of
the
Service scaling
The system or systems providing
- a firewall barring access to unused ports on
e-mail systems; - the central computer accepting incoming
e-mail connections; - the central computer sending
e-mail outside your organisation; - the central computer storing delivered
e-mail for your users to read; - the computers and software with which your users read and compose
their
e-mail .
For a great variety of reasons, very few JANET organisations have
Service agreement
Whether your
For an outside contractor you will normally have at least the most critical items closely linked to the agreement under which the contractor does the work. Headings might include:
- capacity of the service;
- performance of the service (time taken for messages to pass through the system and network);
- availability of the service (and of certain specific parts of it);
- assurance of security;
- response to requests for changes;
- response to fault reports;
- escalation and penalties.
For internal support this may be regarded as documentation of the service or may be included in Quality or other documentation. Some of the above headings may be covered elsewhere or may be thought unnecessary.
Where facilities are provided away from your own site or networks,
each of the headings may have impact on your internal
Glossary
- DNS
- The Domain Name Service. IP addresses are impracticable
for people to type, recognise or remember and the DNS makes it possible
to use names instead. Domain names have several components separated
with dots forming a hierarchy, with the last components representing
the top of the tree; for example, ns0.ja.net. The DNS is
the Internet's distributed loookup service associating IP addresses
with names. It is specified in RFC 1035
and related RFCs.
Both management and operation of the DNS are delegated and distributed. JANET(UK) allocates all names ending in ac.uk and assigns responsibility for each domain immediately below there to some organisation. The organisation operates (or arranges for a contractor to operate on its behalf) two or more nameservers - computers with DNS software - from which all Internet users can obtain the IP address corresponding to a name in that domain.
Other DNS information includes PTR (pointer) records through which IP addresses can be converted to domain names. The DNS also contains data supporting its own management and operational integrity. - ESMTP
- SMTP extensions allow two mail systems to negotiate facilities beyond those of SMTP, both for management and for kinds of message content not provided for in SMTP. The first item in an ESMTP exchange is EHLO, which takes the place of the HELO used otherwise.
- Header
- An Internet mail message is transferred between mail systems in
the form of a text file. The first lines of the file are the header;
next comes a single blank line, followed by the lines which make up
the body of the message (some of which may also be blank).
The header part is created by the sending user's mail program and subsequently added to by each mail system through which the message passes; it is closely defined by RFC 822 and it is the responsibility of all those mail programs and systems to follow the rules. The body of the message can obviously include whatever the sending user wants, although for anything except the simplest typed text messages the MIME standards require that the mail program encodes it in specific ways and adds header lines which will enable the recipient's mail program to recover what was intended. - IMAP
- Internet Message Access Protocol. An alternative to POP in which
messages can remain in a store on a mail server and users can read
and manipulate them there. Usually IMAP supports folders and possibly
address books in the message store so that users have the same view
of their mail, no matter where they are when they connect to the server.
IMAP connections support password or similar authentication. This
arrangement needs more server capacity than the combination of POP
for fetching mail and SMTP for submitting it.
The version in most common use at the time of writing is IMAP4, described in RFC 2060 - IP
- Internet Protocol. RFC 791
and related RFCs define the interpretation of information packets.
The use of IP addresses to indicate the source and destination
of each packet is part of the specification. The RFCs also specify
how a computer should react to packets with particular kinds of information,
although this is at a very crude level and, for instance, the transfer
of an
e-mail message involves the exchange of many IP packets. - IP address
- In a reasonable but rather simplified view, each computer connected
to the Internet has a unique number allocated to it while it is connected;
this is its address and much of the machinery of the Internet is concerned
with finding a route so as to pass packets of information from one
address to another.
Present (version 4) IP addresses are 32 bits long, roughly corresponding to numbers up to about 4 thousand million. They are usually written using four8-bit numbers (between 0 and 255 in ordinary decimal notation) separated with dots; for example, 128.80.230.187. - ISP
- Internet Service Provider. JANET provides Internet service to customer organisations, but most JANET users obtain Internet connections from other providers at certain times. For instance, many individuals will have dialup accounts which they use from home and possibly from elsewhere, and the extent to which your organisation's JANET facilities are then available to them may be limited by security considerations.
- MIME
- Multipurpose Internet Message Extensions. Internet
mail relying only on RFC 821 (SMTP) and RFC 822 supports
simple text messages with no formatting. Although this is adequate
for many purposes, people now expect to use
e-mail for transferring electronic information in other forms such as spreadsheets or word processor documents.
The MIME standards in RFC 2045 and related RFCs set out how ane-mail program can encode such things in a text form, not for recipients to read directly but for theire-mail programs to decode and deal with in some appropriate way.
The standards specify howe-mail programs can cooperate to deliver what their users want, while the messages which pass across the Internet are of the kind required by the basic standards and present no difficulties to thee-mail systems in between. - POP
- Post Office Protocol. In most cases a message is delivered to its
recipient by writing it into a file or database in a mail server where
it is stored. It is not necessary for the recipient to be using her
or his computer at the time; they can collect the message when it
is convenient for them. POP is a protocol with which user
e-mail programs can retrieve delivered messages from the mail server.
Since user programs can easily retrieve messages at regular intervals without attention, users do not always appreciate the distinction.
Commonly, a POP server program responds to user requests by manipulating the same store of messages as the main mail program may be delivering message into so a degree of cooperation is necessary and some POP products are bound in with mailer products. At present POP3, described in RFC 1939 and related RFCs, is the most widely deployed version. - RFC
- Request For Comments. Documents making public the Internet's protocols
and many of its procedures. The authoritative repository for RFCs
is
http://www.rfc-editor.org/ .
Some RFCs have the status of standards; others are for information or are experimental. Internet Drafts are documents under development, some of which later become RFCs. - SMTP
- Simple Mail Transfer Protocol. RFC 821
describes the negotiation between two mail systems which is the basis
for Internet
e-mail .
The sending mail system first identifies itself (with the HELO command) and provides thee-mail addresses of the originator and recipients of the message. The receiving system acknowledges each item. The sender then sends the complete message without interruption, with a special code to mark the end of it. - SSH
- Secure SHell. SSH is a collection of client programs and corresponding servers which have similar functions to well-established and convenient network applications but which use encrypted TCP connections. The IETF secsh Working Group has produced several Internet Drafts and is preparing RFCs.
- SSL
- Secure Socket Layer. A protocol set which encrypts TCP traffic from a low level, requiring system software configuration at both ends of the secure path. SSL version 3 is described in an Internet Draft dating from 1996, but in no published RFC.
- Submission
- A message may be transferred from one mail system to another several
times in its journey. Most of these transfers are between pairs of
mailers which are essentially peers to each other, and neither has
any special interest either in the message itself or in its originator
and recipient. However, the first transfer is special and is called
submission; at that stage the message moves from a program under the
control of the originating user into the general Internet transfer
scheme.
The submission stage is normally the only moment at which it is possible to know which individual or account sent the message, so it is an opportunity to authenticate the originator; it is usual also for usere-mail programs to leave messages incomplete (perhaps without Date: or Message-ID: header lines) and the mail system accepting submission will need to supply such information.
RFC 2476 formalises arrangements for submission and in particular assigns TCP port 587 for the purpose. At the time of writing there is little use of the submission port or facilities; most usere-mail programs use the SMTP port (port 25) and the mail systems to which they submit ("SMTP servers") apply ad hoc authentication and completion. - TCP
- Transmission Control Protocol. For many applications
including electronic mail, it is convenient to ignore the details
of the exchange of individual IP packets, and to work as if a
stream of information was flowing from one computer to another.
TCP keeps track of packets so as to provide this service. TCP packets include information to which the destination is expected to respond so that information arrives complete and in the right order, and if that is not possible TCP will report an error.
The proper name is TCP/IP - TCP over IP - since the packets forming the stream of information are IP packets. Other arrangements are possible in principle. - TCP ports
- A computer with a single IP address may be able to provide
several services using TCP connections. As well as the IP address,
TCP connections carry with them a number between 1 and about 30 000,
A different number is assigned to each service; the computer can identify
the expected behaviour from the port number and respond appropriately.
Fore-mail , a system able to receive mail normally accepts connections on TCP port 25 and will make SMTP responses to information directed to that port. If the system is also a Web server it will accept connections on TCP port 80 and provide there responses according to the Web protocol HTTP. - UBE
- Unsolicited Bulk
E-mail . Also called spam, junk mail, UCE. Certain individuals and businesses send mail indiscriminately toe-mail addresses for which they have not in any sense obtained permission; associated with UBE is a practice of concealing the identity of the individual or organisation responsible. All this causes problems of privacy, security, and unauthorised use of resources.