I had an issue where the permissions of /var/lib/php/session got overwritten so I could no longer created session variables in PHP.

I think the same thing is happening with my mail function. Where is the mail function located in a linux server so that I can chmod it?

---

### Edit

Some additional information:

```
$ "This is a test" | mail -s "Testing 123" team_pegasus@rayhawk.com
-bash: This is a test: command not found
Null message body; hope that's ok
postdrop: warning: mail_queue_enter: create file maildrop/111989.3781: Permission denied
postdrop: warning: mail_queue_enter: create file maildrop/112524.3781: Permission denied
postdrop: warning: mail_queue_enter: create file maildrop/113649.3781: Permission denied
postdrop: warning: mail_queue_enter: create file maildrop/114574.3781: Permission denied
postdrop: warning: mail_queue_enter: create file maildrop/115551.3781: Permission denied

chmod: changing permissions of `/usr/sbin/sendmail.postfix': Operation not permitted

chmod: changing permissions of `/usr/sbin/sendmail': Operation not permitted

```