Problem with genericstable feature on Solaris 9

From: Richard Skelton (Richard.Skelton_at_infineon.com)
Date: 07/29/04

  • Next message: Melissa Young: "Install BIND 9.3.0 on Solaris 9"
    Date: Thu, 29 Jul 2004 14:22:10 +0100
    To: SunManagers <sunmanagers@sunmanagers.org>
    
    

    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
    

  • Next message: Melissa Young: "Install BIND 9.3.0 on Solaris 9"

    Relevant Pages

    • Re: Solaris 8 - Configuring sendmail relay (NoAuth inbound -> SSL outbound)
      ... that mail.local was not really intended for a more or less "stock" Solaris system. ... Having removed SUNWsndmr and SUNWsndmu, should I consider the warning to be inapplicable in my case, and go ahead and install this component? ... Also in the syslog I see messages about "broken pipe", "unknown mailer error 5", and "cannot save rejected mail anywhere". ... It seems from the mail -x output that mail is handing off to sendmail just fine, if I'm correct in assuming that no blatantly bad news there is good news. ...
      (comp.mail.sendmail)
    • Re: Can I send my own mail, without my ISPs servers??
      ... My main computer is a Sun Blade 2000 running Solaris 10. ... registration/hosting/DNS provider, is a better choice than handling it ... sendmail newsgroup. ...
      (comp.mail.sendmail)
    • Re: How to enable network on Solaris 10 experimental
      ... This command may be removed in a future Solaris ... after login I get the "DT messaging system could not ... I still can not send mail by sendmail to ... You seem to have gotten DNS configured somehow since nslookup gave you an address for google. ...
      (comp.unix.solaris)
    • Re: Help needed for sendmail config for home user
      ... We need to find a Solaris andSendmailguru between us. ... Sendmail should be able to send mail as shipped in solaris but your ... sendmail to use your ISP's SMTP server as a "smart host". ...
      (comp.mail.sendmail)
    • RESOLVED: Solaris 8 - Configuring sendmail relay (NoAuth inbound -> SSL outbound)
      ... If your smtp server is smtp.att.yahoo.com then the default sendmail installed with Solaris 8 will no longer be able to send mail. ... gunzip & untar BerkeleyDB.4.2; install per the README. ...
      (comp.mail.sendmail)