Problem with genericstable feature on Solaris 9

From: Richard Skelton (Richard.Skelton@infineon.com)
Date: Thu Jul 29 2004 - 09:22:10 EDT


Hi,
I am trying to set-up sendmail to rewrite outgoing e-mail addresses
using the genericstable feature (see /usr/lib/mail/README) on my Solaris
9 system.
This system is a fairly new build based on Solaris 9 4/04
SunOS brsrt2 5.9 Generic_112233-12 sun4u sparc SUNW,Ultra-60
with sendmail patch 113575-05
The genericstable feature works fine on Solaris 8
Now with Solaris 9 we have two sendmail daemons so I modified the config
for both which is submit.cf and sendmail.cf :-
# cd /usr/lib/mail/cf
# cp subsidiary.mc test.mc
add FEATURE(`genericstable',`dbm /etc/mail/genericstable')dnl
to the line after define(`SMART_HOST', `mailhost$?m.$m$.')
# setenv CFDIR /usr/lib/mail
# m4 ${CFDIR}/m4/cf.m4 test.mc > test.cf
# cp test.cf /etc/mail/sendmail.cf
# cp submit.mc test1.mc
add FEATURE(`genericstable',`dbm /etc/mail/genericstable')dnl
to the line before FEATURE(`msp', `[127.0.0.1]')dnl
# setenv CFDIR /usr/lib/mail
# m4 ${CFDIR}/m4/cf.m4 test1.mc > test1.cf
# cp test1.cf /etc/mail/submit.cf
# cd /etc/mail
create the file genericstable.txt containing:-
rskelton Richard.Skelton@Infineon.com
# makedbm genericstable.txt genericstable
# /etc/init.d/sendmail stop
# /etc/init.d/sendmail start
# su - rskelton
> mailx Richard.Skelton@Infineon.com
Subject: Test
.
>

The mail is sent but the from address is not modified and we have the:-
Jul 29 10:16:13 brsrt2 sendmail[9603]: [ID 801593 mail.crit]
i6T9GDSS009603: SYSERR(rskelton): dbm map "generics": unsafe map file
/etc/mail/genericstable

in /var/log/syslog

On looking at SunSolve there is an old report for the problem *Document ID:*20760 but my permissions look fine:-

root: ls -ld /etc

drwxr-xr-x 59 root sys 4096 Jul 26 15:03 /etc/

root: ls -ld /etc/mail

drwxr-xr-x 2 root mail 512 Jul 28 13:57 /etc/mail/

root: ls -ld /etc/mail/genericstable.*

-rw------- 1 root other 0 Jul 28 13:57
/etc/mail/genericstable.dir

-rw------- 1 root other 1024 Jul 28 13:57
/etc/mail/genericstable.pag

-rw------- 1 root other 188 Jul 28 12:51
/etc/mail/genericstable.txt

How can I fix this :-)

-- 
Cheers
Richard Skelton
Richard.Skelton@infineon.com
Infineon Technologies UK Ltd
Infineon House
Great Western Court
Hunts Ground Road
Stoke Gifford
Bristol
BS32 8HP
Tel +44(0)117 9528808
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:10 EDT