I have a very strange problem with PHP scripts on my Linux server failing to send mail recently (the mail function returns false and no mail is sent). However this happens only if the script is running under Apache. Apache is running under the nobody user account. If I run the PHP script which sends mail from the command line as root everything works fine and the mail is sent. This leaves me wondering about if this could be some sort of a user rights problem in my system but if so I just cannot pin point what exactly could be wrong and what would need to be done in order to fix it. Has someone here experienced something similar or have some ideas regardiong a cause and a fix.
Thanks