help installing sendmail

Hi,

I'm installing sendmail to a bare centos machine.

I've done most of the installation steps. I got a problem on the stage that I will run newaliases , it is not found on my centos machine. I tried finding it but to no avail...

Here is the procedure that I followed, only the codes starting to newaliases has not been done:

tar -xvzf sendmail.8.x.x.tar.gz

cd sendmail-8.x.x

sh Build

cd cf/cf

cp generic-linux.mc config.mc

sh Build config.cf

cp config.cf /etc/mail/sendmail.cf

cd ..

mkdir /usr/share/sendmail-cf

cp m4 /usr/share/sendmail-cf/ -r

cd ..

cp devtools/OS/Linux devtools/Site/site.config.m4

nano devtools/Site/site.config.m4

Edit - define(`confMANROOT', `/usr/local/share/man/man')

sh Build -c -f /your/directory/sendmail-8.x.x/devtools/Site/site.config.m4 install

mkdir /etc/mail

mkdir /var/spool/mqueue

cat /dev/null > /etc/mail/local-host-names

cat /dev/null > /etc/mail/aliases

newaliases

sendmail -bd -q30m

sendmail youremail@yourdomain.com Test Email

.

cat /var/log/maillog

cp /etc/mail/sendmail.mc.bak /etc/mail/sendmail.mc

nano /etc/mail/sendmail.mc

Edit - dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

m4 /etc/mail/sendmail.mc /etc/mail/sendmail.cf


If my cetos has no newaliases command, how will I go with this install?

Thanks in advance.

 

 

 

 

Top