: 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.
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?
More posts by @Karen161
2 Comments
Sorted by latest first Latest Oldest Best
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.
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.