<dvn>
^^ from hackernews... thought it might be interesting to some of you
<dvn>
potentially useful
paroneayea has quit [Read error: Connection reset by peer]
paroneayea has joined #sandstorm
jadewang has joined #sandstorm
jadewang has quit [Ping timeout: 244 seconds]
logbot__ has quit [Ping timeout: 246 seconds]
au has quit [Ping timeout: 256 seconds]
logbot__ has joined #sandstorm
mort___ has joined #sandstorm
mort___ has left #sandstorm [#sandstorm]
jadewang has joined #sandstorm
jadewang has quit [Read error: No route to host]
jadewang has joined #sandstorm
amyers has quit [Ping timeout: 246 seconds]
<dwrensha>
I'm trying to set up outgoing email on my Sandstorm server.
<dwrensha>
I just got a mailgun account...
<dwrensha>
I'm confused about what should go in MAIL_URL in sandstorm.conf
<dwrensha>
mailgun gives me an "SMTP Hostname", an "SMTP Login" and a password
<dwrensha>
but the login is in the form of an email address
<jadewang>
(kentonv: "I hit shuffle. ¯\(°_o)/¯ ")
<jadewang>
(hero starts playing)
<dwrensha>
so if I set "MAIL_URL=smtp://<login>:<password>@<hostname>", there end up being two @s in the URL
<dwrensha>
which seems wrong
Isla_de_Muerte is now known as NwS
<XgF>
You probably need to urlencode the @ in the username?
<XgF>
But in any case, I'm not sure why you wouldn't just setup an MDA on your server
<dwrensha>
what is an MDA?
<XgF>
Mail Delivery Agent
<dwrensha>
I don't know. That sounds simpler!
<XgF>
On most distros just installing some SMTP server will leave it suitably configured for outgoing mail
<XgF>
I should install Postfix on my server and see what config I need to do to use it with Sandstorm
<XgF>
(I look forward to the day Sandstorm has mail drivers)
jksonc has quit [Read error: Connection reset by peer]
mquandalle has quit [Read error: Connection reset by peer]
fkautz has quit [Read error: Connection reset by peer]
<geofft>
well, it sorta depends on whether you want to send mail from your host directly, or via a third party
<geofft>
if your server has a dynamic IP, or doesn't reverse-resolve, or something, lots of systems will reject mail from you
<geofft>
(although you _can_ tell Postfix to just route everything through a third-party mail server, with authentication... but that may be overkill)
<XgF>
Mail is tricky in general
<XgF>
Just routing everything through one mail server doesn't work if your users want to be able to, say, send E-Mails as-if from their @gmail.com addresses
<dwrensha>
heh, I continue to get "Mailgun is not loving your login or password"
mquandalle has joined #sandstorm
<XgF>
(I really look foward to when I can host my E-Mail using Sandstorm, and hope that it is soon)
jksonc has joined #sandstorm
fkautz has joined #sandstorm
<dwrensha>
now I'm really confused. why do we have both MAIL_URL and db.settings.smtpUrl?
<dwrensha>
Ok, URL-encoding the "@" made it work.
<kentonv>
dwrensha: MAIL_URL existed first, but db.settings.smtpUrl is the new preferred setting which is configurable via the admin UI.
<dwrensha>
it seems that MAIL_URL is still required
<kentonv>
hmm, db.settings.smtpUrl should take priority
<dwrensha>
ok, I will either fix it or file a bug
ragesoss has quit [Ping timeout: 255 seconds]
ragesoss has joined #sandstorm
<paulproteus>
I'm amazed at how many bugs I write. I love automated test suites.
<phildini>
To paraphrase alex gaynor: "I'm a software engineer, which means I write bugs for a living"