• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Route Domain Mail to a Different Server

DeanC@

Basic Pleskian
This is on a Plesk 8.3, CentOS, qmail, etc. server.

I have a php form on domain1.com that sends mail to an address at domain2.com.

Both web sites, and the mail for domain1.com, are hosted on the same dedicated server. However, the domain2.com mail server is hosted elsewhere (in-house).

When the mail goes from domain1.com to the address at domain2.com, I get bounce messages such as ...

<[email protected]>:
This address no longer accepts mail.

So, how do I get the mail to go from domain1.com to domain2.com's mail server?
 
Hello,

When you create domain in Plesk it automatically adds this domain to list of local domains (/var/qmail/control/rcpthosts). So when you will be sending mail from a web form on this domain Plesk will threat this mailbox as local and will tend to send mail for it locally instead of sending it to remote server. Most probably you have not created mailbox [email protected] in Plesk (because it is created on remote mail server you are using and there is no need to create it in Plesk) so mail server does not find it and this may be the reason why you are getting this error.

To avoid this you should disable mail for this domain: Domains > domain name > Mail > Disable

In this case this domain will be removed from list of local domain in qmail and mail will be sent to remote server.
 
Back
Top