pirat
2004-Jan-22 22:50 UTC
SYSERR(root) Can not exec /bin/mail: No such file or directory
hi sirs, i hvae just noticed that if /usr/src/contrib/sendmail/cf/mailer/local.m4 has a line that says ifdef(`LOCAL_MAILER_PATH',, `define(`LOCAL_MAILER_PATH', /bin/mail)') will result in error at boot time. i simply change that line to ifdef(`LOCAL_MAILER_PATH',, `define(`LOCAL_MAILER_PATH', /usr/bin/mail)') and error disappears after doing make install at /etc/mail. but i do not know of any side effects will happen. my system is [firak] /usr/src/contrib/sendmail/cf/mailer # uname -a FreeBSD firak.thai-aec.org 4.9-STABLE FreeBSD 4.9-STABLE #3: Fri Jan 23 10:25:43 ICT 2004 root@firak.thai-aec.org:/var/obj/usr/src/sys/Firak i386 [firak] /usr/src/contrib/sendmail/cf/mailer # -- with best regards, psr http://www.thai-aec.org http://www.thai.net/makham
Don Lewis
2004-Jan-23 00:04 UTC
SYSERR(root) Can not exec /bin/mail: No such file or directory
On 23 Jan, pirat wrote:> hi sirs, > > i hvae just noticed that if /usr/src/contrib/sendmail/cf/mailer/local.m4 has > a line that says > > ifdef(`LOCAL_MAILER_PATH',, `define(`LOCAL_MAILER_PATH', /bin/mail)') > > will result in error at boot time. i simply change that line to > > ifdef(`LOCAL_MAILER_PATH',, `define(`LOCAL_MAILER_PATH', /usr/bin/mail)') > > and error disappears after doing make install at /etc/mail. but i do not > know of any side effects will happen. my system is > > [firak] /usr/src/contrib/sendmail/cf/mailer # uname -a > FreeBSD firak.thai-aec.org 4.9-STABLE FreeBSD 4.9-STABLE #3: Fri Jan 23 10:25:43 > ICT 2004 root@firak.thai-aec.org:/var/obj/usr/src/sys/Firak i386 > [firak] /usr/src/contrib/sendmail/cf/mailer #It looks like your sendmail .mc file (which is used to build your sendmail.cf) is missing the OSTYPE(freebsd4) statement which pulls in /usr/src/contrib/sendmail/cf/ostype/freebsd4.m4, which defines LOCAL_MAILER_PATH as /usr/libexec/mail.local. You'll probably want to use /etc/mail/freebsd.mc as the starting point for your sendmail configuration.