Follow these steps to configure your Postfix based system to use Nexiwave Email Relay service.
(This is prepared based on RedHat/CentOS based systems. Similar steps should work for other Linux flavours)
Preparation
- Your system is already configured Postfix.
- You can already send voicemails as emails.
Steps
- Configure /etc/postfix/sasl_passwd:
- Add your Nexiwave username and password to /etc/postfix/sasl_passwd:
smtp.nexiwave.com username:password
Note: you can obtain additional username/password for your Nexiwave account from "Additional Credentials" page (Login -> Settings -> Additional Credentials).
- Create the hash db file for Postfix by running the postmap command:
postmap /etc/postfix/sasl_passwd
- Configure /etc/postfix/main.cf:
- Update the relayhostparameter to smtp.nexiwave.com:
# specify SMTP relay host
relayhost = smtp.nexiwave.com:587
- At the end of the file, add the following parameters to enable authentication:
# enable SASL authentication
smtp_sasl_auth_enable = yes
# disallow methods that allow anonymous authentication.
smtp_sasl_security_options = noanonymous
# where to find sasl_passwd
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
# Enable STARTTLS encryption
smtp_use_tls = yes
# where to find CA certificates
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
- Restart Postfix:
service postfix restart