Wed - Sep 07, 2011 : 11:46 am
content
Linode / Gentoo / sendmail problem [solved]
When I first installed the 64-bit version of gentoo on linode, everything looked good - except I couldn't get apache to send email. When I emerged PHP, it pulled in ssmtp by default, but that didn't seem to be sending mail at all. So, I emerged sendmail. That got me a little bit further, but the logs were giving me an error when I initialized the service, or when I tried to send a form email (using the "mail()" command in PHP) The error was :
SYSERR(root): collect: Cannot write ./
and then the name of the file.
The solution is really easy, and I hope I can save someone the hour it took me to find this.
The owner of /var/spool/mqueue was root:smmsp.
Change the owner of /var/spool/mqueue to root:root
That did the trick for me. Hope that helps.
Gentoo / Linux