Build Postal SMTP Server & Send Bulk Emails Step by Step on Ubuntu 20.04
Building a Postal SMTP server to send bulk emails is a good choice for email marketers. Postal is very powerful and backed by a large community of developers. It is an open-source mail server script written in JavaScript and Ruby. It can be used to build in-house SMTP servers just like Mailgun, Sendgrid, Mailchimp, etc.
Postal installation is not very straightforward. The process is fairly complex. It’s because Postal needs several packages to be installed beforehand, it can be used. I have tried to make it as simple as possible.
Requirement for Postal SMTP server
- A domain name from Namecheap or Namesilo
- A VPS or cloud with a minimum of 4 GB RAM and 2 vCPU
- Operating System: Ubuntu 20.04 or Ubuntu 18.04 or CentOS 7
I am using Contabo for the purpose of demonstration.
Initial Setup
In order to start with installation, you will need to connect to the server. If you are on you have to get an SSH client for this purpose. One such SSH client is Putty. But if you are on Linux or Mac, just open the terminal and type ssh@xx.x.x.xxx where xx.x.x.xxx is your server IP address.
First of all switch to root user
sudo -i
After that update and upgrade your Ubuntu
apt update -y
apt upgrade -y
Next setup hostname. Replace “inlearn.in” with your domain name.
hostnamectl set-hostname mail.inlearn.in
Updating DNS records
Login to the domain registrar and create A record for mail.yourdomain.com
Now let’s begin with the installation.
Note: This is a new installation guide. If you are looking for an old installation guide scroll down.
Installing Docker and Docker-Compose
Recently postal team switched to docker mode to make installation easier for the end-users. Therefore we need to install Docker and Docker-Compose first. I already have discussed what is docker, docker-compose & installation steps in detail. Feel free to read the article to have a clear understanding of docker.
Installing Docker
First of all, set a few packages to set up the Docker repository
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y
Next, add Docker’s official GPG key.
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
Now, you can install the Docker repository using the following commands
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Next update the system software
sudo apt-get update -y
Finally, run the following command to install Docker Engine and containerd.
sudo apt-get install docker-ce docker-ce-cli containerd.io
Installing Docker-Compose
First of all download the current stable release of Docker Compose:
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Next, update the permission to binary
sudo chmod +x /usr/local/bin/docker-compose
Finally, test the docker-compose installation
docker-compose --version
You will see the docker-compose version. If you see anything else this means something has gone wrong.
Installing Additional Prerequisites for Postal SMTP
After installation of Docker and Docker-compose, you need to install a few other packages like Git, MariaDB, RabbitMQ, etc.
So, let’s install them one by one.
First, install git and git curl
apt install git -y
apt install git curl jq
Next clone the postal helper repository
git clone https://postalserver.io/start/install /opt/postal/install
sudo ln -s /opt/postal/install/bin/postal /usr/bin/postal
Installing MariaDB
Now, you can install MariaDB in the docker container
docker run -d \
--name postal-mariadb \
-p 127.0.0.1:3306:3306 \
--restart always \
-e MARIADB_DATABASE=postal \
-e MARIADB_ROOT_PASSWORD=postalpassword \
mariadb
Installing RabbitMQ
RabbitMQ is necessary to process messages and distribute the loads
To install it, run the following commands
docker run -d \
--name postal-rabbitmq \
-p 127.0.0.1:5672:5672 \
--restart always \
-e RABBITMQ_DEFAULT_USER=postal \
-e RABBITMQ_DEFAULT_PASS=password \
-e RABBITMQ_DEFAULT_VHOST=postalvhost \
rabbitmq:3.8
Now we have installed all the prerequisite packages, it’s time to install Postal
Installing Postal
The postal repository, you installed earlier, is capable of generating some configuration files to use
Run the following command.
postal bootstrap mail.inlearn.in
The above command generates 3 files. Out of which postal.yml is of our interest.
You need to edit the postal.yml and make changes. But before that install an editor. I suggest installing nano.
apt install nano -y
Now to edit postal.yml run the following command
nano /opt/postal/config/postal.yml
You will see output something like this
# The host that the management interface will be available on host: mail.inlearn.in # The protocol that requests to the management interface should happen on protocol: https web_server: # Specify configuration for the Postal web server bind_address: 172.105.33.83 port: 5000 smtp_server: # Specify configuration to the Postal SMTP server port: 25 logging: # Specify options for the logging stdout: true main_db: # Specify the connection details for your MySQL database host: 127.0.0.1 username: root password: postal database: postalpassword message_db: # Specify the connection details for your MySQL server that will be house the # message databases for mail servers. host: 127.0.0.1 username: root password: postalpassword prefix: postal rabbitmq: # Specify connection details for your RabbitMQ server host: 127.0.0.1 username: postal password: password vhost: postalvhost dns: # Specify the DNS records that you have configured. Refer to the documentation at # https://github.com/atech/postal/wiki/Domains-&-DNS-Configuration for further # information about these. mx_records: - mail.inlearn.in smtp_server_hostname: mail.inlearn.in spf_include: spf.mail.inlearn.in return_path: rp.mail.inlearn.in route_domain: routes.mail.inlearn.in track_domain: track.mail.inlearn.in smtp: # Specify an SMTP server that can be used to send messages from the Postal management # system to users. You can configure this to use a Postal mail server once the # your installation has been set up. host: 127.0.0.1 port: 2525 username: # Complete when Postal is running and you can password: # generate the credentials within the interface. from_name: Postal from_address: postal@inlearn.in rails: # This is generated automatically by the config initialization. It should be a random # string unique to your installation. secret_key: b73a7e04571431c601d19a7688418eb395d059c1ada525dcfd337e978236be759e278367fb7c6773be625265d3d235ee98b4f8405957e4bbd1c4001f367442bf531843f690a1918626179bf297e31d5cd268c2f33339afd19b17ce901a3832bb9a8107f04bf1b702a4da16096141ed5c46cee3f739d3adabf89fa3cfd91f00cf
Cross-check your config file and then save and close the file with CTRL + X.
Initializing Database
Initializing Database is super easy, just execute the following command and you will see database tables were getting created in the output.
postal initialize
After that, it’s time to build postal
postal make-user
You will be asked for the email id, name, and password of the admin user. Type the answer and then go to the next step.
Starting & Running Postal
Starting and running postal is also super easy. Just run the following command.
postal start
You can check the status of postal
postal status
Installing Caddy
This is a new feature added by the Postal team to install SSL automatically.
docker run -d \
--name postal-caddy \
--restart always \
--network host \
-v /opt/postal/config/Caddyfile:/etc/caddy/Caddyfile \
-v /opt/postal/caddy-data:/data \
caddy
Now you can go to http://mail.yourdomain.com:5000
and log in using admin credentials. You will see the admin page something like this.

