Outbound - Setup Postfix to Relay Outbound Messages

If you have a Postfix email server, you can configure your email server to Relay your outbound messages through our system.  Please refer to our general article out the outbound service first:

Setting up your Email Client for Outbound Filtering

Once you're ready, you can set this up using these steps:
  1. Create a Password file.  You might run this:

    touch /etc/postfix/sasl_passwd

  2. Edit this file, and enter the following information, but replace user with your SpamFilter login user email, or your quarantine user email, and replace password with your login passsword:

    [smtp.mxthunder.net]:587 user:password

  3. Hash this file for Postfix:

    postmap /etc/postfix/sasl_passwd

  4. Edit your Postfix main.cf file.  This may be located at /etc/postfix/main.cf, and add the following lines:

    relayhost = [smtp.mxthunder.net]:587
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    smtp_sasl_security_options = noanonymous
    smtp_use_tls = yes

  5. Reload Postfix:

    postfix reload

SASL Authentication Warning
If you see warnings such as "warning: SASL authentication failure: No worthy mechs found," or "SASL authentication failed; cannot authenticate to server ... no mechanism available," then you may need to install additional packages.
For CentOS, you may need to install `cyprus-sasl` and `cyprus-sasl-plain` (you may also need `cyrus-sasl-lib`, but our test on CentOS 7 didn't seem to require that package).  On other systems, you may need `libsasl2-modules`.

SPF Record
Adding our SPF "include" record to your domain's DNS may help with delivery.

  • smtp host, postfix, outbound mail relay
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What is Spamfilter.clickonIT.com.au?

SpamFilter is an email filter service that removes spam and infected email from your inbound...

I already use Nortons/AVG/Kaspersky anti-spam/anti-virus

Great! Everone should have Internet security software installed on their devices. Many such...

Advanced SpamFilter Options

All the common controls are readily accessible in your user management interface; Add/remove...

Filter Out Certain Email Attachments

Attachment viruses are booming at the moment with incidence of mail infected with zip attachemnt...

How To Add/Remove Email Addresses to Your SpamFilter

When setting up a new email address you need to create the mailbox in cPanel and if you are using...

Powered by WHMCompleteSolution