Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sendmail-8.11.6 on Irix 5.3

6 views
Skip to first unread message

Robert M. Stockmann

unread,
Aug 24, 2009, 5:02:17 PM8/24/09
to

All the gear described below can be downloaded from :

ftp://ftp.crashrecovery.org/pub/irix/
ftp://ftp.crashrecovery.org/pub/irix/irixlicenses/
ftp://ftp.crashrecovery.org/pub/irix/sendmail/
ftp://ftp.crashrecovery.org/pub/irix/sleepycat/

(if my webserver is back online its also available from
http://crashrecovery.org/irix/ )

Sendmail-8.11.6 on Irix 5.3 IP22 MIPS

built with the native C compiler

c_dev' C, 3.19 04/02/103"
irix4_c' Ansi C, 3.10.1 04/02/103"
irix4_c.sw' Ansi C Software 04/02/103"
irix4_c.sw.c' Ansi C Compiler 04/02/103"
irix4_c.sw.copt' Ansi C Copt Scalar Optimizer 04/02/103"
irix4_c.sw.util' Ansi C Utilities 04/02/103"

as a shared binary in combination
with SleepyCat's db.1.85 :

[shockley:root]:(/)# elfdump -Dl /usr/lib/sendmail


/usr/lib/sendmail:
***LIBRARY LIST SECTION***
Name Time-Stamp CheckSum Flags Version
.liblist
libdb.so.2 Aug 24 01:02:36 2009 0x18185498 NONE
libmalloc.so Nov 1 04:21:20 1994 0xfe55afa4 NONE sgi1.0
libc.so.1 Nov 1 04:18:58 1994 0x47ba9926 NONE sgi1.0

[shockley:root]:(/)# /usr/lib/sendmail -d0.1
Version 8.11.6
Compiled with: LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NETINET
NETUNIX NEWDB QUEUE SCANF SMTP USERDB XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = shockley
(canonical domain name) $j = shockley.stokkie.net
(subdomain name) $m = stokkie.net
(node name) $k = shockley
========================================================

Recipient names must be specified
[shockley:root]:(/)#

On a linux RPM based system NFS export a source directory e.g. /data2 :

2. mkdir /data2/RPM ; cd /data2/RPM ;
mkdir BUILD RPMS SOURCES SPECS SRPMS
cd /usr/src/RPM
mv BUILD BUILD.org ; ln -s /data2/RPM/BUILD .

3. install the sendmail SRPM :
cd /usr/src/RPM/SRPMS
rpm -i sendmail-8.11.6-15.src.rpm (the official SRPM for sendmail
on RedHat 7.3 )
4. cp sendmail.spec into /usr/src/RPM/SPECS :
cd /data2/irix/sendmail
cp sendmail.spec /usr/src/RPM/SPECS

5. [weyl:root]:(/data2/RPM/SPECS)# cd /usr/src/RPM/SPECS/
[weyl:root]:(/usr/src/RPM/SPECS)# rpm -v -ba sendmail.spec
error: Failed build dependencies:
gdbm-devel is needed by sendmail-8.11.6-15.72
cyrus-sasl-devel is needed by sendmail-8.11.6-15.72
db3-devel is needed by sendmail-8.11.6-15.72
[weyl:root]:(/usr/src/RPM/SPECS)# rpm -v -ba sendmail.spec --nodeps
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.83507
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf sendmail-8.11.6
+ /bin/gzip -dc /usr/src/RPM/SOURCES/sendmail.8.11.6.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd sendmail-8.11.6
+ echo 'Patch #0 (sendmail-8.11.0-redhat.patch):'
Patch #0 (sendmail-8.11.0-redhat.patch):
+ patch -p1 -s
+ echo 'Patch #2 (sendmail-8.10.0-makemapman.patch):'
Patch #2 (sendmail-8.10.0-makemapman.patch):
+ patch -p1 -s
+ echo 'Patch #3 (sendmail-8.10.0-smrsh-paths.patch):'
Patch #3 (sendmail-8.10.0-smrsh-paths.patch):
+ patch -p1 -s
+ echo 'Patch #4 (sendmail-8.10.1-movefiles.patch):'
Patch #4 (sendmail-8.10.1-movefiles.patch):
+ patch -p1 -s
+ echo 'Patch #5 (sendmail-8.12.2-unix.patch):'
Patch #5 (sendmail-8.12.2-unix.patch):
+ patch -p1 -s
+ echo 'Patch #6 (sendmail-8.11.6-localdomain.patch):'
Patch #6 (sendmail-8.11.6-localdomain.patch):
+ patch -p1 -s
+ BOO
/var/tmp/rpm-tmp.83507: line 43: BOO: command not found
error: Bad exit status from /var/tmp/rpm-tmp.83507 (%prep)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.83507 (%prep)
[weyl:root]:(/usr/src/RPM/SPECS)#

Now the source for sendmail had been put in place for Irix 5.3 which
has /data2 from weyl mounted as a NFS share at /mnt/data2 in the below
example. On the the Irix5.3 machine shockley do the following :

1. cd /mnt/data2/irix/sendmail
cp site.config.m4 /mnt/data2/RPM/BUILD/sendmail-8.11.6/devtools/Site

2. cd /mnt/data2/RPM/BUILD/sendmail-8.11.6/sendmail
sh Build

3. cd /mnt/data2/irix/sendmail
cp irix5.mc /mnt/data2/RPM/BUILD/sendmail-8.11.6/cf/cf
cd /mnt/data2/RPM/BUILD/sendmail-8.11.6/cf/cf
./Build irix5.cf

4. mkdir /etc/mail
chmod go-w / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue
chown root / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue

5. cd /mnt/data2/RPM/BUILD/sendmail-8.11.6/cf/cf
cp -p irix5.cf /etc/mail/sendmail.cf
cd /mnt/data2/RPM/BUILD/sendmail-8.11.6/sendmail
sh Build install

6. cd /mnt/data2/RPM/BUILD/sendmail-8.11.6/
for i in libmilter libsmdb libsmutil mail.local mailstats \
makemap praliases rmail smrsh vacation
do
pushd $i
if [ "$i" = "rmail" ]; then
sh Build force-install
elif [ "$i" = "mail.local" ]; then
sh Build force-install
else
sh Build install
fi
popd
done

7. cd /mnt/data2/irix/sendmail
cp -p sendmail.init /etc/init.d/sendmail
cd /etc/rc2.d
rm S50mail
ln -s ../init.d/sendmail S50sendmail

8. Make sure the mail account is properly configured :

[shockley:root]:(/etc/init.d)# grep mail /etc/passwd
mail:*:8:4:mail:/var/mail:/dev/null
[shockley:root]:(/etc/init.d)# grep mail /etc/group
mail::4:root
[shockley:root]:(/etc/init.d)#

9. Install the additional files and utils inside /etc/mail :

cd /mnt/data2/irix/sendmail/etc/mail
cp -p * /etc/mail
cd /etc/mail
(edit e.g. /etc/mail/access and add your local LAN ip-numbers etc.)
make

10. Fire up your sendmail (after moving the old broken one
out of the way of course ) :

cd /etc/rc2.d
[shockley:root]:(/etc/rc2.d)# ./S50sendmail status
/usr/lib/sendmail is stopped
[shockley:root]:(/etc/rc2.d)# ./S50sendmail start
Starting sendmail: ... sendmail started
[shockley:root]:(/etc/rc2.d)#
[shockley:root]:(/etc/rc2.d)# ./S50sendmail status
/usr/lib/sendmail (pid 26840) is running...
[shockley:root]:(/etc/rc2.d)#

from /var/adm/MAILLOG :

Aug 24 18:36:50 5C:shockley sendmail[26831]: alias database /etc/aliases rebuilt by stock
Aug 24 18:36:51 6C:shockley sendmail[26831]: /etc/aliases: 30 aliases, longest 10 bytes, 463 bytes total
Aug 24 18:36:51 6C:shockley sendmail[26840]: starting daemon (8.11.6): SMTP+queueing@01:00:00

11. Logging the mail messages inside a different location as SYSLOG :

edit /etc/syslog.conf (my adjusted edition) :

# Configuration file for syslogd(1M)
# $Revision: 1.11 $
#
# Formats: selector<TAB>action
# selector<TAB>filter<TAB>action
kern.debug;mail.none |/usr/sbin/klogpp /var/adm/SYSLOG
*.debug;kern.none;mail.none /var/adm/SYSLOG
mail.debug /var/adm/MAILLOG
*.crit |/var/adm/sysmonpp /var/adm/SYSLOG

touch /var/adm/MAILLOG

12. Adjust the rotating of logfile inside the crontab :

Here comes the adjusted section from contrab -l (Warning Irix5.3
does NOT have crontab -e! ) :

# Rotate the logs
1 1 * * 0 umask 033;cd /var/cron;if test -s log && test "`wc -c log`" -ge 10240; then mv -f log OLDlog;touch log; killall 1 cron; fi
1 1 * * 0 umask 077;cd /var/adm;if test -s sulog && test "`wc -c sulog`" -ge 10240; then mv -f sulog OLDsulog;touch sulog; fi
1 1 * * 0 umask 033;cd /var/adm;if test -s SYSLOG && test "`wc -c SYSLOG`" -ge 10240; then mv -f SYSLOG oSYSLOG;touch SYSLOG; killall 1 syslogd; fi
1 1 * * 0 umask 033;cd /var/adm;if test -s MAILLOG && test "`wc -c MAILLOG`" -ge 10240; then mv -f MAILLOG oMAILLOG;touch MAILLOG; killall 1 syslogd; fi
#

Robert M. Stockmann
--
Robert M. Stockmann - RHCE
Network Engineer - UNIX/Linux Specialist
crashrecovery.org st...@stokkie.net

Cydrome Leader

unread,
Sep 17, 2009, 1:12:53 PM9/17/09
to
In comp.sys.sgi.admin Robert M. Stockmann <st...@stokkie.net> wrote:
>
> All the gear described below can be downloaded from :
>
> ftp://ftp.crashrecovery.org/pub/irix/
> ftp://ftp.crashrecovery.org/pub/irix/irixlicenses/
> ftp://ftp.crashrecovery.org/pub/irix/sendmail/
> ftp://ftp.crashrecovery.org/pub/irix/sleepycat/
>
> (if my webserver is back online its also available from
> http://crashrecovery.org/irix/ )
>
> Sendmail-8.11.6 on Irix 5.3 IP22 MIPS
>
> built with the native C compiler
>
> c_dev' C, 3.19 04/02/103"
> irix4_c' Ansi C, 3.10.1 04/02/103"
> irix4_c.sw' Ansi C Software 04/02/103"
> irix4_c.sw.c' Ansi C Compiler 04/02/103"
> irix4_c.sw.copt' Ansi C Copt Scalar Optimizer 04/02/103"
> irix4_c.sw.util' Ansi C Utilities 04/02/103"

Is "04/02/103" supposed to be April 2, 2003?


0 new messages