• 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

Resolved mail( ) to adress on same domain but on other server

Line Up

New Pleskian
Hi,

we have a plesk server on linux ubuntu 18.04 as vhost at strato. We also have an exchange server in our house. The mx record points to our exchange server.

Now as we try to send a mail via mail( ) to an adress with the same domain but on our exchange server, the mail gets stuck on the vhost because the server thinks it is an intern adress, but cant find the recipient.

How can we solve this? Can we tell plesk to always send mails to extern and not look intern for a recipient?
 
This is the same question (by the same user??) as in this thread:
Issue - Recipient address rejected: User unknown in virtual mailbox table).

Please read the reply from @IgorG

Note: Having the mails of a domain distributed onto 2 different mail systems is never a good idea and will cause problems at some point.

As a workaround, you could configure your PHP scripts to use an external SMTP server to send the mails so that the mail will be delivered according to the MX record of the domain, assuming that the MX of the domain is pointing to your Exchange server. If your MX points to your Plesk VPS then you should configure your PHP scripts to deliver the mail directly to your Exchange server.

But let me emphasize again: 1 domain = 1 mail system. Anything else is just plain ugly.
 
Back
Top