Monitoring, Management & Location Tracking

Configuring mail relay host in Postfix

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/main.cf
relayhost = [mail.airwave.com
where [mail.airwave.com] 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 xxx@xxx.com 
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 athttp://www.postfix.org/postconf.5.html#relayhost for details

Version History
Revision #:
1 of 1
Last update:
‎06-10-2014 03:12 PM
Updated by:
 
Contributors
Search Airheads
Showing results for 
Search instead for 
Did you mean: 
Is this a frequent problem?

Request an official Aruba knowledge base article to be written by our experts.