In, the next article we will learn to create an organization, domain management, SMTP creation, etc.
##########################################################################################
Old installation guide
Installation and Configuration of MariaDB
First of all, install the MariaDB database on your server.
apt-get install mariadb-server libmysqlclient-dev -y
After installing MariaDB, it’s time to do some configuration to MariaDB
mysql_secure_installation
Answer all the questions as shown below:
Enter current password for root (enter for none):
Set root password? [Y/n]: N
Remove anonymous users? [Y/n]: Y
Disallow root login remotely? [Y/n]: Y
Remove test database and access to it? [Y/n]: Y
Reload privilege tables now? [Y/n]: Y
Next login to MariaDB to create mysql database
mysql -u root -p
Enter your root password, then create a database and user for Postal. Here I am creating database name “postal” and database user “postaluser”. Also, replace postaluser password “your_password” with a password of your choice.
CREATE DATABASE postal CHARSET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'postaluser'@'localhost' IDENTIFIED BY 'your_password';
Next, grant all the privileges to the postal database:
GRANT ALL ON postal.* TO 'postaluser'@'localhost';
GRANT ALL PRIVILEGES ON `postal-%`.* to `postaluser`@`localhost` IDENTIFIED BY "password";
After that save and exit from the MariaDB shell
FLUSH PRIVILEGES;
QUIT;
Installing Ruby
It’s time to install Ruby on the server. By default, Ruby is not available in the Ubuntu 18.04 default repository. Therefore, we need to add Ruby repository first.
apt-get install software-properties-common -y
apt-add-repository ppa:brightbox/ruby-ng
Next, update the repository and install the Ruby.
apt-get update -y
apt-get install ruby2.6 ruby2.6-dev build-essential -y
Install RabbitMQ
Now we need to install RabbitMQ for message queueing. For that, we need to install few dependencies.
apt-get install curl gnupg debian-keyring debian-archive-keyring apt-transport-https -y
Add signing keys and few repositories
sudo apt-key adv --keyserver "hkps://keys.openpgp.org" --recv-keys "0x0A9AF2115F4687BD29803A206B73A36E6026DFCA"
curl -1sLf https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/gpg.E495BB49CC4BBE5B.key | apt-key add -
curl -1sLf https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/gpg.9F4587F226208342.key | apt-key add -
Now we need to add apt repositories maintained by Team RabbitMQ
sudo tee /etc/apt/sources.list.d/rabbitmq.list <<EOF
deb https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu bionic main
deb-src https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu bionic main
deb https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu bionic main
deb-src https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu bionic main
EOF
After that update the repository and install Erlang.
apt-get update -y
apt-get install -y erlang-base \
erlang-asn1 erlang-crypto erlang-eldap erlang-ftp erlang-inets \
erlang-mnesia erlang-os-mon erlang-parsetools erlang-public-key \
erlang-runtime-tools erlang-snmp erlang-ssl \
erlang-syntax-tools erlang-tftp erlang-tools erlang-xmerl
At last, install RabbitMQ.
apt-get install rabbitmq-server -y --fix-missing
Now we have RabbitMQ installed, let’s check the status of RabbitMQ
systemctl status rabbitmq-server
After that we need to create RabbitMQ vhost and user for postal. Simply run the following command:
rabbitmqctl add_vhost /postal
rabbitmqctl add_user postal password
rabbitmqctl set_permissions -p /postal postal ".*" ".*" ".*"
Installing Nodejs
By default, the latest version of Nodejs is not available in the Ubuntu 18.04 default repository. Therefore, add the repository for that first.
curl -sL https://deb.nodesource.com/setup_12.x | bash
Next install it.
apt-get install nodejs -y
Installing Postal
Before installing Postal, you will need to create a user for postal mail server on Ubuntu.
useradd -r -m -d /opt/postal -s /bin/bash postal
Now, enable ruby to listen on web ports.
setcap 'cap_net_bind_service=+ep' /usr/bin/ruby2.6
After that, install all the required gems with the following command:
gem install bundler
Next, install procodile with gem:
gem install procodile
Finally, install nokogiri with gem:
gem install nokogiri -v '1.7.2'
Install git with the following command
apt install git -y
Now, create a directory structure for Postal. Here all the files will be kept related to Postal
mkdir -p /opt/postal/app
It’s time to download the latest version of Postal.
wget https://postal.atech.media/packages/stable/latest.tgz
Once the download is completed, extract the downloaded file with the following command:
tar zpxvf latest.tgz -C /opt/postal/app
Next, change ownership of postal directory.
chown -R postal:postal /opt/postal
Now, create a symlink for Postal binary
ln -s /opt/postal/app/bin/postal /usr/bin/postal
After that, install all the required dependencies with the following command:
postal bundle /opt/postal/vendor/bundle
If above steps fails and you get the error, then execute the following command. This error is because mimemagic got updated.
cd /opt/postal/app
bundle update mimemagic
bundle install
cd ~
Next, generate Postal Configuration files with the following command:
postal initialize-config
Now, open Postal configuration file and edit it to reflect correct information:
nano /opt/postal/config/postal.yml
Make the following changes as per your environment:
web: host: postal.example.com # The protocol that requests to the management interface should happen on protocol: https main_db: # Specify the connection details for your MySQL database host: localhost username: postal password: password database: postal message_db: # Specify the connection details for your MySQL server that will be house the # message databases for mail servers. host: localhost username: postal password: password prefix: postal rabbitmq: # Specify the connection details for your RabbitMQ server. host: 127.0.0.1 username: postal password: password vhost: /postal dns: # Specifies the DNS record that you have configured. Refer to the documentation at # https://github.com/atech/postal/wiki/Domains-&-DNS-Configuration for further # information about these. mx_records: - mx.postal.example.com smtp_server_hostname: postal.example.com spf_include: spf.postal.example.com return_path: rp.postal.example.com route_domain: routes.postal.example.com track_domain: track.postal.example.com smtp: # Specify an SMTP server that can be used to send messages from the Postal management # system to users. You can configure this to use a Postal mail server once the # your installation has been set up. host: 127.0.0.1 port: 2525 username: # Complete when Postal is running and you can password: # generate the credentials within the interface. from_name: Postal from_address: postal@yourdomain.com
Save and close the file with CTRL + X. Then, initialize database with the following command:
postal initialize
Next, you will need to create a admin user for Postal.
postal make-user
Answer all the questions as shown below:
Postal User Creator
Enter the information required to create a new Postal user.
This tool is usually only used to create your initial admin user.
E-Mail Address : admin@example.com
First Name : Admin
Last Name : Postal
Initial Password: : *********
User has been created with e-mail address admin@example.com
Finally, start the Postal application.
postal start
Now, check the status of Postal
postal status
Just in case, if you like to stop postal service, you can do so by
postal stop
Create Systemd Service file for Postal
Next, you will need to create a systemd service file to manage Postal service. This can be done with the following command:
nano /etc/systemd/system/postal.service
Add the following lines:
[Unit]
Description=Postal Mail Platform
After=mysql.service rabbitmq-server.service
Wants=mysql.service rabbitmq-server.service
[Service]
ExecStart=/usr/bin/postal start
ExecStop=/usr/bin/postal stop
ExecReload=/usr/bin/postal restart
User=postal
Restart=on-failure
Type=forking
[Install]
WantedBy=mysql.service rabbitmq-server.service
Save and close the file. Then, reload the systemd with the following command:
systemctl daemon-reload
Next, start Postal service and enable it to start on boot with the following command:
systemctl start postal
systemctl enable postal
You can check the status of Postal service with the following command:
systemctl status postal
Install and Configure Nginx
Next, you will need to install Nginx to access Postal mail server. First, install Nginx with the following command:
apt-get install nginx openssl -y
Next, copy Nginx configuration file with the following command:
cp /opt/postal/app/resource/nginx.cfg /etc/nginx/sites-available/default
Next, create a self-signed SSL certificate with the following command:
mkdir /etc/nginx/ssl/
openssl req -x509 -newkey rsa:4096 -keyout /etc/nginx/ssl/postal.key -out /etc/nginx/ssl/postal.cert -days 365 -nodes
Answer all the questions as shown below:
Generating a 4096 bit RSA private key
...............................++
.................++
writing new private key to '/etc/nginx/ssl/postal.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:IN
State or Province Name (full name) [Some-State]:Bihar
Locality Name (eg, city) []:Patna
Organization Name (eg, company) [Internet Widgits Pty Ltd]:IT
Organizational Unit Name (eg, section) []:IT
Common Name (e.g. server FQDN or YOUR name) []:Dhiraj
Email Address []:admin@example.com
Next, open the Nginx default virtual host file and define your domain:
nano /etc/nginx/sites-available/default
Here, you need to make the following changes:
server_name postal.example.com;
Save and close the file. After that, restart Nginx service with the following command:
systemctl restart nginx
Access Postal Web Interface
Now, open your web browser and type the URL https://mail.yourdomain.com
. You will be redirected to the admin page. Login with email id and password.

