• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Plesk and Sendmail Problem

D

dukhunter99

Guest
I have searched all over and could not find the solution to this problem for Plesk 10.3.1.
I have sendmail configured and installed on my server (centos 5, php 5.3.8). The problem is, I cannot send mail using the mail() function to domains hosted within Plesk. The mail() function works fine when sending to domains not hosted within plesk. I have tested the Sendmail function through the command line and it sends fine other than to the domains hosted in Plesk. I have been told that this is a known issue in Plesk but I cannot find the answer.

My email is hosted on an external server, not on the server hosted by Plesk. I'm sure that for whatever reasaon, Plesk is trying to send the mail locally because the domains are hosted in Plesk. I have disabled the mail server service on the server and unchecked the box for Plesk to manage the email. This did not fix the problem. Any advice on this is much appreciated!
 
I found the answer to this. From the command line, enter this below.

/usr/local/psa/bin/domain -u yourdomain.com -mail_service false

You do not need to restart the server

This tells Plesk to not use the mail server to send mail for that domain. It will then go through the correct MX entry for the domain and send it to an external domain.

You will need to do this for every domain hosted on the server
 
Back
Top