Use these scripts to get up and runing with:
- Direct Java Reference Implementation version 2.1.1
Everything runs on your cloud VM, including the ansible installer scripts. (Note that
ansible also supports an ssh-based remote configuraiton mode, where all the
installer scripts run elsewhere and are pushed the the VM when you specify
remote hosts and run ansible-playbook
.)
We'll focus on local mode, since it's simpler (and only requires a single machine).
sh ./run.sh
There are three short files you'll need to edit:
catchall: true
allows your Direct server to work in "catchall" mode, where Direct e-mail to*@yourdomain
will be handled automatically If catchall mode is disabled, your Direct server will only be able to receive messages to pre-configured users.
Update with hosts' IP addresses and path to your SSH keys.
Update with correct domain names you are using for this setup.
Update with settings for your particular setup.
In your domain's DNS, add two entries:
ns-test-a.amida-demo.com
(record type:A
, value:your first EC2 IP
)ns-test-b.amida-demo.com
(record type:A
, value:your second EC2 IP
)test-a.amida-demo.com
(record typeNS
, value:ns-test-a.amida-demo.com
)test-b.amida-demo.com
(record typeNS
, value:ns-test-b.amida-demo.com
)
With those two entries, you should be up and running!
So you've got the Direct server installed. Have you uploaded your anchor
(/opt/direct/certificates/certificate.pem
) to the BlueButton+ Trust Bundle?
Upload at: https://secure.bluebuttontrust.org/submitanchor.aspx
Now you can try...
- Visit http://sitenv.org/web/sit/direct-transport
- Upload your
certificate.der
file - Send a message to yourself (note: use
{anything-you-want}@direct.yourdomain.com
-- anything exceptcatchall@direct.yourdomain.com
!), attaching one of the sample documents (or attach your own -- e.g. from http://github.com/chb/sample_ccdas)
Your server's logs are at:
/var/log/upstart/direct-james.log
mail server log/var/log/upstart/direct-dns.log
DNS server log/var/log/upstart/direct-tomcat.log
Config server log
You can see all the messages that have landed in your inbox using an email client like Thunderbird. Configure it to talk to your direct server via:
Server: your direct_settings.yml (direct_domain_name)
- POP Port: 995
- SMTP Port: 465
- Security: SSL/TLS
- Authentication: Normal Password
- username: your direct_settings.yml (email_users.username)
- password: your direct_settings.yml (email_users.password)