Configuring mail relay host in Postfix

Aruba Employee
Aruba Employee

For AMP to be able to email alerts and reports, you may need to configure AMP's built-in Postfix email server to use a relay host. This document describes how to configure that using a Linux text editor like vi (nano is also available from the AMP command line interface if you're not familiar with vi). If you'd like some help with using vi, feel free to contact AirWave Support.

To configure a relay host, SSH into the AMP using SecureCRT or Putty and follow the steps below:

1. Add the following line to /etc/postfix/
relayhost = [
where [] is the IP address or hostname of your smarthost If you do not surround the hostname with brackets, Postfix will forward mail to the mail server defined in the host's MX record, if any MX record exists for that host.

2. Run:

# service postfix stop
# service postfix start

3. Send a test message to an email address 
Mail -v 
Subject: test mail 

<Ctrl-D> to end message.
CC: <press enter> 

4. Check the mail log to ensure mail was sent 
# tail /var/log/maillog

Note that there are a number of Postfix relay configuration options other than the one listed above; please see the official Postfix documentation file at for details

Version history
Revision #:
1 of 1
Last update:
‎06-10-2014 03:12 PM
Updated by:
Search Airheads
Showing results for 
Search instead for 
Did you mean: