Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I followed all the proper steps to install sendmail. I have a sendmail binary in /usr/sbin and my config file is in /ect/mail , but sendmail still won't run. I setup a user and group smmsp and set all the permissions properly. My system gives me this warning when I shutdown: WARNING: Mail Transfer Agent sendmail not installed. What is going on?? How do I start sendmail?
Ya, that's what I figured, but there was no init script created for it on installation. How would I go about creating one? My distro is Caldera OpenLinux 2.4 I figured that there should be an init script in init.d on my system it is /etc/rc.d/init.d but nothing is there for it. I figured that maybe it was becuase the installation script couldn't find the init.d directory so I made a symlink /etc/init.d to my init.d directory and reinstalled, but it still didn't create any script for it.
#!/bin/bash
#
# sendmail This shell script takes care of starting and stopping
# sendmail.
#
# chkconfig: 2345 80 30
# description: Sendmail is a Mail Transport Agent, which is the program \
# that moves mail from one machine to another.
# processname: sendmail
# config: /etc/sendmail.cf
# pidfile: /var/run/sendmail.pid
# Source function library.
. /etc/rc.d/init.d/functions
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
RETVAL=$?
;;
condrestart)
if [ -f /var/lock/subsys/sendmail ]; then
stop
start
RETVAL=$?
fi
;;
status)
status sendmail
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|condrestart|status}"
exit 1
esac
great thanks, but this mail script won't run for some reason. When I list it, it shows up black while the rest of the scripts in /etc/rc.d/init.d show up green and when I try to run it, it just gives me a 'bash: ./sendmail: Permission denied'
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.