• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Where is the /etc/mail from?

inurneck

Active Member

Thanks: 4
Messages: 142

#27
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.
 

goldenfire

Member

Thanks: 2
Messages: 62

#28
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
 

inurneck

Active Member

Thanks: 4
Messages: 142

#31
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.
 

goldenfire

Member

Thanks: 2
Messages: 62

#33
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!"
 

goldenfire

Member

Thanks: 2
Messages: 62

#34
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?
 

inurneck

Active Member

Thanks: 4
Messages: 142

#35
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.
 

goldenfire

Member

Thanks: 2
Messages: 62

#36
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.
 

inurneck

Active Member

Thanks: 4
Messages: 142

#37
once you make deinstall && make distclean in the sendmail ports directory, go to /usr/src/usr.sbin/sendmail and type make install
 

goldenfire

Member

Thanks: 2
Messages: 62

#38
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?
 

goldenfire

Member

Thanks: 2
Messages: 62

#41
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#
 

inurneck

Active Member

Thanks: 4
Messages: 142

#43
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/
 

inurneck

Active Member

Thanks: 4
Messages: 142

#44
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
 

goldenfire

Member

Thanks: 2
Messages: 62

#46
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?
 

goldenfire

Member

Thanks: 2
Messages: 62

#47
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#
 

inurneck

Active Member

Thanks: 4
Messages: 142

#48
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.
 

goldenfire

Member

Thanks: 2
Messages: 62

#49
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.
 

inurneck

Active Member

Thanks: 4
Messages: 142

#50
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/
 
Top