Debian – Postfix: /usr/sbin/sendmail: No such file or directory – why

debianpostfix

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 (see man sendmail when postfix is installed).

Check ls -l /usr/sbin/sendmail* in case it was renamed or reinstall the postfix package so you get the wrapper in place.