• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Question Relay to external SMTP servers requiring SMTP authentication

GOTO Daisuke

New Pleskian
Server operating system version
CentOS 7
Plesk version and microupdate number
18.0.70
We are using the following environment.
In this environment, is it possible to relay only mail from a specific domain to an external SMTP server that requires SMTP authentication?

When relaying to an SMTP server that does not require SMTP authentication, the following is described in the /var/qmail/control/smtproutes file.

/var/qmail/control/smtproutes SAMPLE
gmail.com:example.com

The external SMTP server I want to use requires SMTP authentication. Therefore, this description cannot be used.
 
This article describes a simple method for qmail in which you'll need to apply the "qmail remote auth patch". I am not sure if that's compatible with the qmail setup in Plesk, but it might be worth a try.

An alternative would be to use Postfix instead. Which would also allow you to define sender relays on a per domain basis. This Serverfault answer touches on the basics and gives an example that you can use.

Hope this helps.
 
Last edited:
This article describes a simple method for qmail in which you'll need to apply the "qmail remote auth patch". I am not sure if that's compatible with the qmail setup in Plesk, but it might be worth a try.

An alternative would be to use Postfix instead. Which would also allow you to define sender relays on a per domain basis. This Serverfault answer touches on the basics and gives an example that you can use.

Hope this helps.

Thank you for referring me to the reference article.
Since the server is in production, I will try to think of a way to test it before trying it.

We have also considered switching to Postfix.
However, since we have many email addresses set up, we would like to continue using qmail if possible to avoid problems.
 
How many email addresses are set up? We are using Postfix with thousands of mail addresses with excessive use without any problem.
 
How many email addresses are set up? We are using Postfix with thousands of mail addresses with excessive use without any problem.
Thanks for your comment.

I am not worried about running many email addresses with Postfix.
I am thinking it will be hard to migrate qmail to Postfix with no trouble and short downtime.
I would like to keep using the qmail environment if possible.
 
Back
Top