Created
September 1, 2018 21:08
-
-
Save bradymholt/f004b1f972edbdaffde6273ea6812951 to your computer and use it in GitHub Desktop.
rabbitmq-email config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{rabbitmq_email, [ | |
%% gen_smtp server parameters | |
%% see https://github.com/Vagabond/gen_smtp#server-example | |
{server_config, [ | |
[{port, 2525}, {protocol, tcp}, {domain, "geekytidbits.com"}, {address,{0,0,0,0}}] | |
]}, | |
%% how clients are authenticated; either 'false' or 'rabbitmq' (default) | |
{server_auth, false}, | |
%% whether STARTTLS shall be offered; either 'true' or 'false' (default) | |
{server_starttls, false}, | |
%% maps inbound email domains to vhosts and exchanges: [{email-domain, {vhost, exchange}}, ...} | |
{email_domains, | |
[{<<"geekytidbits.com">>, {<<"/">>, <<"email-in">>}} | |
]}, | |
%% outbound email queues: [{{vhost, queue}, email-domain}, ...] | |
{email_queues, | |
[{{<<"/">>, <<"email-out">>}, <<"example.com">>} | |
]}, | |
%% sender indicated in the From header | |
{email_from, <<"noreply">>}, | |
%% sender indicated in the SMTP from | |
{client_sender, "[email protected]"}, | |
%% gen_smtp client parameters | |
%% see https://github.com/Vagabond/gen_smtp#client-example | |
{client_config, [ | |
{relay, "smtp.example.com"} | |
]} | |
]} | |
]. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment