• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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