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.
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!