In order to block certain words in Subject using postfix the following has to be done. 1. In /etc/postfix/main.cf add the following vi /etc/postfix/main.cf 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
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.
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
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 192.168.0.5. Internal Mail server itself can run any
Lets look at setting up current version of mailscanner with postfix running in chrooted environment.
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
We are setting up Centos 7 running MailScanner with postfix as mail gateway accepting mail for domain aaa.com, bbb.com, ccc.com and relaying mail for any SMTP server located on 188.8.131.52/24 subnet or from 192.168.2.2. Firewall and system requirements CentOS 7 minimal install Inbound – tcp port 25 Outbound – tcp ports 2703, 7, udp port