Configuring the SMTP relay service

Prerequisite

Add an access rule so for the SMTP service :

  1. On the NETWORK menu, under the Firewall submenu, click Smoothwall access.
  2. Within a suitable section, click Add. In the Add Smoothwall access rule dialog box, enter the SMTP service Name.
  3. From the Services list, select SMTP (25) and click Save changes.

For a detailed description of using access rules, including how to configure them, see our help topic, Adding new Smoothwall access rules.

Allowing traffic to the SMTP relay

Note: For the non-standard SMTP checks to work, Smoothwall must be operating as the MX record for the recipient domain. To alter your domain's MX record, you will need to access your domain’s DNS server settings. Refer to your email server documentation or your email provider to find out how to alter the MX record. It should be set to your Smoothwall’s external IP address.

  1. On the EMAIL menu, under the SMTP submenu, click Relay.
    1. Under the SMTP relay section:
      1. To turn on relaying after configuring incoming and outgoing relaying, select the Enable mail relay option.
      2. From the Maximum email size list, select the maximum email size that you want to accept. Any email larger than this limit are rejected.
      3. From the Maximum bounce size list, select the maximum size of an email, in kilobytes, used in a bounce email.
      4. From the Time to hold undeliverable mail list, select the amount of time an email is held in the queue if it can't be sent. Smoothwall periodically attempts to resend all email that's held in the queue.
      5. To capture outgoing email and relay it, select the Enable transparent SMTP relay option.
    2. Under the Antimalware section:
      1. To turn on the antimalware scanning for relayed email, select the Enable antimalware scanning option.
      2. From the Action to perform on malware list, select what to do if malware is found in relayed email
    3. under the Transparent SMTP interfaces section:
      1. Select the Interface names that SMTP traffic is transparently captured from.
      2. Enter any IP addresses to the IP exception list, subnets or ranges that should not be transparently proxied.
    4. Click Advanced »:
      1. Under the SMTP name section:
        1. To use Smoothwall’s SMTP hostname when relaying email, select the Use system hostname option.
        2. When relaying email, select the User defined hostname option and enter a name to use a different host name.
      2. Under the External mail relay section:
        1. To turn on sending outgoing email to another relay within an existing email infrastructure, select the Enable relay host option.
        2. Enter the Relay host IP address or host name of the relay.
        3. Enter the Username and Password for the remote relay.
      3. under the Non-standard SMTP checking section:
        1. To make sure that the initial communication between a connecting SMTP client and the email relay are valid, select the Use strict HELO checks option.
        2. To make sure that the sender domain is formatted correctly and has a real IP address, select the Sender domain validity option.
        3. To make sure that all recipient domains are formatted correctly and have real IP addresses, select the Recipient domain validity option.
        4. To see if the sender of incoming email is falsely using an internally relayed domain in their From address, select the External sender domain spoofing option. Emails are rejected if the sender’s email address purports to be from a domain listed on the incoming page, but the sender’s IP address can't be found on the outgoing page.
  2. To restart the module, click Save and restart.