Postfix

Postfix is a free and open-source mail transfer agent (MTA) that routes and delivers electronic mail, intended as an alternative to the widely used Sendmail MTA. Postfix is released under the IBM Public License 1.0 which is a free software licence.

Originally written in 1997 by Wietse Venema at the IBM Thomas J. Watson Research Center and first released in December 1998, Postfix continues as of 2014 to be actively developed by its creator and other contributors. The software is also known by its former names VMailer and IBM Secure Mailer.

Install Postfix with Microsoft Exchange server

postfix

yum install postfix

You may also want to install these packages:

cyrus-sasl

The cyrus-sasl package contains the Cyrus implementation of SASL. SASL is the Simple Authentication and Security Layer, a method for adding authentication support to connection-based protocols. Additional Installation instructions.

yum install cyrus-sasl

cyrus-imapd

The cyrus-imapd package contains the core of the Cyrus IMAP server. It is a scaleable enterprise mail system designed for use from small to large enterprise environments using standards-based internet mail technologies. Additional Installation instructions.

yum install cyrus-imapd

Configure Postfix to send mail using remote MS Exchange Server

edit postfix main configuration file main.cf

vim /etc/postfix/main.cf

add at end of file:

myhostname = mail.example.com
mydomain = example.com
inet_interfaces = all
mynetworks_style = host
relayhost = mail.example.com

change example.com to your domain

You may also want to define the $mydestination parameter which specifies the list of domains that this machine considers itself the final destination for.

Start Service

start service

service postfix start

start service at boot up

chkconfig postfix on

on Red Hat 7

systemctl enable postfix.service