EmailQ
EmailQ is an open source email server compatible with Amazon SES APIs
Emailq Server Installation
Step 1 : Create .emailq file and add the following
## Postal SMTP SMTP_HOST=smtp.gmail.com SMTP_SECURE=false SMTP_IGNORETLS=true SMTP_PORT=587 SMTP_AUTH_USER='majeshpv@gmail.com' SMTP_AUTH_PASS='screat'
Step 2 : Install node version 8.1.11 or greater
yum install nodejsnpm install -g nn lts
Step 4 : Install emailq.
npm install -g emailq
Step 5: Run emailq manually
emailq
Step 6: Run emailq on systemd
cd /etc/nginx/conf.d/sudo nano ses.example.com.conf Paste the following server server # test nginx settings sudo nginx -tsudo systemctl restart nginx.sudo systemctl status nginx.
Step 7: Create systemd unit: Systemd will keep emailq up and running
cd /etc/systemd/systemsudo nano emailq.service Paste the following code [Unit]Description=EmailQAfter=syslog.target [Service]WorkingDirectory=/home/mail.google.comExecStart=/usr/local/bin/node node_modules/emailq/bin/emailqExecReload=/usr/bin/kill -HUP $MAINPIDRestart=alwaysStandardOutput=syslogStandardError=syslogSyslogIdentifier=emailqUser=Group=gloryque [Install]WantedBy=multi-user.target # to check unit status sudo systemctl status emailq # start emailq on startup sudo systemctl enable emailq # start emailq now sudo systemctl start emailq # check emailq running status sudo systemctl status emailq ## to check fo error journalctl -u emailq -fjournalctl -u emailq -l