Category: MailScanner

Blocking words in Subject using postfix

In order to block certain words in Subject using postfix the following has to be done. 1. In /etc/postfix/ add the following vi /etc/postfix/ header_checks = regexp:/etc/postfix/header_checks 2. Create header_checks and add the following line. In this example we will block XXX word separated by spaces. vi /etc/postfix/header_checks /^Subject:.*\b(XXX)\b/ DISCARD

MailScanner blacklisting and whitelisting smtp addresses

Lets take a look at what it takes to create whitelists and blacklists rule sets on MailScanner based Email gateways. We assume MailScanner is installed on CentOS version 7, but it should also work on other Linux Distributions.

Deploy AWStats on CentOS 7 to report SMTP traffic

Let’s look at deploying AWStats on CentOS 7 Mail gateway running postfix and MailScanner 1. First lets install httpd if not yet installed yum install httpd 2. In order to install AWStats we will need to install and add EPEL repository yum install epel-release 3. Now we can install AWStats yum install awstats AWStats Configuration

Deploing CentOS 7 with postfix, MailScanner, spamassassin, ClamAV as SMTP gateway

In this blog we will look into building smtp scanner gateway based on Postfix, Mailscanner , spamassassin and clamav. In this example we have CenOS 7 minimal deployed on the internal network. Perimeter firewall is setup with NAT translating public IP port 25 to internal mailscanner gateway Internal Mail server itself can run any

Install MialWatch on CentOS 7 with postfix as MTA

MailWatch is a great web based application utilizing LAMP stack. It allows you to easily manage and monitor MailScanner gateway. We will be adding MailWatch install to existing MailScanner setup Prerequisites Working MailSanner installation. How to Install MailScanner Install LAMP and additional PHP and Perl requirements Make sure php.ini has correct settings

Deploy MailScanner CentOS 7 and postfix

We are setting up Centos 7 running MailScanner with postfix as mail gateway accepting mail for domain,, and relaying mail for any SMTP server located on subnet or from Firewall and system requirements CentOS 7 minimal install Inbound – tcp port 25 Outbound – tcp ports 2703, 7, udp port