Configuring a Smarthost or Relayhost for a Domain
Nota: I termini smarthost e relayhost sono solitamente usati in modo intercambiabile. Da qui in poi ci atterremo al termine smarthost.
Riassunto: You can configure a smarthost at the domain level in Plesk Obsidian 18.0.76 or later.
In questa sezione, imparerai:
Quando è utile utilizzare uno smarthost.
Come configurare uno smarthost in 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.

Seleziona la casella di controllo «Invia la posta degli utenti tramite uno smarthost».
-
Nel campo corrispondente, specifica l’indirizzo IP o il nome host di uno smarthost (ad esempio,
192.0.2.1osmtp.sendgrid.net).Nota: In Plesk per Linux, puoi disabilitare le ricerche MX o SRV inserendo il nome host o l’indirizzo IP tra parentesi quadre, ad esempio
[example.com]. Per maggiori dettagli, vedi la documentazione di Postfix (la sezione surelayhost). Se il servizio di relay SMTP richiede l’autenticazione SMTP (come la maggior parte dei servizi), seleziona la casella di controllo «Autenticazione richiesta».
-
Se nel passaggio precedente hai selezionato «Autenticazione richiesta», specifica le credenziali per l’autenticazione al tuo servizio di relay SMTP.
Se il servizio supporta l’autenticazione di base, specifica il nome utente e la password nei campi corrispondenti. Se il servizio supporta l’autenticazione tramite chiavi API, nel campo «Nome utente», specifica il nome utente predefinito utilizzato per le chiavi API nel servizio (ad esempio, in SendGrid, il nome utente è
apikey) e, nel campo «Password», specifica il valore della chiave API. (Facoltativo) Potresti voler controllare se la connessione allo smarthost può essere stabilita. Per farlo, clicca su Verifica connessione.
Fai clic su 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.
Hai configurato lo smarthost sul lato Plesk. Tuttavia, la maggior parte dei servizi di relay SMTP commerciali richiedono l’autenticazione del dominio sul loro lato (può anche essere chiamata «verifica del dominio»). I seguenti servizi di relay SMTP la richiedono: 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.
Invia un’e-mail di prova a un servizio di posta elettronica esterno (ad esempio Gmail) e assicurati che l’e-mail sia arrivata nella posta in arrivo.
Hai configurato lo smarthost sia in Plesk che nel tuo servizio relay SMTP. Il tuo smarthost è ora attivo e funzionante.