Possible Duplicate:
I deleted /etc/passwd yesterday and I am having problems with SendMail today
So yesterday Webmin deleted my /etc/passwd
and although it looks like everything is working, I can't get sendmail to work when used in a PHP script.
Using mail()
returns false, using PHPMailer
results in "Mailer cannot execute sendmail".
I am 100% sure that this problem has happened because of the passwd
file, I just can't figure out how to fix it.
I noticed a few users got corrupt and I had to replace them.
EDIT: I should probably mention, if I try and send it through sendmail itself it works perfectly.
For people saying restore the /etc/passwd, I have already done this and the issue still remains.
Nov 8 09:13:15 jbrunton sendmail[31494]: NOQUEUE: SYSERR(UID48): /etc/mail/submit.cf: line 432: readcf: option RunAsUser: unknown user smmsp: Permission denied
Nov 8 09:13:15 jbrunton sendmail[31494]: NOQUEUE: SYSERR(UID48): /etc/mail/submit.cf: line 451: readcf: option TrustedUser: unknown user smmsp: Permission denied
Nov 8 09:13:15 jbrunton sendmail[31494]: NOQUEUE: SYSERR(UID48): can not write to queue directory /var/spool/clientmqueue/ (RunAsGid=0, required=51): Permission denied