Configuring a Smarthost or Relayhost for a Domain
Note
Les termes « hôte intelligent » et « hôte relais » sont en général interchangeables. À partir de maintenant, nous allons utiliser le terme « hôte intelligent ».
Résumé
You can configure a smarthost at the domain level in Plesk Obsidian 18.0.76 or later.
Dans cette section, vous découvrirez :
Quand il est avantageux d’utiliser un hôte intelligent.
Comment configurer un hôte intelligent dans Plesk.
You can send emails from Plesk using its local SMTP server. However, some hosting providers block outgoing mail from local SMTP servers. Even when they allow it, email deliverability may be poor and messages can end up in spam. To avoid these issues, configure a smarthost.
A smarthost is a mail server that accepts messages from any sender and forwards them to their final destination. A smarthost acts as an intermediary to improve email deliverability and reduce the chances of messages being marked as spam.
When you send an email through a smarthost, the message appears to originate from the smarthost’s IP address. If the smarthost has a strong sending reputation, your email is more likely to reach the recipient’s inbox instead of being marked as spam. For this reason, we recommend using a reputable SMTP relay service as your smarthost (for example, SendGrid, Mailgun, Mailjet, or similar providers).
Configuring Smarthost for a Domain
You can configure a smarthost for an individual domain. This works in Plesk for Linux with Postfix and Plesk for Windows with either MailEnable or SmarterMail.
To configure a smarthost for a domain:
Choose a reputable SMTP relay service (for example, SendGrid, Mailgun, Mailjet, or similar providers) and create an account there.
Go to Domains > select a domain > Mail > Smarthost.

Cochez la case « Envoyer les mails des utilisateurs via un hôte intelligent ».
-
Dans le champ correspondant, spécifiez l’adresse IP ou le nom d’hôte d’un hôte intelligent (par exemple :
192.0.2.1ousmtp.sendgrid.net).Note
Dans Plesk pour Linux, vous pouvez désactiver les recherches MX ou SRV en mettant le nom d’hôte ou l’adresse IP entre crochets, par exemple :
[example.com]. Pour en savoir plus, consultez la documentation Postfix (la section surrelayhost). Si votre service de relais SMTP nécessite une authentification SMTP (comme la plupart des services), cochez la case « Authentification requise ».
-
Si vous avez sélectionné « Authentification requise » lors de l’étape précédente, spécifiez les informations d’identification pour vous authentifier auprès de votre service de relais SMTP.
Si le service prend en charge l’authentification de base, indiquez le nom d’utilisateur et le mot de passe dans les champs correspondants. Si le service prend en charge l’authentification via des clés API, dans le champ « Nom d’utilisateur », indiquez le nom d’utilisateur par défaut utilisé pour les clés API dans le service (par exemple : dans SendGrid, le nom d’utilisateur est
apikey) et, dans le champ « Mot de passe », indiquez la valeur de la clé API. (Facultatif) Vous souhaiterez peut-être vérifier si la connexion à l’hôte intelligent peut être établie. Pour cela, cliquez sur Vérifier la connexion.
Cliquez sur OK.
-
Update the SPF record in the DNS zone of the domain you configured. This ensures the SMTP relay service is authorized to send mail for this domain.
Vous avez configuré l’hôte intelligent côté Plesk. Toutefois, la plupart des services de relais SMTP commerciaux nécessitent une authentification de domaine de leur côté (également appelée vérification de domaine). Les services de relais SMTP suivants l’exigent : SendGrid, Mailjet, Mailgun.
Go to your SMTP relay service account and authenticate the domain you just configured smarhost for in Plesk. For exact steps on how to do so, refer to the documentation of your service.
Envoyez un e-mail de test à un service de messagerie externe (par exemple : Gmail) et assurez-vous que l’e-mail a atteint la boîte de réception.
Vous avez configuré l’hôte intelligent dans Plesk et dans votre service de relais SMTP. Votre hôte intelligent est désormais opérationnel.