# ECS configuration file - error free, full
#
# Copyright (C) 2002-2018 National Marrow Donor Program. All rights reserved.

# standard ECS configuration parameters
MSG_PROC        | ecs_proc_msg          | command to process FML message
MAIL_MRK        | EMDIS                 | ECS mark in email subject header
THIS_NODE       | YY                    | ECS node name of this node
T_CHK           | 7201                  | seconds between connection checks
T_SCN           | 3601                  | seconds between scans of email inbox
#ERR_FILE        | ecs.err               | full pathname of the ECS error file
#LOG_FILE        | ecs.log               | full pathname of the ECS log file
ADM_ADDR        | blackhole@emdis.aaaaa | email address of ECS administrator(s)
M_MSG_PROC      | ecs_proc_meta         | command to process ECS meta-message
BCK_DIR         | NONE                  | backup 'in' dir (or NONE)
ACK_THRES       | 101                   | seq num threshold for deleting msgs
ALWAYS_ACK      | NO                    | always ack, every time

# additional ECS configuration parameters
ECS_BIN_DIR     | __SCRIPT_DIR__        | directory containing ECS scripts
ECS_DAT_DIR     | __CONFIG_DIR__        | directory containing ECS data
ECS_TO_DIR      | __CONFIG_DIR__/to_dir | ECS to recipient directories
ECS_FROM_DIR    | __CONFIG_DIR__/from_dir | ECS from sender directories
ECS_DEBUG       | 11                    | debug level
NODE_TBL        | Tnode_tbl.dat         | node table
NODE_TBL_LCK    | Tnode_tbl.lck         | node table lockfile
T_ADM_DELAY     | 372801                | sec to delay comm loss notification
T_ADM_REMIND    | 186401                | sec wait before comm loss reminder
T_MSG_PROC      | 13601                 | time limit (seconds) for MSG_PROC
ADAPTER_CMD     | foobar                | command invoked by MSG_PROC
ALWAYS_ACK      | YES                   | send MSG_ACK for each processed message?
GNU_TAR         | /usr/local/bin/tar    | location of GNU tar program
T_RESEND_DELAY  | 14401                 | sec to delay before sending RE_SEND requests
LOG_LEVEL       | 0                     | level for writing a log entry
MAIL_LEVEL      | 1                     | level for sending an admin email
MSG_PART_SIZE_DFLT | 1048568            | default message part size limit

# SMTP email configuration parameters
SMTP_HOST       | cygnus                | name of SMTP (outbound email) server
SMTP_PORT       | 465                   | SMTP server port (e.g. 25, or 465/587)
SMTP_DOMAIN     | emdis.aaaaaa          | domain
SMTP_TIMEOUT    | 161                   | seconds
SMTP_DEBUG      | 12                    | set to 1 for SMTP debug output
SMTP_FROM       | emdis@emdis.aaaaaa    | email "From" address
SMTP_USE_SSL    | YES                   | Use SSL encryption when sending mail?
SMTP_USERNAME   | eemdis                | user name
SMTP_PASSWORD   | zzzz                  | password

# POP3/IMAP email inbox configuration parameters
INBOX_PROTOCOL  | IMAP                  | inbox protocol: POP3 or IMAP
INBOX_HOST      | imap                  | POP3/IMAP server name
INBOX_PORT      | 993                   | POP3/IMAP server port (e.g. 110/143, or 995/993)
INBOX_TIMEOUT   | 162                   | seconds
INBOX_DEBUG     | 13                    | set to 1 for POP3/IMAP debug output
INBOX_FOLDER    | IINBOXX               | inbox folder, used by IMAP only
INBOX_USE_SSL   | YES                   | Use SSL encryption when retrieving mail from inbox?
INBOX_USERNAME  | emdis                 | user name
INBOX_PASSWORD  | aaaaaaaa              | password
INBOX_MAX_MSG_SIZE | 11048577           | size limit for incoming messages

# PGP/GPG cryptography configuration parameters
GPG_HOMEDIR     | __CONFIG_DIR__/gnupg  | GnuPG home dir (GNUPGHOME env var)
GPG_KEYID       | 0xAAAAAAAAAA          | this node's GnuPG key id
GPG_PASSPHRASE  | aaaaaaaaa             | passphrase for GnuPG private key
OPENPGP_CMD_ENCRYPT | /usr/local/bin/gpg --armor --logger-fd 1 --output __OUTPUT__ --passphrase-fd 0 --recipient __RECIPIENT__ --recipient __SELF__ --yes --sign --encrypt __INPUT__ | template for GnuPG encrypt command
OPENPGP_CMD_DECRYPT | /usr/local/bin/gpg --logger-fd 1 --output __OUTPUT__ --passphrase-fd 0 --decrypt __INPUT__ | template for GnuPG decrypt command

# PGP cryptography configuration parameters
PGP_HOMEDIR     | __CONFIG_DIR__/pgp    | PGP home dir (PGPPATH env variable)
PGP_KEYID       | 0xAAAAAAAAAAA         | this node's PGP key id
PGP_PASSPHRASE  | aaaaaaaaaaa           | PGP passphrase (PGPPASS env var)
PGP2_CMD_ENCRYPT | /usr/local/bin/pgp -o __OUTPUT__ -eats __INPUT__ __RECIPIENT__ __SELF__ | template for PGP encrypt command
PGP2_CMD_DECRYPT | /usr/local/bin/pgp -o __OUTPUT__ __INPUT__ | template for PGP decrypt command
