Network Management

Occasional Contributor II

GUIDE: How to send emails from airwave through gmail

This guide shows you how to configure your AirWave server to send emails through gmail with authentication.  I found some useful but slightly outdated guides on airheads, so I figured I'd share my working configs with everyone.


Tested on AirWave v8.2.3.1


1. SSH into your airwave server as root


2. Add SASL libraries for Postfix

yum install cyrus-sasl-plain

3. Create a temporary password file


echo " your_gmail_username:your_gmail_password" > /etc/postfix/sasl_passwd

4. Hash the password file so that it is not stored in clear text. This command will create a file named sasl_passwd.db in the /etc/postfix/ directory.


postmap hash:/etc/postfix/sasl_passwd

5. Add the following to the bottom of /etc/postfix/ This guide assumes that your root certificates installed from openssl are located in /etc/pki/tls/certs/ca-bundle.crt.



nano /etc/postfix/

Don't have nano installed?  Run:



yum install nano

At the bottom of the file enter this text.  If you already have a 'relayhost' line you can delete that.



smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
# Secure channel TLS with exact nexthop name match.
smtp_tls_security_level = secure
smtp_tls_mandatory_protocols = TLSv1
smtp_tls_mandatory_ciphers = high
smtp_tls_secure_cert_match = nexthop
smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
relayhost =

Run CTRL + W and find the line 'inet_protocols'.  Change it:

From: inet_protocols = all
To: inet_protocols = ipv4



Run CTRL + X to save your file


6. Restart postfix

service postfix restart

7. Send a test email


Enter a subject, press enter, type something in the body (blank space), hit enter, type a period (.), and press enter.  You should receive the test email.  If this worked you can remove the un-hashed password file:

rm /etc/postfix/sasl_passwd

8. Send another test email to make sure it continues to work.  Now go to menu AMPSetup > General > Additional AMP Services, and set 'Use Embedded Mail Server' to 'No'.  If any issues arise, review the mail log file:

tail /var/log/maillog
Search Airheads
Showing results for 
Search instead for 
Did you mean: