Setup SMTP relay / smarthost with Plesk with Postfix

Estimated reading time: 1 min

Introduction

If you want or need to setup your mailserver to send all outgoing mail to a specific server which will handle the delivery to the recipients you need to setup a SMTP relay or smarthost.

Prerequisites

  • You need to know the hostname of the SMTP server which is going to relay the mail for your mailserver, which is smtprelay.snel.com in our case
  • This article assumes that no authentication is necessary on the SMTP relay server
  • This article is written for Plesk with Postfix
  • You need to have the SSH login details of your server ready

Step 1) Login with SSH

Login as root. Please see this article for instructions if you don't know how to connect.

Step 2) Configure the MTA

Update the postfix configuration by issuing the following commands:
postconf -e 'relayhost = [smtprelay.snel.com]:587'
postconf -e 'smtp_tls_security_level = may'

Step 3) Restart the mailserver

Restart the mailserver by issuing the following command:
service postfix restart

Was this article helpful?
Dislike 0
Views: 1401

Reader Interactions

Leave a Reply

Your email address will not be published. Required fields are marked *