<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vibhoo Mishra on Medium]]></title>
        <description><![CDATA[Stories by Vibhoo Mishra on Medium]]></description>
        <link>https://medium.com/@Vibhoo?source=rss-1a97f9fd27d7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3KNzgIA_0Mjt53uUy7fERw.jpeg</url>
            <title>Stories by Vibhoo Mishra on Medium</title>
            <link>https://medium.com/@Vibhoo?source=rss-1a97f9fd27d7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 03:20:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Vibhoo/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Setting Up a Postal Server, Mailwizz with Nginx on a VPS: A Step-by-Step Guide]]></title>
            <link>https://medium.com/@Vibhoo/setting-up-a-postal-server-mailwizz-with-nginx-on-a-vps-a-step-by-step-guide-bd75e03b9e79?source=rss-1a97f9fd27d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd75e03b9e79</guid>
            <category><![CDATA[mailwizz]]></category>
            <category><![CDATA[self-hosted]]></category>
            <category><![CDATA[postal]]></category>
            <category><![CDATA[email-marketing]]></category>
            <category><![CDATA[email-solution]]></category>
            <dc:creator><![CDATA[Vibhoo Mishra]]></dc:creator>
            <pubDate>Sat, 22 Jul 2023 08:45:59 GMT</pubDate>
            <atom:updated>2023-07-22T08:45:59.242Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Part — 2</em></p><h4>Setting up Mailwizz</h4><p>Download and Install MailWizz</p><p>Go to the official MailWizz website and purchase the license. Upload the MailWizz files to your server using SCP or an FTP client.</p><p>Extract the files and move them to your web server’s document root folder. Typically, it’s located in the /var/www directory. Use the following command to navigate there:</p><pre>cd /usr/share/nginx/</pre><h4>Set Permissions</h4><p>Ensure that the web server has the necessary permissions to access MailWizz files. Change ownership and permissions of the MailWizz directory with the following commands:</p><pre>chmod -R 0777 /usr/share/nginx/html/latest/apps/common/runtime/</pre><p>Since Mailwizz is a PHP application make sure you have installed PHP and required extensions, if not you can use the following commands to do so</p><pre>apt install php-fpm<br>apt install php-mbstring<br>apt-get install php-curl php-zip php-xml<br></pre><ul><li>Now it’s to connect to your db, we will be utilizing mariaDB which we installed eariler during our installing of <a href="https://medium.com/@Vibhoo/setting-up-a-postal-server-with-mailwizz-on-a-vps-a-step-by-step-guide-fbd4b18fc261">Postal Server</a></li></ul><pre>mysql -h 127.0.0.1 -u USERNAME -p<br><br>CREATE DATABASE your_database_name;<br>EXIT;</pre><h4>Update your NGINX configuration</h4><p><em>don’t forget to generate a new SSL certificate for your domain exmaple.com, using the same command we used in when setting up postal</em></p><pre>server {<br> listen 80 default_server;<br> listen [::]:80 default_server;<br> server_name example.com;<br> return 301 https://$host$request_uri;<br>}<br><br>server {<br> listen 443 ssl default_server;<br> listen [::]:443 ssl default_server;<br> root /usr/share/nginx/html/latest/;<br> server_name example.com;<br> ssl_certificate      /etc/letsencrypt/live/example.com/fullchain.pem;<br> ssl_certificate_key  /etc/letsencrypt/live/example.com/privkey.pem;<br> ssl_protocols TLSv1.2 TLSv1.1 TLSv1;<br> ssl_prefer_server_ciphers on;<br> location / {<br>  if (!-e $request_filename){<br>   rewrite ^(/)?api/.*$ /api/index.php;<br>  }<br>  if (!-e $request_filename){<br>   rewrite ^(/)?customer/.*$ /customer/index.php;<br>  }<br>  if (!-e $request_filename){<br>   rewrite ^(/)?backend/.*$ /backend/index.php;<br>  }<br>  if (!-e $request_filename){<br>   rewrite ^(.*)$ /index.php;<br>  }<br>  index  index.html index.htm index.php;<br>  }<br><br> # redirect server error pages to the static page /50x.html<br> #<br> error_page   500 502 503 504  /50x.html;<br><br> # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000<br> #<br> location ~ \.php$ {<br>  include /etc/nginx/fastcgi_params;<br>  include snippets/fastcgi-php.conf;<br>  fastcgi_pass  unix:/run/php/php8.2-fpm.sock;<br>  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br>  fastcgi_read_timeout 600s;<br>  fastcgi_send_timeout 600s;<br>  }<br><br> # deny access to .htaccess files, if Apache&#39;s document root<br> # concurs with nginx&#39;s one<br> #<br> location ~ /\.ht {<br>  deny  all;<br> }<br>}<br><br><br># Virtual Host configuration for postal.example.com<br>#<br>#<br>server {<br>    listen [::]:80;<br>    listen 0.0.0.0:80;<br>    server_name postal.example.com;<br>    return 301 https://$host$request_uri;<br>}<br><br>server {<br>    listen [::]:443 ssl;<br>    listen 0.0.0.0:443 ssl;<br>    root /opt/postal/public;<br>    server_name postal.example.com;<br>    ssl_certificate      /etc/letsencrypt/live/postal.example.com/fullchain.pem;<br>    ssl_certificate_key  /etc/letsencrypt/live/postal.example.com/privkey.pem;<br>    ssl_protocols TLSv1.2 TLSv1.1 TLSv1;<br>    ssl_prefer_server_ciphers on;<br><br>    location / {<br>       client_max_body_size 50M;<br>       try_files $uri $uri/index.html $uri.html @puma;<br>    }<br><br>    location /app/assets {<br>       add_header Cache-Control max-age=3600;<br>    }<br><br>    location @puma {<br>        proxy_set_header X-Real-IP  $remote_addr;<br>        proxy_set_header Host $host;<br>        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>        proxy_set_header X-Forwarded-Proto https;<br>        proxy_pass http://127.0.0.1:5000;<br>    }<br>}</pre><h4>Finally!!</h4><p>Open a web browser and navigate to your VPS’s IP address or domain name. You should see the MailWizz installation page. Follow the on-screen instructions.</p><h4><em>For Database use</em></h4><p><em>hostname — 127.0.0.1, username — </em>USERNAME, password — PASSWORD, database — your_database_name</p><h4>Conclusion</h4><p>Congratulations! You have successfully installed MailWizz on your existing VPS with Nginx. Now you have a powerful self-hosted email marketing solution with both a Postal server &amp; Mailwizz running on the same VPS.</p><p>P<a href="https://medium.com/@Vibhoo/setting-up-a-postal-server-with-mailwizz-on-a-vps-a-step-by-step-guide-fbd4b18fc261">art — 1</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd75e03b9e79" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting Up a Postal Server, Mailwizz with Nginx on a VPS: A Step-by-Step Guide]]></title>
            <link>https://medium.com/@Vibhoo/setting-up-a-postal-server-with-mailwizz-on-a-vps-a-step-by-step-guide-fbd4b18fc261?source=rss-1a97f9fd27d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbd4b18fc261</guid>
            <category><![CDATA[send-unlimited-emails]]></category>
            <category><![CDATA[email-marketing]]></category>
            <category><![CDATA[postal]]></category>
            <category><![CDATA[mailwizz]]></category>
            <category><![CDATA[nginx]]></category>
            <dc:creator><![CDATA[Vibhoo Mishra]]></dc:creator>
            <pubDate>Sun, 09 Jul 2023 13:03:30 GMT</pubDate>
            <atom:updated>2023-07-22T08:46:38.089Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Part — 1</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*U82pVbJ0Cs0KlNuugZIcMA.png" /></figure><h3>Introduction</h3><p>In today’s digital world, email marketing remains an integral part of any successful business. To have complete control over your email campaigns and ensure reliable delivery, setting up your own <strong>postal server</strong> with Mailwizz on a Virtual Private Server (VPS) is a smart choice. In this blog post, we’ll guide you through the process, step by step.</p><p>Note: This guide assumes you have a basic understanding of Linux command-line operations and have already set up a VPS with root access.</p><h4>Setting Up a VPS</h4><ol><li>Choose a reputable VPS provider <a href="https://www.digitalocean.com/?refcode=7b5767bd9f01&amp;utm_campaign=Referral_Invite&amp;utm_medium=Referral_Program">DigitalOcean</a> recommended</li><li>Create a new VPS instance with this Ubuntu and a minimum configuration of 1 CPU, 2GB RAM, and 50GB storage.</li><li>Connect to your VPS via SSH using a terminal or SSH client.</li></ol><h4>Create a Swap Space</h4><p>Note: Not a necessary step but recommended, follow the below tutorial to <strong>Add Swap Space 👇</strong></p><p><a href="https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04">https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04</a></p><h4>Prepare your VPS</h4><p><em>Update the server’s package repositories:</em></p><pre>apt update -y</pre><p>Next set up the <strong>hostname</strong>. Replace “example.com” with your domain name.</p><pre>hostnamectl set-hostname mail.example.com</pre><p><em>Install necessary dependencies</em></p><p>First of all, set a few packages to set up the Docker repository</p><pre>apt-get install ca-certificates curl gnupg lsb-release</pre><h4><em>Installing Docker</em></h4><p>Next, add Docker’s official GPG key.</p><pre>curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg - dearmor -o /etc/apt/keyrings/docker.gpg</pre><p>Now, you can install the Docker repository using the following commands</p><pre>echo \<br>  &quot;deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \<br>  $(lsb_release -cs) stable&quot; | sudo tee /etc/apt/sources.list.d/docker.list &gt; /dev/null</pre><p>Next update the system software</p><pre>sudo apt-get update -y</pre><p>Finally, run the following command to install Docker Engine and containerd.</p><pre>sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin</pre><h4>Installing Docker-Compose</h4><p>First of all download the current stable release of Docker Compose</p><pre>curl -SL https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose</pre><p>Next, update the permission to binary</p><pre>sudo chmod +x /usr/local/bin/docker-compose</pre><p>Create a symlink as well</p><pre>sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose</pre><p>Finally, test the docker-compose installation</p><pre>docker compose version</pre><p>You will see the docker-compose version. If you see anything else this means something has gone wrong.</p><h3>Setting up Postal</h3><p>There are some things you’ll need to do before you can install Postal.</p><h4>System Utilities</h4><pre>apt install git curl jq</pre><p>Next, clone the postal and create a symlink</p><pre>git clone https://postalserver.io/start/install /opt/postal/install<br>sudo ln -s /opt/postal/install/bin/postal /usr/bin/postal</pre><h3>MariaDB</h3><p>Now, you can install MariaDB in the docker container</p><pre>docker run -d \<br>   --name postal-mariadb \<br>   -p 127.0.0.1:3306:3306 \<br>   --restart always \<br>   -e MARIADB_DATABASE=YOUR_strong_PASSWORD \<br>   -e MARIADB_ROOT_PASSWORD=postal \<br>   mariadb</pre><h3>RabbitMQ</h3><p>RabbitMQ is necessary to process messages and distribute the loads</p><pre>docker run -d \<br>   --name postal-rabbitmq \<br>   -p 127.0.0.1:5672:5672 \<br>   --restart always \<br>   -e RABBITMQ_DEFAULT_USER=postal \<br>   -e RABBITMQ_DEFAULT_PASS=YOUR_strong_PASSWORD \<br>   -e RABBITMQ_DEFAULT_VHOST=postal \<br>   rabbitmq:3.8</pre><h3>Let’s Begin Configuration</h3><pre>postal bootstrap postal.example.com</pre><p>The above command generates 3 files. You should open up /opt/postal/config/postal.yml and add all the appropriate values for your installation (database passwords etc...).</p><h4>Initializing the database</h4><pre>postal initialize<br>postal make-user</pre><h3>Finally, run the postal server</h3><pre>postal start</pre><h3>Installing Nginx</h3><pre>apt-get install nginx</pre><h4>Install SSL Certificate</h4><pre>apt install certbot<br>certbot certonly --standalone -d postal.example.com</pre><h4>Configuring Nginx</h4><pre>nano /etc/nginx/sites-available/default</pre><pre>server {<br>    listen [::]:80;<br>    listen 0.0.0.0:80;<br>    server_name postal.example.com;<br>    return 301 https://$host$request_uri;<br>}<br><br>server {<br>    listen [::]:443 ssl;<br>    listen 0.0.0.0:443 ssl;<br>    root /opt/postal/public;<br>    server_name postal.example.com;<br>    ssl_certificate      /etc/letsencrypt/live/postal.example.com/fullchain.pem;<br>    ssl_certificate_key  /etc/letsencrypt/live/postal.example.com/privkey.pem;<br>    ssl_protocols TLSv1.2 TLSv1.1 TLSv1;<br>    ssl_prefer_server_ciphers on;<br><br>    location / {<br>       client_max_body_size 50M;<br>       try_files $uri $uri/index.html $uri.html @puma;<br>    }<br><br>    location /app/assets {<br>       add_header Cache-Control max-age=3600;<br>    }<br><br>    location @puma {<br>        proxy_set_header X-Real-IP  $remote_addr;<br>        proxy_set_header Host $host;<br>        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>        proxy_set_header X-Forwarded-Proto https;<br>        proxy_pass http://127.0.0.1:5000;<br>    }<br>}</pre><p>Update your Nginx configuration to look like the above, just replace example.com with your domain. After saving your configuration just restart the nginx server</p><pre>nginx -t #test configuration<br>systemctl restart nginx.service</pre><p>Visit the following URL and you should be seeing the below screen login with the credentials you created above</p><pre>https://postal.yourdomain.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*EEWP3w1Vi3ckTh3SxsfLxw.png" /><figcaption>Postal Login screen</figcaption></figure><p>In <a href="https://medium.com/@Vibhoo/setting-up-a-postal-server-mailwizz-with-nginx-on-a-vps-a-step-by-step-guide-bd75e03b9e79">Part 2</a> we will see how you can setup Mailwizz and configure it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbd4b18fc261" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>