Setup Configuration Help
Closed this issue · 1 comments
I'm trying to set up a mailsac test app on my local winginx server, but don't have any node.js experience yet and thus it doesn't run. All I see is "Node.js basic web application" when navigating to my mailsec.dev url.
When you mention to "just update the config.js", is this really all there is to it? Could you possibly post your example config file or provide a small tutorial to get me started on it.
My nodjs.conf currently points to: server = home/mailsac.dev\servermailsac.js. Is this correct?
Many thanks.
@ginmartini I'm not really sure what mailsac.dev
refers to, sorry. I don't think the thing you are seeing is mailsac.
a more complete setup checklist for non-Node.js devs is as follows:
requirements
- Node.js
- MongoDB
setup
git clone https://github.com/ruffrey/mailsac
cd mailsac && npm install
Edit https://github.com/ruffrey/mailsac/blob/master/config.js and definitely change the MongoDB settings.
There are two applications.
app.js
- the mailsac UIsmtp.js
- the smtp server
In separate terminal windows:
node app.js
to run the UI
node smtp.js
to run smtp server
This was never tested this on windows. I have no idea what things windows does with email ports. Most node hosting companies (appfog, nodejitsu, etc) don't really support listening on smtp ports so you have to host it on VPS. There are a ton of tools like stagecoach or paastor for deploying to VPS.
If you're running it only on your local machine, you can have the smtp server listen on different ports than the normal ones.
If you are deploying to VPS, it's got some shell scripts in ./scripts/
for setting up on ubuntu or debian linux, but you have to still do some work. Look at scripts/cfgserver.sh
, though it's probably outdated. You have make sure other stuff isn't using the smtp ports (25
and 587
), or smtp.js
won't start.
Just a brain dump. Haven't used mailsac in a bit. Hope that helps somewhat.