

You can simply replace default Nginx configuration file or create a new file. Just copy this file to your Nginx server. Postal provides a Nginx configuration file. || Command bundle exec rake postal:requeuer || Command bundle exec rake postal:smtp_server || Command bundle exec rake postal:worker || Command bundle exec puma -C config/puma.rb Make sure all the services are in running stage. You will find following 5 services there. To make sure everything is working properly use the following command. User has been created with e-mail address Step 9 – Check Postal Running StatusĪt this stage, your have a running Postal server. This tool is usually only used to create your initial admin user. $ postal make-userĮnter the information required to create a new Postal user. This account will be used latest to login on Potal dashboard. Now run the postal make-user user to create first Postal administrator account. $ postal bundle /opt/postal/app/vendor/bundle Now, switch to postal user and complete all the installations with following commands.
#POSTAL 4 COMMANDS INSTALL#
Install them both: $ sudo gem install procodile bundler To configure postal, you’ll need to have bundler and procodile installed on your system. $ ln -s /opt/postal/app/bin/postal /usr/bin/postal $ sudo -i -u postal git clone /opt/postal/app And add a soft link of the Postal binary file under /usr/bin/ directory to access command globally.
#POSTAL 4 COMMANDS CODE#
Now, clone the postal source code on Github using following command. $ sudo setcap 'cap_net_bind_service=+ep' /usr/bin/ruby2.3 $ sudo useradd -r -m -d /opt/postal -s /bin/bash postal Create a account named postal with following command. Let’s start with the user creation for Postal setup. $ rabbitmqctl set_permissions -p /postal postal ".*" ".*" ".*"Īt this point, You have completed all requirements for Postal installation. In this step, add a VirtualHost in RabbitMQ server and create a user account to access it with application. Mysql> GRANT ALL ON `postal-%`.* TO IDENTIFIED BY "passw0rd" Mysql> GRANT ALL ON `postal`.* TO IDENTIFIED BY "passw0rd" Mysql> CREATE DATABASE postal CHARSET utf8mb4 COLLATE utf8mb4_unicode_ci Also, add a grant that permits Postal to manage all databases that are prefixed with postal. $ sudo apt-get install erlang erlang-nox rabbitmq-serverįirst, create a database in your MySQL server, Also create a database user for accessing database with the Postal mail server. This will install all of its dependencies as well. Now, you can install RabbitMQ Server package on your system using the following command. $ echo 'deb testing main' | sudo tee /etc/apt//rabbitmq.list $ sudo dpkg -i erlang-solutions_1.0_all.debĪlso enable the RabbitMQ server PPA in your system. Use following commands enable Erlang packages PPA. You also needs to install RabbitMQ server on your system for messaging. $ sudo apt-get install -y ruby2.3 ruby2.3-dev Now, use the below commands for installing Ruby 2.3 on system. $ sudo apt-add-repository ppa:brightbox/ruby-ng -y First use following commands to add Ruby languege PPA in your system. $ curl -sL | sudo -E bash -Īfter installing Node.js, install Ruby version 2.3 or higher version on your system. Use the following commands to install Nodejs 7 on your system or visit this tutorial to install latest available version. Now, install the latest Nodejs on your system. $ sudo apt-get install git nginx mariadb-server build-essential libmysqlclient-dev $ sudo apt-get install python-software-properties software-properties-common

Use below commands to install Git, MariaDB(MySQL) database server and Nginx web server with some other dependencies.

This tutorial will help you to install them.įirst, start with the initial package installations on your system. Prerequisitesįor installation of Postal mail server on your system, you must have following prerequisites installed on your system. You can also try the same Debian and Linuxmint and share your feedback in comments.

This tutorial will help you to install Postal Mail server on Ubuntu 16.04 & 14.04 LTS. You can easily host Postal mail server on your system and use this as SMTP server for sending application emails, bulk emails, newsletters etc. Postal can be a better alternative of Sendgrid, Mailchimp, Mailgun and other similar SMTP servers. Postal is a complete and fully featured mail server for use by websites & web servers.
