×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

qmail/sendmail help

qmail/sendmail help

qmail/sendmail help

(OP)
I have installed qmail. I am using the book "Running qmail" along the way. I am now finding this error when I boot up:


Nov 25 05:12:46 scout sendmail: sendmail: usage: sendmail [ -t ] [ -fsender ] [ -Fname ] [ -bp ] [ -bs ] [ arg ... ]
Nov 25 05:12:46 scout sendmail: sendmail startup failed


Any ideas as to why I am getting this error?

Even better, how can I fix it?

Thanks.

RE: qmail/sendmail help

I believe qmail says to uninstall sendmail before you build it.  The two may be getting into a little tiff.

RE: qmail/sendmail help

(OP)
They were working until I did this:


mv /usr/sbin/sendmail /usr/sbin/sendmail.original
mv /usr/lib/sendmail /usr/lib/sendmail.original


then:


ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail


By the book, this is done so you can go back to sendmail if you decide to later.

RE: qmail/sendmail help

It looks like you're making a symbolic link to a file that has been moved (renamed actually).  The ln command requires that the target exists.  Did you check to see if the link was created properly?  And did you setup sendmail so it doesn't load at boot up?    

RE: qmail/sendmail help

(OP)
I have now uninstalled sendmail using rpm -e --nodeps sendmail

Here is the problem now (not verbatim --I can't find anything in the logs):


Starting keytable...
/etc/rc.d/rc3.d/S81qmail:Permission denied


Permissions are correct, root is owner.

RE: qmail/sendmail help

Look at /etc/rc.d/rc3.d/s81qmail and see if it's a symbolic link.  If it is, check permissions.  Try starting qmail as root.  If it starts ok, then the problem is with xinetd or what ever is calling qmail not having permission to execute it.  If all checks out ok, I would check to see what owner AND group qmail needs to run under.  Check the directory properties also.  If one doesn't have permission for the directory,  it doesn't matter how the file permissions are set.

RE: qmail/sendmail help

(OP)
Now on boot, I get an error to the effect of "unexpected error at line 14... stop..."

Is there anything wrong with my startup script (from the SAMS book, Running qmail):


#!/bin/sh

PATH=/var/qmail/bin
export PATH

#Check that qmail is loaded
[ -f /var/qmail/bin/qmail-start ] || exit 0

case "$1" in
  start)
        echo -n "Starting qmail..."
        daemon /var/qmail/rc

  stop)
        echo -n "Stopping qmail..."
        killall qmail-send

  restart)
        $0 stop
        $0 start

  *)
        echo -n "Usage: $0 {start|stop|restart}"
        exit 1
esac

exit 0

RE: qmail/sendmail help

It's very hard for me to tell.  The font on my display is for the birds and I'm not much of a shell script kinda guy.  However,  Here's how it looks to me.  After the shabang it sets the path to the qmail executable.  Then it loads qmail or exits with zero if it fails.  The 'case' gets ignored for the time being because '$1' doesn't have a value yet.  Then it is supposed to prompt you for a choice of start , stop or restart.  When you enter your answer,  '$1" now has a value and it does 'case'.  If you choose restart, it simply does both stop and start.  If you answer anything but start stop or restart, it drops to the default '*' which prompts you with the choices again.  Here's the rub.  The script is trying to do 'restart' and when it comes to '$0 stop' it doesn't know what to do.  This is where my stupidity comes in.  If I couldn't figure out the problem with the script.  I would just type the 2 lines that start it at the command line. For example: '/var/qmail/bin/qmail-start' and 'daemon /var/qmail/rc'.       

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close