Mobile app version of vmapp.org
Login or Join
Karen161

: Is it possible to use server-X's mail server for a site hosted in server-Y? I have 2 hosting server and domain. Let say domain-X is pointed to server-X & domain-Y is pointed to server-Y.

@Karen161

Posted in: #Email #Webserver

I have 2 hosting server and domain.

Let say domain-X is pointed to server-X & domain-Y is pointed to server-Y.

Hosted a site on server-Y & a sub-domain of domain-X is forwarded to domain-Y.

I send mails from the site hosted in the server-Y. But I don't want to use the mail server of the server-Y. I want to use the mail server of server-X.

Is it possible?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Karen161

2 Comments

Sorted by latest first Latest Oldest Best

 

@Carla537

If you have console/administration access to the machines (e.g. you are not on shared hosting) here are two examples (on Unix & Linux Stack Exchange) of what configuration you need to perform:


using sSMTP, or
using postfix.


Basically what you need to do is to configure your server-Y to use server-X as its relay.

10% popularity Vote Up Vote Down


 

@Shanna517

The mail server to send mail to for a given domain will be determined by the mx record. You can manage this with your domain's DNS manager by making entries that point to the desired server for a given domain. This will not affect email sent by other servers claiming to be for this domain, other than the mail will likely end up in spam folders if SPF and DKIM records are not set up or not set up correctly.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme