The list is hashed into 53 files, named @ through t in ASCII. A nonexistent file is treated as an empty file.
Each file contains a series of addresses. An address can be any string of non-NUL characters up to 400 bytes long. Each address is preceded by the letter T and followed by a NUL.
For reliability, when an address is added to or removed from the mailing list, the relevant file is recreated under a temporary name inside dir/subscribers and then moved into place.
dir/subdb contains subscriber database access information for lists that are configured to use an alternate database plugin (such as mysql or pgsql) for storage of mailing lists. Its format is plugin:host:port:user:password:database:table. The database and table names both default to mysql. If this file does not exist but dir/sql exists, its contents are used with a plugin name of sql. If no such file exists, the standard lists stored in dir/subscribers etc are used.
Messages sent to the mailing list are numbered from 1 upwards, whether or not they are archived. dir/num is the number of messages sent so far followed by ':', followed by the cumulative amount of message body that has passed ezmlm-send stored as kbytes * 4 (4 corresponds to 1kb).
dir/archive has subdirectories, each subdirectory storing up to 100 messages. Message number 100m+n, with n between 0 and 99, is stored in dir/archive/m/n. For example, message number 15307 is stored in dir/archive/153/07. The message index is stored in the file index in the same subdirectory of dir/archive holding the corresponding messages. Thus, the subject index contains up to 100 entries.
The subject index contains message subjects that are normalized so that the original message and all replies have the same entry. The subject index is used for advanced message retrieval functions. For safety, the subject index is created under a temporary name inside dir/archive and then moved into place.
ezmlm-manage will ignore message files without the owner-execute bit set. ezmlm-send turns on the owner-execute bit after safely writing the message to disk.
ezmlm-make by default adds ezmlm-get to dir/manager to handle -get, -index, and -thread requests. If ezmlm-make is invoked with a digestcode command line argument, digest creation is enabled by putting this argument into the dir/digestcode file.
dir/editor handles incoming mailing list submissions. ezmlm-make sets up dir/editor to invoke ezmlm-send to immediately forward each message to all subscribers and then to run ezmlm-warn.
dir/owner handles incoming messages for the mailing list's owner. ezmlm-make sets up dir/owner to store messages in dir/Mailbox and then to run ezmlm-warn.
dir/bouncer handles incoming bounce messages. ezmlm-make sets up dir/bouncer to invoke ezmlm-return. ezmlm-warn is no longer invoked here due to the load it places on systems with many large lists with many bounces.
dir/confirmer handles incoming message confirm and discard requests for sender confirmed lists. ezmlm-make sets up dir/confirmer to invoke ezmlm-confirm, ezmlm-archive, and then ezmlm-clean.
dir/manager handles incoming administrative requests. ezmlm-make sets up dir/manager to invoke ezmlm-get, ezmlm-manage, ezmlm-request, and then ezmlm-warn.
dir/moderator handles incoming message accept and reject requests for moderated lists. ezmlm-make sets up dir/moderator to invoke ezmlm-weed, ezmlm-moderate, ezmlm-archive, and ezmlm-clean.
To enable automatic digests for a mailing list, use the ezmlm-make -d switch or create the dir/digested file. To also enable the generation of digests at specific times dictated by mailed trigger messages, a digestcode should be specified in the dir/digestcode file. This can be done by specifying digestcode as a fifth argument to ezmlm-make when setting up the list. digestcode must be alphanumeric and is case-insensitive.
To generate trigger messages, use ezmlm-cron(1) as an interface to crond(8) or use crond directly.
ezmlm-get is able to create digests with a variety of different formats which may be specified on the command line for ezmlm-get or in the file dir/digformat.
dir/num contains the number of the last message processed by ezmlm-send, followed by ':' and a number that is increased by 1 for each 256 bytes of message body text processed. The latter number is used by ezmlm-tstdig to determine if a new digest is due.
dir/dignum contains the contents of dir/num at the time of the last regular digest creation, followed by a ':', followed by a timestamp. It is updated after each regular digest is sent.
dir/digissue contains the issue number of the last regular digest. It is incremented for each regular digest sent.
The following user crontab entry (all on one line) generates a digest of the list email@example.com at 1600 every day:
00 16 * * * /var/qmail/bin/qmail-inject list-dig.digestcode
Alternatively, ezmlm-cron can be used:
% ezmlm-cron -t 16:00 list@host digestcode
ezmlm-get can also be run from the shell: To generate a digest to list-digest@host from the list housed in ~joe/list:
% ezmlm-get ~joe/list
Like other ezmlm-get replies, digest can be sent in several formats. See ezmlm-get(1) for more info.
Even with subscription moderation, the user has to verify the request. This is to ensure that the user initiating the request really controls the address. ezmlm-manage options exist to disable the user handshake, which may be useful in some circumstances.
For standard moderation options, the moderators are by stored in a subscriber list in moddir/subscribers. By default moddir is dir/mod.
Moderators can be added and removed with:
ezmlm-sub dir mod moderator@host
ezmlm-unsub dir mod moderator@host
For subscription moderation, touch dir/modsub after adding moderator(s). For remote administration, touch dir/remote. If the contents of these files contain a subdirectory name, it is used as the name of the mod address list directory for subscription moderation. If both files exist and contain a subdirectory name, the dir/remote contents are ignored. Moderator addresses are stored as indicated in the SUBSCRIBERS section above. If no directory names are specified, the default, dir/mod, is used. In all cases, the named subscriber list must exist.
Sender confirmation is achieved by creating dir/confirmpost and moderation of posts is achieved by creating dir/modpost. In either case, modify dir/editor to invoke ezmlm-store. For sender confirmation, ezmlm-store stores the message in dir/mod/unconfirmed and sends a confirmation request to the sender. For moderation, ezmlm-store stores the message in dir/mod/pending and sends a moderation request to all moderators stored in mod. If moderation is enabled and dir/modpostonly exists, messages from non-moderators are rejected.
If neither dir/confirmpost nor dir/modpost exist, ezmlm-store posts messages directly (via ezmlm-send), and ezmlm-clean does nothing.
If dir/modpost contains a subdirectory name this directory is used as the mod subscriber list for message moderation. Moderators are stored in a subscriber list according to the SUBSCRIBERS section above. If no directory names are specified, the default, dir/mod, is used.
dir/confirmer is linked to dot-confirm-default and dir-discard-default. It handles replies for sender confirmation. dir/moderator is linked to dot-accept-default and dot-reject-default. It handles replies from the moderators.
In addition to a moderator list, the directories dir/mod/accepted, dir/mod/pending, dir/mod/rejected, and dir/mod/unconfirmed must exist. These directories contain the message moderation queue.
If dir/mod/modtime it determines the minimal time in hours that messages wait in the moderation queue, before they are returned to sender with the message in dir/text/mod-timeout.
If a -help command is sent for a moderator and dir/modsub or dir/remote exist, a more detailed help message stored in dir/text/mod-help will be sent together with the regular help. This text should not contain secrets. If dir/text/mod-help does not exist, dir/text/help will be sent.
If a -list command is sent for a moderator and dir/modsub or dir/remote exist, and either the dir/modcanlist file exists or the ezmlm-manage -l command line switch is specified, a subscriber list will be returned.
If an -edit.file command is sent for a moderator and dir/remote exist, and either the dir/modcanedit file exists or the ezmlm-manage -d or -e command line switches are specified, text/file is returned together with an ezmlm cookie. The remote administrator may return an edited version of the file, which will be stored, provided that the cookie is valid. See ezmlm-manage(1) for more info.
The subscription target address is the address that has requested subscription to or unsubscription from the list in ezmlm-manage. The same tag is used in ezmlm-store for the address to which a reply must be sent to accept the original post.
The subscription reply address is the address to which a reply must be sent to confirm a subscription in ezmlm-manage. The same tag is used in ezmlm-store for the address to which a reply may be sent to reject the original post.
For backwards compatibility, the lines !A and !R are replaced with the value of <#A#> and <#R#> respectively.
In addition to the substitions listed above, the tags <#1#> through <#9#> are used by certain messages for file names and other parameters specific to the message. The default messages in /etc/ezmlm/default/text/messages should have a complete set of messages with all parameters used.
dir/headeradd is a list of new header fields. ezmlm-send adds these fields to every outgoing message. ezmlm-send sets up dir/headeradd to add X-No-Archive: yes and Precedence:bulk.
If dir/headerreject exists, and the ezmlm-reject dir argument is specified, messages containing any of the listed headers are rejected.
If dir/mimekeep exists, ezmlm-send removes parts except those with corresponding content-types from composite MIME messages. Otherwise, if dir/mimeremove exists, ezmlm-send removes parts with the corresponding content-types. If the ezmlm-reject dir argument is specified, messages consisting only of disallowed content-types are rejected.
If dir/mimereject exists, and the ezmlm-reject dir argument is specified, simple MIME messages of these content-types, or composite MIME messages with any body part of these content-types are rejected.
If dir/sequence exists, the first line is added as a header to all outgoing messages, followed by a space and the message number. The message number is useful for archive retrievals, since some mail systems do not reveal the return-path to the user. NOTE: Sublists have their own message counter. Adding a sequence header from a sublists will give you the sublist message number which is different from the main list message number.
dir/prefix is a subject prefix. If this file exists, its contents are prefixed to the subject of the post in the outgoing message. The archived message is not processed. Attempts are made to not duplicate an existing prefix in replies. Think twice before using this option. A prefix takes unnecessary space on the subject line and most mail clients can easily filter on other headers, such as 'Mailing-List:'. If dir/prefix contains a single '#', this will be replaced by the message number. The use of this feature is inadvisable and violates internet mail standards. However, it is very popular in e.g. Japan. If you must use this feature, make sure you are aware that you may be causing problems to users, sublists, etc.
dir/text/trailer is a message trailer. If this file exists, it's contents are copied to the end of outgoing messages. Only lines terminated with new-line are copied. No trailer is copied to the archived version of the message.
List-ID: optional_text <unique_id.domain>
This header would result from a dir/listid file containing ``optional_text <unique_id.domain>''. See RFC 2919 at http://www.ietf.org/rfc/rfc2919.txt for more info.
The first lines of dir/outlocal and dir/outhost give the outgoing name of the mailing list. These are used by ezmlm-manage and ezmlm-send to construct sender addresses for outgoing messages.
If dir/sublist exists, this mailing list is a sublist, redistributing messages from a parent mailing list. The first line of dir/sublist is the name of the parent list. This affects the behavior of ezmlm-send.
If dir/qmqpservers exists, ezmlm-send and ezmlm-get will use qmail-qmqpc(1) to send posts and digests. Other mail will use the normal qmail mechanism. If qmail-qmqpc is modified correctly, server IP addresses listed one per line in dir/qmqpsevers will be tried in order, rather than the default servers specified in /var/qmail/control.
If dir/msgsize exists, it is assumed to contain ``max:min'', where ``max'' is the maximum size in bytes of an acceptable message body, and ``min'' the corresponding minimal size. Either will be ignored if zero or omitted. If the ezmlm-reject command line specifies the list directory, messages not meeting the size criteria are rejected.
If dir/charset exists, the first line is assumed to represent a valid MIME character set, which is used for all outgoing MIME messages sent by ezmlm-get and the message moderation programs. The character set string may be suffixed with ':' and 'Q' or 'B' to send all outgoing text (ezmlm messages, digest table-of-contents, moderation requests, etc) encoded in ``Quoted-Printable'' or ``base64'' encoding. By default, no encoding is done, which may result in the transmission of characters with the high bit set. When encoding is specified, trigger messages and other parts of the reply that should not be encoded are sent as separate MIME parts.
dir/lock is an empty file. Any program that reads or writes the subscriber list, or adds messages to the archive, locks dir/lock.
dir/Log is an advisory log of subscription and unsubscription actions. WARNING: Log is not protected against system crashes. Log entries may be missing or corrupted if the system goes down. There is Log for each of the accessory address databases as well. Thus, the log for digest subscribers is dir/digest/Log. If enabled, these logs can be retrieved by remote administrators (see ezmlm-manage(1)).
dir/copylines specifies how many lines from the body of the original request to copy into outgoing automatic responses. If this file is not present or is empty, a value of 0 is used. In any case, the entire header is copied.
dir/digest contains items specific for the digest list.
dir/digest/subscribers contains hash files of digest subscriber addresses.
dir/digest/Log, dir/digest/bounce, dir/digest/lockbounce, and dir/digest/lock have functions for the digest list that mirror that of the corresponding files in dir.
dir/digheaders may contain a list of headers to include in the "m" format digests. Headers should be listed one per line not including the colon.
dir/digcount, dir/digsize, and dir/digtime control when ezmlm-tstdig will allow ezmlm-get to create a digest message. dir/tstdig is a timestamp used temporarily by ezmlm-tstdig to coordinate digesting.
dir/archnum contains the number of the last message processed by ezmlm-archive. Normally, ezmlm-archive will process entries for messages from one above the contents of this file up to an including the message number in dir/num. The default ezmlmrc template sets up ezmlm-archive to run only if the dir/threaded file exists.
If dir/noreturnposts exists, ezmlm-clean will not return timed-out posts to their senders.
If dir/nosubconfirm exists, ezmlm-manage will not require confirmation from the subscription target before subscribing it. Similarly, if dir/nounsubconfirm exists, ezmlm-manage will not require confirmation from the unsubscription target before unsubscribing it.
If dir/modgetonly exists, ezmlm-get will only allow moderators to retrieve data from the archive, even if dir/public exists. If dir/subgetonly exists, ezmlm-get will only allow subscribers to retrieve data from the archive.
If dir/nowarn exists, no warnings of any kind are sent by ezmlm-warn.
dir/key is a binary file used to create confirmation codes. Anyone who can guess the contents of dir/key can forge subscription requests. ezmlm-make does not put much effort into making dir/key difficult to guess; for better security, you should add some more secure random data to dir/key.
dir/flags contains the option flags that were passed to ezmlm-make when the list was created or last edited. It is used by programs that generate email messages to select which sections in text messages should be output. This is a new file introduced in version 5. Prior to this, the flags were stored in the first line of the dir/config file, along with other data.
dir/ezmlmrc contains the path to the directory in which the original ezmlmrc file was found. It is used to create alternate paths for text files.