Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
one of my client recently took 1and1.com's virtual dedicated server. everything was working fine, and to avoid server load we are using gmail standard business email hosting for our domain hosting. It works fine, except that when a PHP scritp try to send email to internal domain the email never gets delivered nor it stay in queues.
when I do dig -MX for domain server clearly show gmail's MX record so server DNS is serving well. So what can be the possible cause of error and hence what is the solution for it ?
I read somewhere in plesk documentation that to avoid spam, they have some check on sendmail version and that check doesn't consider the MX record but check internal domain user list to see if domain user is valid or not, which in that article says is incorrect. But I am not very professional in managing server and hence I didn't understand that fully. Probably someone out there can help.
Could be you're attempting to mail out through the local machine and it believes it's the end destination for the email. How exactly is he attempting to send the mail, there are a multitude of methods to do it from most of the scripting languages.
We are using simple mail() function of PHP. And that mail function send email to anyother domain that is not hosted on this server.
I try to use sendmail through SSH to send email to internal domain and it fails, but it send to other domain as PHP does. So I believe it is sendmail configuration problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.