-   Gentoo (
-   -   Strange issue (

MarcusWebb1966 04-04-2012 06:13 AM

Strange issue

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.

Kustom42 04-05-2012 12:38 PM

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.

MarcusWebb1966 04-10-2012 03:45 AM

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!

All times are GMT -5. The time now is 02:42 AM.