I am trying to get postfix working, and when I test it using mail user
I enter the subject, message, ect and get the following error:
mail: /usr/sbin/sendmail: No such file or directory
Can't send mail: sendmail process failed
Why is it talking about sendmail? I deleted that a long time ago and am using postfix. Is it still hanging around somewhere and the mail command thinks it should be using sendmail?
Best Answer
The
postfix
package on Debian actually includes an/usr/sbin/sendmail
executable that functions as a compatibility interface (seeman sendmail
whenpostfix
is installed).Check
ls -l /usr/sbin/sendmail*
in case it was renamed or reinstall thepostfix
package so you get the wrapper in place.