I am trying to tát 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 tệp tin 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?

adamo

6,9753 gold badges32 silver badges58 bronze badges

asked May 12, 2011 at 17:50

2

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 ví you get the wrapper in place.

answered May 12, 2011 at 17:57

14

If you tự not have /usr/sbin/sendmail, kiểm tra if after installing postfix package, you have:

/usr/sbin/sendmail.postfix

If you tự, simply make a symlink:

ln -s /usr/sbin/sendmail.postfix /usr/sbin/sendmail

answered Jan 11, 2013 at 9:59

The postfix installation is probably broken. Try this:

sudo aptitude reinstall postfix

answered May 12, 2011 at 18:00

1

I have met the same problem, and the following cmd fix it,

sudo apt-get install mailutils

answered Dec 2, năm 2016 at 8:46

I had a situation in linux machines at my work place where accidently emptied the mailq (mta-mail) tệp tin with echo > instead of postgress -d all commands and my it was a scare . Never going to tát touch binaries lượt thích that :)

SO in the system usually i seen they use many softlinks to tát liên kết mailq, sendmai, to tát finally on the sendmail.postfix

I got a solution by installing sendmail package again.

im on Centos so yum install sendmail THis site helped bu out with steps manual https://docs.bitnami.com/aws/apps/oxid/troubleshooting/send-mail/

answered Oct 21, 2021 at 18:39

For Debian 12 admin user I had to tát add /usr/sbin to tát it's path:

Add this to tát the bottom of ~/.profile:

if [ -d "/usr/sbin" ] ; then
    PATH="/usr/sbin:$PATH"
fi

$ source ~/.profile # or logout / login.

answered Dec 22, 2023 at 18:18

You must log in to tát answer this question.

Not the answer you're looking for? Browse other questions tagged

.