• 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

Email hosted elsewhere

J

jbouvier

Guest
Hello,

I have a domain that is hosted on another server from my Plesk machine. What needs to be done to configure the system to deliver messages sent from other domains on this server.

Example

foo.com is hosted on server a and has email on server b
bar.com is hosted on server a and has email on server a

Messages from bar.com to foo.com are not being routed to server b, but need to be.

The MX records are setup correctly.
 
Verify that the MX records are properly set to take foo.com e-mail to the b server. You can do this by utilizing www.dnsreports.com (very useful, ignore the warning regarding dns serials, it's a plesk thing, not everyone likes it, it's not an option (yet)).

It should indicate that the priority for your MX says that e-mail for foo.com sends to b server. If that is correct, a test e-mail should be sent to verify that it is working properly from an external source (hotmail, etc).

Next, you'll want to make SURE to disable the e-mail functions for the foo.com domain on server a. Login to the Plesk Admin Panel, go to the Client that the domain is in, then to the Domain, then click on Mail. You'll see in the far left corner of the page, "Disable". Click on it.

Now you want to test an e-mail to foo.com from server a. Login to another account (perhaps that of bar.com) to send an e-mail to foo.com. This should send to the external source, allowing the email to properly route.

Now, since you've verified that, check both domains with www.dnsreports.com to verify that all your settings are properly configured. Make sure to have SPF records, as a lot of companies these days will give you issues if you don't.

Any more assistance I'd be happy to provide, just drop me a note through the site, or reply to this post. -John
 
On the Plesk server, you also need to make a couple of minor changes to the /var/qmail/control files:

morercpthosts: add the domain to this file (does not exist by default, create a new file)
rcpthosts: make sure the domain is NOT in this file which gets overwritten by Plesk
smtproutes: create this file and put a line specifying the domain.com:ip.add.re.ss:port
(if port is the standard 25, then it can be omitted, I usually put it in anyways)

Restart services.
 
Return-Path: <[email protected]>
Delivery-Date: Thu, 22 Dec 2005 22:49:31 +0100
Received: from [217.160.204.150] (helo=p15145013.pureserver.info)
by mx.kundenserver.de (node=mxeu2) with ESMTP (Nemesis),
id 0MKpdM-1EpYJX2HQC-0000rx for [email protected]; Thu, 22 Dec 2005 22:49:31 +0100
Received: (qmail 22188 invoked by uid 48); 22 Dec 2005 22:02:27 -0000
Date: 22 Dec 2005 22:02:27 -0000
Message-ID: <[email protected]>
To: [email protected]
Subject: Lisa - what about tonight
From: [email protected]
Reply-To: [email protected]
X-Mailer: PHP/4.3.10
Envelope-To: [email protected]
X-SpamScore: 0.339
tests= NO_REAL_NAME

morercpthosts: [ADDED]
rcpthosts: [Yup it's clear]

smtproutes:

mx01.1and1.co.uk:212.227.15.150

If this the right entry? Where that machine is the MX record for the domain in question and that's it's IP?

Problem:
Return-Path: <[email protected]>

Hotmail thinks that email from the server is spam!

ahh! - can this be cured?

Cheers Mark
 
Back
Top