Re: sendmail startup scripts

From: Bryan Hepworth (bryan_at_redfedora.co.uk)
Date: 06/09/05

  • Next message: Michael Yep: "Re: my FC3 firefox is segfaulting, reproducible on specific web page"
    To: "For users of Fedora Core releases" <fedora-list@redhat.com>
    Date: Thu, 9 Jun 2005 17:14:42 +0100
    
    

    Subject: Re: sendmail startup scripts

    > On Thu, 2005-06-09 at 08:50 +0100, Bryan Hepworth wrote:
    >> Hi Everyone
    >>
    >> This is a general question so please bear with me on this request...
    >>
    >> I had to install an antivirus product on the two sendmail servers we
    >> have at work. The installation and subsequent capture of viruses works
    >> fine but I'm not happy with the startup procedure, which could have
    >> been a bit more refined.
    >>
    >> To start everything running you need the listener to start all in the
    >> following order:-
    >>
    >> /usr/sbin/sendmail -bd -q10m -C /etc/mail/sendmail.cf.listen
    >> /usr/sbin/sendmail -q10m -C /etc/mail/sendmail.cf
    >> /usr/sbin/sendmail -q10m -C /etc/mail/submit.cf
    >>
    >> I'd really like this to happen in the startup scripts /etc/init.d
    >> rather than stopping all the services and restarting one by one. It's
    >> more of an automation so that if the box did fall over they would all
    >> come back up on boot with no manual intervention.
    >>
    >> My scripting knowledge is so far pretty poor so I'd really appreciate
    >> some constructive pointers on the scripts themselves and integrating
    >> things like this.
    >
    > It's best not to edit the standard startup scripts because your edits
    > could get lost when an updated sendmail package (e.g. a security update)
    > gets installed.
    >
    > The last two of the three daemons you need can be done using the
    > standard sendmail initscript. To get the queue retry interval set to 10
    > minutes for both the MTA and the MSP as you have them above, and with
    > the standard MTA not listening as a daemon, put the following
    > in /etc/sysconfig/sendmail:
    >
    > DAEMON=no
    > QUEUE=10m
    > SMQUEUE=10m
    >
    > The "SMQUEUE" setting is actually redundant since it will default to the
    > QUEUE setting if not specified.
    >
    > All you need then is an additional initscript, called before the
    > standard one, to start up the daemon that listens for incoming mail.
    >
    > You can use a modified version of the standard sendmail initscript to
    > handle this daemon. The attached sendmail.kap script should be a
    > reasonable starting point. Copy it to /etc/rc.d/init.d and do:
    >
    > # chmod 755 /etc/rc.d/init.d/sendmail.kap
    > # chkconfig --add sendmail.kap
    > # chkconfig sendmail.kap reset
    >
    > Your three daemons should then start and stop in the desired order.
    >
    > Paul.
    > --
    > Paul Howarth <paul@city-fan.org>
    >
    Cheers Paul

    Reckon that's a pint or two o' Stella in the pumps for you. Thanks very much
    it's much appreciated.

    Bry

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Michael Yep: "Re: my FC3 firefox is segfaulting, reproducible on specific web page"

    Relevant Pages

    • Re: incorrect info in mysql docs
      ... you should install the mysql.server script as ... My mysql is started by ... startup scripts or for scripts that are to be read into the current shell. ...
      (freebsd-questions)
    • Re: Multiple Questions
      ... adding to the local administrators group is giving ... Login scripts - I've a bunch of various apps I need installed on ... Assigning to a user will install the app upon logon. ...
      (microsoft.public.win2000.active_directory)
    • Re: Multiple Questions
      ... adding to the local administrators group is giving ... Login scripts - I've a bunch of various apps I need installed on ... Assigning to a user will install the app upon logon. ...
      (microsoft.public.win2000.general)
    • Re: Multiple Questions
      ... adding to the local administrators group is giving ... Login scripts - I've a bunch of various apps I need installed on ... Assigning to a user will install the app upon logon. ...
      (microsoft.public.win2000.group_policy)
    • Re: Multiple Questions
      ... adding to the local administrators group is giving ... Login scripts - I've a bunch of various apps I need installed on ... Assigning to a user will install the app upon logon. ...
      (microsoft.public.win2000.advanced_server)