I am trying to use sendmail
out of the box in Ubuntu 16 using the default configuration. (I just need an MTA to deliver mail out from my application.) When I try to send a mail, I get:
Cannot write ./dfv5T8wZmB004563 (bfcommit, uid=0, gid=115): No such file or directory]
QueueDirectory
in sendmail.cf says /var/spool/mqueue
. I created that folder and gave write rights to the world, but the same error message persists. Note that it says doesn't exist and not permission denied. So what folder is it attempting to write to?
Best Answer
More background. Mine was a newly installed Ubuntu server on GoDaddy. I didn't install sendmail myself. I discovered I had it only when I installed Postfix and was telneting to localhost on port 25 and the response showed it was sendmail. The files were in /etc/mail.
I uninstalled Postfix and the sendmail was still there. But when I attempted to send any mail, I got that write error.
I killed the sendmail process and then any attempts to restart sendmail resulted in nothing happening, ie no error messages, no sendmail running.
I tried
apt-get purge sendmail
and nothing happened either. I could remove sendmail only withapt-get purge sendmail*
. I thenapt-get install sendmail
and now it worked.