After that, you will postal dashboard.

In, next article we will learn to create organization, domain management and SMTP creation, etc.
Video Lesson
Conclusion
Installing Postal is somewhat complex procedure. Nonetheless, it’s worth to give it a try considering the Postal features.
I totally love your tutorial, you saved me from allt of stress, thank you.. i was able to spin up mine.
Can you update the content with a link to your GitHub for the DNS config
How can i install postal to send 100k + emails by using Ips rotation
You can install postal following this guide and video. But for sending 100k you need to get few IPs to rotate. Let me know if you need my help.
Thanks for your reply. I bought several ips from contabo. I have followed your video and install postal successfuly. I have tried to Build a new mail server in postal, after adding a server name, I click on the build server button, it was just loading and loading without building any server. I can give you my postal login details, so you can see that my postal cannot build mail server
Seems like an issue with mysql connection or perhaps wrong username and password to rabbitmq. Can you cross-check credentials that you entered in postal.yml
If issue doesn’t resolve email me the credentials at contact@inguide.in
Hi Sir
I have the same error where I install postal also create organization successfully where i try to build a mail server just loading and loading. i have already check yml config file but don’t get any error but in postal status, i receive the below status msg, Please help
postal_cron_1 /docker-entrypoint.sh post … Up
postal_requeuer_1 /docker-entrypoint.sh post … Up
postal_smtp_1 /docker-entrypoint.sh post … Exit 1
postal_web_1 /docker-entrypoint.sh post … Up
postal_worker_1 /docker-entrypoint.sh post … Up
Check postal configuration file.
Why do you think i got this error?sudo apt-get install ruby2.3 ruby2.3-dev build-essential -y
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package ruby2.3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package ruby2.3-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ‘ruby2.3’ has no installation candidate
E: Package ‘ruby2.3-dev’ has no installation candidate
I have updated the article to include ruby 2.6
Can you try again with an updated set of commands?
Also, do let me know the outcome.
Cheers 😀
Thank you very much it does work
Yes, unless your VPS from another world it should work. I have tested it on Ubuntu 18.04.
I got this error again when using this commend:
sudo gem install nokogiri -v ‘1.7.2’
Building native extensions. This could take a while…
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.7.0/gems/nokogiri-1.7.2/ext/nokogiri
/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20210424-238639-mr7f7o.rb extconf.rb
checking if the C compiler accepts … yes
Building nokogiri using packaged libraries.
Using mini_portile version 2.1.0
After that, install all the required dependencies with the following command:
1. postal bundle /opt/postal/vendor/bundle
“Could not find mail-2.7.2.edge in any of the sources”
Please help me
I have updated the command. Please try again and let me know if the issue persists.
Hi, thank you for your tutorials.
I successfully install and use postal to send email from mautic via smtp (mautic on separated vps).
But there is one problem left, i already use 8gb ram vps and the sending speed only around 50 emails/minute.
I already increase the postal worker and do some mysql tuning that I found on postal github.
Is there anything I could do to fix this? At least i need 500 emails/minute rate. I see on github there is a person who could send 300 emails/min with 4gb vps. So in my opinion I could get better performance.
Before this I am using amazon ses via smtp with same mautic and there is no problem with sending speed rate.
Thank you.
postal make-user gives this error, how to solve this pl.
1: from /opt/postal/vendor/bundle/ruby/2.6.0/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in `initialize’
/opt/postal/vendor/bundle/ruby/2.6.0/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in `connect’: Access denied for user ‘postal’@’localhost’ (using password: YES) (Mysql2::Error::ConnectionError)
I will investigate into the issue and will update the article accordingly.
I really love your article. Very nice!
I have a question:
I can only access my Postal server by using ‘http//:mail.mydomain.com:5000’ instead of the correct way is ‘https://mail.mydomain.com’ as your guide.
Kindly help me with how to fix it?
Thanks a lot!
Thanks for pointing it out, I have updated the article. If you like to access it to HTTP then use port 80 and for HTTPS use port 443.
Let me know if it didn’t work.
May I know how to access Postal Server to ‘https://mail.mydomain.com’ not using ‘http://mail.mydomain.com:5000’?
Use port 443 instead of port 5000.
Its saying server not found and its not working with https or http plus 5000, 443,80 all not working Please help me fix this. i followed everything correctly and its still not working.
Hi, i have one error, when i run postal initialize i got this error:
Access denied for user ‘root’@’172.xx.xx.xx’ (using password: YES)
Couldn’t create ‘postal’ database. Please check your configuration.
Any idea how to solve this? iim using ubuntu 18.04
Thanks
Check the postal.yml file. You might have entered incorrect credentials
Hi Dhiraj,
Thank you or the tutorials, I’ve followed it but run into trouble installing MariaDB
Can’t connect to MySQL server on ‘127.0.0.1’ (115)
Couldn’t create ‘postal’ database. Please check your configuration.
rake aborted!
and
ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
I’ve tried uninstalling and installing, resetting the server, changing from ubuntu 18.04 to 20.0, using the old method and the new with docker…
so far nothing works and my frustration is at an all-time high !!!
the worst part is that I had the old version of Postal working but decided to update.
I sent a private email, I hope you can help.
Thanks.
Please try the new docker method. The old method is obsolete now.
Is it possible to install Postal and Mailwizz under samer VPS though Postal is installed using docker?
Yes
Access denied for user ‘root’@’172.17.0.1’ (using password: YES)
Couldn’t create ‘postal’ database. Please check your configuration.
rake aborted!
Mysql2::Error::ConnectionError: Access denied for user ‘root’@’172.17.0.1’ (using password: YES)
pls i tried to do postal initialize, i keep getting this error every time, pls can you help me resolve it. Thanks
Please use the docker version of Postal. Older version is now obsolete.
How do you do that ? I have a digitalocean droplet setup from this great post … but I can’t clear the queues and have zero experience with ssh lol. So I was wondering if it’s possible to have cpanel and all that on the same droplet as this or whatever. Really new to this, been a php / cpanel guy for 20 years.
You can install cpanel on docker, provided you have sufficient knowledge.
Access denied for user ‘root’@’172.17.0.1’ (using password: YES)
Couldn’t create ‘postal’ database. Please check your configuration.
rake aborted!
Mysql2::Error::ConnectionError: Access denied for user ‘root’@’172.17.0.1’ (using password: YES)
Hey Guru,
i got this error message while trying to do postal initialize, please how can you help me solve it.
Thanks
Please use the docker version of Postal. Older version is now obsolete.
Please can you help me with the tutorial url to the new version of the docker to use for postal?
Thanks
i upgraded the docker version to 1.29.2 still not working, pls how can you help?
thank
Hello, I am trying to install SMTP server as per your guideline. But I was stuck in install rabbitmq
Try docker method
Hello, I am trying to install SMTP server as per your guideline. But I was stuck in install rabbitmq server. Can you please guide me on this section. Every time I am getting error for this step. Error: The repository is not signed.
Looking forward to hearing from you.
Thanks
Try docker method.
everything is sorted out. Thanks to your tutorial. But I couldn’t get postal web interface. How to access on postal web interface?
Looking forward to hearing from you.
Thanks
postal_smtp_1 and postal_worker_1 always stop as soon as I start it. I install the postal v2. postal_web_1 is now running and hope it will run all the time. What could be the solution? Looking forward to hearing from you.
Thanks
When I checked the postal logs, I got the error message as below:
bundler: failed to load command: puma (/usr/local/bundle/bin/puma)
Errno::EADDRNOTAVAIL: Cannot assign requested address – bind(2) for “172.105.33.83” port 5000
How the above error can be solved?
Looking forward to hearing from you.
Thanks
Hi,
I would like to install Mautic 4 and Postal on the same VPS. Any install guides to point me in the right direction?
Hello,
thank you so much for the value of your content.
I have been following the process and got stuck at the part where I need to bootstrap to mail.yourdomain.com.
Putty tells me ” can’t connect to mail.mydomain.com ”
Any idea where this comes from ? i though it was DNS pointing wrong but everything seems to be fine.
I would appreciate if you could help figuring out where the problem comes from.
You might have missed any previous step
when i checked postal status its showing this
postal_smtp_1 /docker-entrypoint.sh post … Exit 1
can anyone help
Make sure you have used the correct information in postal.yml file.
exit 1 is related to this only
Hello,
Getting below error when running postal initialize command.
root@postal:~# postal initialize
Pulling web … done
Pulling smtp … done
Pulling worker … done
Pulling cron … done
Pulling requeuer … done
Creating postal_runner_run … done
Initializing database
No secret key was specified in the Postal config file. Using one for just this session
Access denied for user ‘postal’@’172.17.0.1’ (using password: NO)
Couldn’t create ‘postal’ database. Please check your configuration.
rake aborted!
Mysql2::Error::ConnectionError: Access denied for user ‘postal’@’172.17.0.1′ (using password: NO)
/usr/local/bundle/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in `connect’
/usr/local/bundle/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in `initialize’
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_adapters/mysql2_adapter.rb:22:in `new’
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_adapters/mysql2_adapter.rb:22:in `mysql2_connection’
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:830:in `new_connection’
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:874:in `checkout_new_connection’
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:853:in `try_to_checkout_new_connection’
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:814:in `acquire_connection’
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:538:in `checkout’
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:382:in `connection’
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:1033:in `retrieve_connection’
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_handling.rb:118:in `retrieve_connection’
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/connection_handling.rb:90:in `connection’
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/tasks/mysql_database_tasks.rb:6:in `connection’
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/tasks/mysql_database_tasks.rb:14:in `create’
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:119:in `create’
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:139:in `block in create_current’
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:316:in `block in each_current_configuration’
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:313:in `each’
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:313:in `each_current_configuration’
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:138:in `create_current’
/usr/local/bundle/gems/activerecord-5.2.6/lib/active_record/railties/databases.rake:29:in `block (2 levels) in ‘
/opt/postal/app/bin/bundle:3:in `load’
/opt/postal/app/bin/bundle:3:in `’
Tasks: TOP => db:create
(See full trace by running task with –trace)
ERROR: 1
can anyone help
Try the docker method.
I can’t get this file “https://postal.atech.media/packages/stable/latest.tgz”.
You need to use docker method to install postal
I can download this file “https://postal.atech.media/packages/stable/latest.tgz”.
I configured the SMTP using Postal.
When I sent a test the email the email(s) stays in the queue and it gave me this error.:
SMTP send error
Failure sending mail.
Unable to read data from the transport connection: The connection was closed.
How do I remedy?
Perhaps your IP is blacklisted
Hi,
Can you please let me know if there is an advantage of getting a server with multipe IP addresses ?
Can a single server use different domains for each of these IP addresses ?
This could help instead of installing multiple servers
Thanks in advance
Yes, it’s beneficial.
Yes, a single server can have different domains and IPs.
thanks very much for your feedback.
The question is, Can Postal handle this, like use many IP addresses and many domains and rotate IP and Domains so that it will reduce the risk of being blacklisted?
Thanks again
Hi
thanks For the video, i have doubt, how to recived email, can you please tell me
Using docker method, after using mariadb and rabbitmq, im getting an error of “invalid reference format”.
Im using putty v0.77(64bit), digitalocean ubuntu 20.04
pls help
Will look into it.