Not so lucky!
I have removed files insides /usr/obj for disk space problem.
In fact, I have already rebuild kernel + world according to the manual.
Yes, It works. Although I still feel a little different from before, at least it looks all of the utility have come back.
Thanks all of the help.
I believe that I only runned pkg_delete and make deinstall of sendmail.
I still do not understand yhy sendmail was removed.
Do you mean that I need build kernel too?
Remove sendmail is really a foolish decision.
Maybe my installation method is not correct.
cd /usr/src/usr.sbin/sendmail/
make install
What is the right way to install sendmail on freebsd after removed it?
Below is current status.
ns# ls /usr/bin/mail
/usr/bin/mail
ns# ls...
This is a problem accompany with my former Post
"Where is the /etc/mail from?"
http://forums.freebsd.org/showthread.php?t=10745
Now I have installed sendmail again like below and sendmail works.
But I get some error message
ns# tail /var/log/messages
Jan 28 16:36:55 ns sm-mta[36059]...
Thank a lot to inurneck.
Under his instructions, I caught the reason that there is a backspace character appending to my hostname.
This let /etc/mail/Makefile does not work well.
ns# ln -s mailwrapper sendmail
ns# cd /etc/mail
ns# make
/usr/sbin/sendmail -bi -OAliasFile=/etc/mail/aliases
/etc/mail/aliases: 27 aliases, longest 10 bytes, 275 bytes total
chmod 0640 /etc/mail/aliases.db
Maybe I only need to get /etc/rc.d/sendmail back.
I think I only removed /etc/mail and deinstall sendmail ports
Maybe removed /etc/rc.d/sendmail. Maybe not.
But I am sure I did not touch /usr/sbin/sendmail
Good explanation!
But how to solve the
ns# ll /usr/sbin/sendmail
ls: /usr/sbin/sendmail: No such file or directory
ns# ll /usr/rc.d/sendmail
ls: /usr/rc.d/sendmail: No such file or directory
ns#
But why pkg_info does not show me the installed info of sendmail?
Another question why we could not install sendmail from port?
If we can not, what is the meaning of this port?
ns# make deinstall && make distclean
===> Deinstalling for mail/sendmail
===> Deinstalling sendmail-8.14.3
===> Cleaning for sendmail-8.14.3
===> Deleting distfiles for sendmail-8.14.3
ns# pkg_info | grep sendmail
ns#
Then what should I do to install sendmail again?
Now I believed that all of the problems came from that there is a backspace appending with my hostname.
Because of my silly operation, it got more complicated.
Yes, it works well.
ns# make install-cf
install -m 444 ns.goldenfire.com.cf /etc/mail/sendmail.cf
ns# make
/usr/sbin/sendmail -bi -OAliasFile=/etc/mail/aliases
/usr/sbin/sendmail: not found
*** Error code 127
Stop in /etc/mail.
ns#
I have installed sendmail with ports. But why there is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.