Where is the /etc/mail from?

The suspense was making me sick
lol I googled it. If you give a man a fish he will eat for a day. If you teach a man to fish he will eat for a lifetime. That's nice of you thanks. Glad I could help.
 
Code:
ns# cd /usr/share/sendmail/cf/cf
/usr/share/sendmail/cf/cf: No such file or directory.

Code:
ns# cd /etc/mail
ns# make
/usr/sbin/sendmail -bi -OAliasFile=/etc/mail/aliases
/usr/sbin/sendmail: not found
*** Error code 127

Stop in /etc/mail.
ns# pkg_info | grep sendmail
sendmail-8.14.3     Reliable, highly configurable mail transfer agent with util
 
Yea I know I googled it. thank you that was nice. I didn't know you were from tokyo that's cool. If you give a man a fish he will eat for a day. If you teach a man to fish he will eat for a lifetime.
 
inurneck said:
The suspense was making me sick
lol I googled it. If you give a man a fish he will eat for a day. If you teach a man to fish he will eat for a lifetime. That's nice of you thanks. Glad I could help.

I have to say "Google is great!"
 
inurneck said:
Did you type make install-cf in /etc/mail

Yes, it works well.

Code:
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 not /usr/sbin/sendmail?
 
No, you dont install it from ports. go make deinstall && make distclean again in ports/sendmail sendmail comes with the base operating system which is what we are focusing on getting to work.
 
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.
 
once you make deinstall && make distclean in the sendmail ports directory, go to /usr/src/usr.sbin/sendmail and type make install
 
inurneck said:
No, you dont install it from ports. go make deinstall && make distclean again in ports/sendmail sendmail comes with the base operating system which is what we are focusing on getting to work.

Code:
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?
 
Code:
ns# pwd
/usr/src/usr.sbin/sendmail
ns# make install
install -s -o root -g smmsp -m 2555   sendmail /usr/libexec/sendmail
install -o root -g wheel -m 444 mailq.1.gz  /usr/share/man/man1
install -o root -g wheel -m 444 newaliases.1.gz  /usr/share/man/man1
install -o root -g wheel -m 444 aliases.5.gz  /usr/share/man/man5
install -o root -g wheel -m 444 sendmail.8.gz  /usr/share/man/man8
/usr/share/man/man8/hoststat.8.gz -> /usr/share/man/man8/sendmail.8.gz
/usr/share/man/man8/purgestat.8.gz -> /usr/share/man/man8/sendmail.8.gz
ns# ll /usr/sbin/sendmail
ls: /usr/sbin/sendmail: No such file or directory
ns# pkg_info | grep sendmail
ns#
 
no you have it or the directory /usr/src would not exist. pay attention to what you just pasted to me. You installed sendmail in /usr/libexec/
 
goldenfire said:
Code:
ns# pwd
/usr/src/usr.sbin/sendmail
ns# make install
install -s -o root -g smmsp -m 2555   sendmail /usr/libexec/sendmail
install -o root -g wheel -m 444 mailq.1.gz  /usr/share/man/man1
install -o root -g wheel -m 444 newaliases.1.gz  /usr/share/man/man1
install -o root -g wheel -m 444 aliases.5.gz  /usr/share/man/man5
install -o root -g wheel -m 444 sendmail.8.gz  /usr/share/man/man8
/usr/share/man/man8/hoststat.8.gz -> /usr/share/man/man8/sendmail.8.gz
/usr/share/man/man8/purgestat.8.gz -> /usr/share/man/man8/sendmail.8.gz
ns# ll /usr/sbin/sendmail
ls: /usr/sbin/sendmail: No such file or directory
ns# pkg_info | grep sendmail
ns#

look at what it did when you typed make install

/usr/src is all the source code for freebsd. You have it installed or src wouldnt exist
 
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?
 
inurneck said:
it installed sendmail and the manpages now go in /etc/mail and type make


Code:
ns# cd /etc/mail
ns# make
/usr/sbin/sendmail -bi -OAliasFile=/etc/mail/aliases
/usr/sbin/sendmail: not found
*** Error code 127

Stop in /etc/mail.
ns#
 
Code:
[133]daemon[/sbin]: pkg_info sendmail
pkg_info: can't find package 'sendmail' installed or in a file!
[134]daemon[/sbin]: ls /usr/libexec/sendmail
sendmail*
[135]daemon[/sbin]:

pkg_info is for "packages" you have installed or "ports". Sendmail comes with the base operating system and is already included. The port exists in case for some reason you don't like the one that comes with the base system. Like the example I gave you with me and ssh I dont like the ssh freebsd comes with so I disable it and use the ports one in /usr/ports/security/ssh2 Do you understand.
 
Good explanation!
But how to solve the
Code:
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#


inurneck said:
[133]daemon[/sbin]: pkg_info sendmail
pkg_info: can't find package 'sendmail' installed or in a file!
[134]daemon[/sbin]: ls /usr/libexec/sendmail
sendmail*
[135]daemon[/sbin]:

pkg_info is for "packages" you have installed or "ports". Sendmail comes with the base operating system and is already included. The port exists in case for some reason you don't like the one that comes with the base system. Like the example I gave you with me and ssh I dont like the ssh freebsd comes with so I disable it and use the ports one in /usr/ports/security/ssh2 Do you understand.
 
That makefile you got from someone else listen to me its for another system. Go into the source directory

Code:
[150]daemon[/usr/src/etc]: cd mail
[151]daemon[/usr/src/etc/mail]: ls
Makefile              aliases               virtusertable.sample
README                mailer.conf
access.sample         mailertable.sample
[152]daemon[/usr/src/etc/mail]:

copy that Makefile to /etc/mail/
 
Back
Top