# # 10-Oct-02 amo Install Sendmail-8.12.6 # # # # See what/which MTA version you are currently running # ------------------------------------------ telnet localhost 25 quit # # # # cd /usr/local/src # wget http://www.sendmail.org/ftp/sendmail.8.12.6.tar.Z # # # Verify the md5sum of the file # ------------------------------ # md5sum sendmail.8.12.6.tar.gz # 73e18ea78b2386b774963c8472cbd309 sendmail.8.12.6.tar.gz # # # tar zxvfp sendmail.8.12.6.tar.gz # # cd sendmail.8.12.6 # vi devtools/bin/configure.sh # # # # use these variables instead of just -DNEWDB # # # -DNEWDB -DMAP_REGEX -DDNSMAP # sh Build # -- you MUST see -DNEWDB -DMAP_REEX -DDNSMAP being used # # # Make cf files w/ AntiSpam ( RBL checks ) enabled # ------------- cd cf/cf wget http://www.Linux-Sec.net/Mail/etc.mail/sendmail.rbl.mc # wget http://www.Linux-Sec.net/Mail/etc.mail/sendmail.rbl.cf # cp sendmail.rbl.mc config.mc sh Build config.cf # -- should have created config.cf # # # add the check_local() stuff later # --------------------------------- # # # # Save old copy first # ------------------- # cp -p /etc/mail/sendmail.mc /etc/mail/sendmail.b4.2002Oct10.mc cp -p /etc/mail/sendmail.cf /etc/mail/sendmail.b4.2002Oct10.cf # cp -p /usr/sbin/sendmail /usr/sbin/sendmail.b4.2002Oct10 # # # # Now install new sendmail # ------------------------ groupadd -g 225 smmsp useradd -u 225 -g 225 -d /home/smmsp -s /bin/false smmsp # chown smmsp.smmsp /var/spool/clientmqueue chmod 770 /var/spool/clientmqueue # # # sh Build install # mail.local # rmail # # ls -la /usr/sbin/sendmail* # -r-xr-sr-x 1 root smmsp 556062 Oct 10 21:46 /usr/sbin/sendmail # # ls -la /var/spool/clientmqueue # drwxr-xr-x 2 root root 4096 Oct 10 21:42 /var/spool/clientmqueue # # # # Now install/verify the restricted shell stuff # ln -s /usr/sbin/smrsh /etc/smrsh/smrsh # # # cd /usr/local/src/sendmail-8.12.6 # grep SMRSH_CMDDIR */*/*.h # # directories # ln -s /etc/smrsh /var/adm/sm.bin ln -s /etc/smrsh /usr/adm/sm.bin ln -s /etc/smrsh /usr/libexec/sm.bin ln -s /etc/smrsh /usr/libexec/smrsh # # # -- more stuff to do -- # ---------------------- # cd /etc/mail make # # /etc/rc.d/init.d/sendmail stop /etc/rc.d/init.d/sendmail start # # # Fix any errrors shown # ---------------------- tail -100 /var/log/maillog # # telnet localhost 25 quit # # # make sure local mail delivery works # ------------------------------------ mail -v -s test root < /dev/null # Null message body; hope that's ok # root... Connecting to local... # root... Sent # mail -v -s test info@your_domain.com < /dev/null # # # # End of file