smclient error

Hi, I just updated my redhat 9 with the RHN... did the whole process with the new up2date, etc.
The sendmail was updated but when I try to start it i get this error message:


Starting sendmail: [  OK  ]
Starting sm-client: sendmail: invalid option -- A
sendmail: fatal: usage: sendmail [options]
[FAILED]


Any idea on how to solve this problem?

Thanks!

ps. If you need more info about my conf. I will gladly post it.
LVL 1
lolavarrietaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jlevieCommented:
What is the size and file date of /etc/init.d/sendmail? After the update of sendmail I'd expect a file size of 2442 and a date of Jul 23 20:27 if you haven't modified that script.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lolavarrietaAuthor Commented:
-rwxr-xr-x    1 root     root         2444 Aug 29 08:54 sendmail

thats what I got...

what should I do to correct this error message?
jlevieCommented:
I don't know what happened to the sendmail init script, but I expect that there's something wrong with the line that starts the MSA. The start() function in the script should look like:

start() {
      # Start daemons.

      echo -n $"Starting $prog: "
      /usr/bin/newaliases > /dev/null 2>&1
      if test -x /usr/bin/make -a -f /etc/mail/Makefile ; then
        make all -C /etc/mail -s
      else
        for i in virtusertable access domaintable mailertable ; do
          if [ -f /etc/mail/$i ] ; then
            makemap hash /etc/mail/$i < /etc/mail/$i
          fi
        done
      fi
      daemon /usr/sbin/sendmail $([ "$DAEMON" = yes ] && echo -bd) \
                        $([ -n "$QUEUE" ] && echo -q$QUEUE)
      RETVAL=$?
      echo
      [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sendmail

      if ! test -f /var/run/sm-client.pid ; then
      echo -n $"Starting sm-client: "
      touch /var/run/sm-client.pid
      chown smmsp:smmsp /var/run/sm-client.pid
      daemon --check sm-client /usr/sbin/sendmail -L sm-msp-queue -Ac \
                        -q$SMQUEUE
      RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sm-client
        fi

      return $RETVAL
}

And it would be the line that begins with "daemon --check sm-client" that would be of interest.
Rowby Goren Makes an Impact on Screen and Online

Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

lolavarrietaAuthor Commented:
is the /etc/rc.d/init.d/sendmail script you are talking about?
lolavarrietaAuthor Commented:
this is how my start looks...
and as far as I can see.. they look exactly the same....
start() {
        # Start daemons.

        echo -n $"Starting $prog: "
        /usr/bin/newaliases > /dev/null 2>&1
        if test -x /usr/bin/make -a -f /etc/mail/Makefile ; then
          make all -C /etc/mail -s
        else
          for i in virtusertable access domaintable mailertable ; do
            if [ -f /etc/mail/$i ] ; then
                makemap hash /etc/mail/$i < /etc/mail/$i
            fi
          done
        fi
        daemon /usr/sbin/sendmail $([ "x$DAEMON" = xyes ] && echo -bd) \
                                $([ -n "$QUEUE" ] && echo -q$QUEUE)
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sendmail

        if ! test -f /var/run/sm-client.pid ; then
        echo -n $"Starting sm-client: "
        touch /var/run/sm-client.pid
        chown smmsp:smmsp /var/run/sm-client.pid
        daemon --check sm-client /usr/sbin/sendmail -L sm-msp-queue -Ac \
                                -q$SMQUEUE
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sm-client
        fi

        return $RETVAL
}
jlevieCommented:
Well there's somethin different, based on the file date and size. If you'll send me an email (jim@entrophy-free.net) I'll send you the copy off my RH 9 system.
lolavarrietaAuthor Commented:
didnt work... same error message

Starting sendmail: [  OK  ]
Starting sm-client: sendmail: invalid option -- A
sendmail: fatal: usage: sendmail [options]
[FAILED]



jlevieCommented:
Okay, time to play 20 questions...

Is this a stock RedHat installation? Meaning that only packages from the RedHat distribution have been installed, either from the CD's or from the RH9 errata collection.

What does 'rpm -qa | grep sendmail' show?

What does 'rpm --verify sendmail' show?

What does /etc/sysconfig/sendmail contain?

What does 'ls -l /usr/sbin/sendmail' show?
lolavarrietaAuthor Commented:
I decided to reinstall ALL the sendmail... that solved the problem...
Thanks for your time Jlevie... I will grant the points right now!!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.