<p></p>
<p>Thank you for the help! I got it to work with the following lines in my Dockerfile:</p>
<div class="highlight highlight-source-shell"><pre><span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span></span>
<span class="pl-s">Rails.application.configure do</span>
<span class="pl-s">  # Override the default settings loaded in config/initializers/action_mailer.rb.</span>
<span class="pl-s">  config.after_initialize do</span>
<span class="pl-s">    ActionMailer::Base.delivery_method = :smtp</span>
<span class="pl-s">    ActionMailer::Base.smtp_settings = {</span>
<span class="pl-s">      :address => 'smtp.mailgun.org',</span>
<span class="pl-s">      :port => 587,</span>
<span class="pl-s">      :domain => 'mywebsite.com',</span>
<span class="pl-s">      :user_name => '<span class="pl-smi">${OSM_MAILGUN_USERNAME}</span>',</span>
<span class="pl-s">      :password => '<span class="pl-smi">${OSM_MAILGUN_PASSWORD}</span>',</span>
<span class="pl-s">      :authentication => 'plain',</span>
<span class="pl-s">      :enable_starttls_auto => true,</span>
<span class="pl-s">    }</span>
<span class="pl-s">  end</span>
<span class="pl-s">end<span class="pl-pds">"</span></span> <span class="pl-k">>></span> <span class="pl-s"><span class="pl-pds">"</span>config/environments/production.rb<span class="pl-pds">"</span></span></pre></div>
<p>It feels a bit weird to patch the production.rb file, but I couldn't figure out a better way.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/2571#issuecomment-605548657">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLO4CLY4L6RSUWECSW3RJ2W47ANCNFSM4LVLGRPQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLLXUAW6FXU5XWWGIK3RJ2W47A5CNFSM4LVLGRP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEQL7A4I.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2571#issuecomment-605548657",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2571#issuecomment-605548657",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>