GentooThis forum is for the discussion of Gentoo Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Let me describe the scenario, and then see what you may say is likely to be the cause:
We've got a page written in PHP on our gentoo server. The page is basically a POST form and emails the details to a client. When we access this from our office and complete the form, the customer receives the email. When the customer does this from their office, with the same form and the same details, they do not receive this. The mail processor on the server is postfix and the call is the basic mail call in PHP, nothing fancy.
At first we thought there might be some random firewall issue but given that the same form is used by both parties, and that the mail processor is the same, I don't realistically see that this would be the case, particularly as the IP address for the server is going to be the same as the originator (clearly the same goes for spam filtering or whitelisted filtering). The issuer email address is the same too, in case you were wondering.
As ever, your thoughts and ideas gratefully received.
Have you looked through your mail and apache logs to see if any errors are reporting? For diagnoses you may also want to append the script to do an fopen and fwrite to write the post to a file and verify that it is actually posting.
Found out the answer: Transpired that we were getting bouncebacks as the server set the "FROM" address as the email address given in the form. The client had managed to put their spam filter (relatively sensibly, one supposes) to say if the mail comes from their domain but not from an internal IP address, it must be spoofing the system and therefore rejected it. I Thank you Kustom42 for your ideas!