• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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