Inbound Spam filtering with Proxmox Mail Gateway

Ones of the issues with running your own email server is handling spam. If your like me, you don’t want to spend all day figuring out to edit text files. That’s why I enjoy using Proxmox Mail Gateway for my inbound spam filtering. This is assume you already have a mail server that your running and you want to either replace your existing spam filtering or add in new to help protect your email users from unwanted emails and centralize configuration and management.

Subscribe to my free email newsletter and receive bonus content…
Newsletter

How To Setup Proxmox Mail Gateway for Inbound Filtering

So to get started, you will need access to your Proxmox Virtual Environment, you can use other hypervisors or install on plain debian but I will not be going through those steps.

Total Time Needed :

60

Minutes

Total Cost:

0

USD

Required Tools:

– A Computer

Things Needed?

– Email Server (Mailcow, Zimbra, iRedMail, etc)
– Internet that allows SMTP port 25 inbound
– Proxmox Virtual Environment

Steps to configure Proxmox Mail Gateway:

Step 1

First we are going to download the Proxmox Mail Gateway template.
Under Storage > CT Templates > Proxmox Mail Gateway > Download

Step 2

Create container.
Create CT > Give it a Name and Password > Next

Step 3

Select your storage where you downloaded the template to.
Select “proxmox-mailgateway-7.2-standard_7.2.1_amd64.tar.gz”
Click next.

Step 4

Disk Size, select 20 GB then click Next

Step 5

CPU Size, select 2 CPUs then click next.

Step 6

Memory, select 2GB
Swap, set to zero if you have SSDs

Step 7

Network, put in your IP address information and IP gateway

Step 8

DNS, default settings
Confirm

Step 9

Power on Proxmox Mail Gateway container and login to web gui
https://yourip.example.com:8006/
Username is root, password is the one you set when you created the container

Step 10

Setup Relay Domains. Configuration > Mail Proxy > Relay Domains > Create > yourdomainname.com

Step 11

Setup Transports.
Configuration > Mail Proxy > Transports > Create > Relay Domain: yourdomainname.com
Host: youremailserveripaddress
Protocol: SMTP
Port: 25

Step 12

Setup DNS Record
Name: @
Type: MX
Exchange: yourproxmoxmailgateway.com

Step 13

Ensure you are NATing public IP address to tcp port 25 of Proxmox Mail Gateway or if your Proxmox Mail Gateway has a public IP address ensure that firewall permits tcp port 25 inbound from the Internet.

Step 14

Test by sending yourself some emails.
Verify by looking at Administration > Tracking Center > Search

Dosha Ayurveda

Learn about natural health

Take control of your privacy and your health
Find out more information and learn to feel better.

Spam Filter

All spam filter will end up in “Spam Quarantine”
Administration > Spam Quarantine > Receiver’s Email or All > Toggle Spam Info
Shows detailed scores, on how it calculated the spam level.

Done

By now you should have a fully functional inbound email spam filtering system.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top