Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Deployability fixes #12

Merged
merged 2 commits into from

2 participants

@rfk
Owner
rfk commented

These are a couple of tweaks I had to make in order to stand up a new instance of restmail.net (currently running at restmail.lcip.org)

@6a68 6a68 merged commit 4e4ac56 into from
@6a68 6a68 deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 5, 2013
  1. @rfk
  2. @rfk

    Update some dependencies

    rfk authored
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 3 deletions.
  1. +3 −1 emailserver.js
  2. +2 −2 package.json
View
4 emailserver.js
@@ -3,6 +3,8 @@ var smtp = require('smtp-protocol'),
MailParser = require("mailparser").MailParser,
config = require("./config");
+const HOSTNAME = process.env['EMAIL_HOSTNAME'] || "restmail.net";
+
// create a connection to the redis datastore
var db = redis.createClient();
@@ -10,7 +12,7 @@ function loggit(err) {
console.log("ERROR (oh noes!):", err);
}
-var server = smtp.createServer('restmail.net', function (req) {
+var server = smtp.createServer(HOSTNAME, function (req) {
['rcpt', 'mail', 'to', 'from'].forEach(function(event) {
req.on(event, function () {
var ack = arguments[arguments.length - 1];
View
4 package.json
@@ -6,14 +6,14 @@
"dependencies": {
"express": "2.5.0",
"redis": "0.7.1",
- "smtp-protocol": "0.2.1",
+ "smtp-protocol": "0.3.0",
"mailparser": "0.2.26"
},
"optionalDependencies": {
"hiredis": "0.1.14"
},
"devDependencies": {
- "awsbox": "0.2.16",
+ "awsbox": "0.4.5",
"should": "1.1.0",
"mocha": "1.4.1"
},
Something went wrong with that request. Please try again.