* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [000524 16:09]:
> I must tell you straight off I am no mail configuration wizard.  I use a
> completely nonstandard setup where I wrote the c code for an MDA (mail

You kinda give new meaning to the phrase 'have it your way' eh?

> If you use pppd to connect, it will run /etc/ppp/ip-up when the link
> comes up.  That is where I run fetchmail; if I wanted to send mail too
> I think the line
> 
>   /usr/sbin/sendmail -bd -q15m
> 
> might be about right.

I think my sendmail is running all of the time:

  430 ?        S      0:00 sendmail: accepting connections on port 25
 9317 pts/0    S      0:00 grep sendmail

I wonder if maybe I could make a small change in /etc/rc.d/init.d/sendmail
I looked it over and saw what appears to call sendmail with -bd, but not
-q15m (try to send every 15 min, right?)

Here's my /etc/rc.d/init.d/sendmail script:


#!/bin/sh
#
# 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

# Source networking configuration.
. /etc/sysconfig/network

# Source sendmail configureation.
if [ -f /etc/sysconfig/sendmail ] ; then
        . /etc/sysconfig/sendmail
else
        DAEMON=yes
        QUEUE=1h
fi

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -f /usr/sbin/sendmail ] || exit 0

# See how we were called.
case "$1" in
  start)
        # Start daemons.

        echo -n "Starting sendmail: "
        /usr/bin/newaliases > /dev/null 2>&1
        for i in virtusertable access domaintable mailertable ; do
            if [ -f /etc/mail/$i ] ; then
                makemap hash /etc/mail/$i < /etc/mail/$i
            fi
        done
        daemon /usr/sbin/sendmail $([ "$DAEMON" = yes ] && echo -bd) \
                                  $([ -n "$QUEUE" ] && echo -q$QUEUE)
        echo
        touch /var/lock/subsys/sendmail
        ;;
  stop)
        # Stop daemons.
        echo -n "Shutting down sendmail: "
        killproc sendmail
        echo
        rm -f /var/lock/subsys/sendmail
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  status)
        status sendmail
        ;;
  *)
        echo "Usage: sendmail {start|stop|restart|status}"
        exit 1
esac

exit 0

or maybe I'd better try to edit sendmail.cf? I suppose rational people 
would attempt it this way  :-)
> 
> Oh, HO!  I read in a FAQ that RedHat uses smrsh.  You might like to read
> man smrsh, or see:
> 
> http://www.moongroup.com/docs/mailhelp-HOWTO/c176_htm
> 
> Fairly early in the piece it talks of ~/.forward files and RH 6.x and
> smrsh.

I'll check out the URL -- I am anxious to see what it says.

man smrsh gives me: 

    No manual entry for smrsh

> 
> But I think your system administrator (in effect, RedHat until you
> administer otherwise) will not allow sendmail to use procmail.
> 
> I think maybe a symbolic link in /usr/adm/sm.bin (unless Red Hat has
> moved it, in which case they should have changed the manpage too) to the
> procmail binary, and put your .forward file back.

I couldn't locate a file called sm.bin and I haven't got any directories
(that I know of) called adm   :-(
-- 
+----------------------------------------------------------+
|     Richard Spencer     Running Linux 2.2.5, RedHat 6.0  |
|    Sao Paulo, Brazil      & the K Desktop Environment    |
|  mailto:[EMAIL PROTECTED]         (windows break)          |
+----------------------------------------------------------+
                                       

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to