Recently, one of my collegue started having issues sending mail from different hosts where we were developping sites. He then remembered a long time ago that using the 5th parameter, he can pass a "-f email" in the mail() call such as:
mail('mdumoulin@mydomain.com', 'test', 'test', '', '-f mdumoulin@mydomain.com');
I'm really wondering WHY does he have to do this and what is the cause of my mail not going out when i don't use this flag.
Note that the same thing just occured again on the development server i was building, if i didn't put that 5th param, the mail were getting lost in space and never sent.
UPDATE
How can i manage to configure postfix/php to prevent me from having to use this configuration. I've been programming PHP for 11 years and i only recently started to have to do this. There must be a way to prevent this from hapenning...