What is the proper permission configuration of sendmail
This question comes from a problem much similar to this https://serverfault.com/questions/320607/ubuntu-jaunty-sendmail-php-mail-premission-errors But those answers don't solve my problem I have a php application which is using PHPMailer to send emails. I installed sendmail on my ubuntu 12.04 LTS with sudo apt-get install sendmail sudo sendmailconfig But the application failed to send any mail. In the mail.err it says: Apr 14 00:31:42 AY sendmail[32241]: NOQUEUE: SYSERR(www-data): can not chdir(/var/spool/mqueue-client/): Permission denied while www-data is the username of apache2. Then I