• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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