Follow these steps to configure your Sendmail 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)
1. Preparation
Install the following and make sure saslauthd is started (assuming sendmail has been installed and running):
> yum install cyrus-sasl
> yum install cyrus-sasl-plain
> service saslauthd restart
> chkconfig saslauthd on
2. Create Authentication File
Create an authentication file, such as /etc/mail/authinfo, with this content:
AuthInfo: "I:YOUR Nexiwave EMAIL ADDRESS" "P:YOUR PASSWORD"
Create hash map for the authentication file
> makemap hash /etc/mail/authinfo < /etc/mail/authinfo
3. Configure Sendmail
Put bellow lines into your /etc/mail/sendmail.mc configuration file right above first "MAILER" definition line:
define(`SMART_HOST',`[smtp.nexiwave.com]')dnl
define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl
define(`ESMTP_MAILER_ARGS', `TCP $h 587')dnl
define(`confAUTH_OPTIONS', `A p')dnl
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(`authinfo',`hash -o /etc/mail/authinfo.db')dnl
Rebuild sendmail configuration:
> make -C /etc/mail
Restart Sendmail:
> service sendmail restart
Do a test
Nexiwave should relay this email as it is.