debug/remove sendmail

Posted on 2005-04-14
Last Modified: 2008-01-09

I've FedoraCore 2 Linux box. When I start the OS in normal mode, it hangs on "Starting sendmail....". So, everytime I boot up the system, I go to interactive mode by pressing "I" button and select "No" for "Starting sendmail...".

How can I either debug or disable "sendmail" while booting my system.
Question by:sangeetha
    LVL 34

    Expert Comment

    I'm not familar with how FC does its startups, but you should look for /etc/init.d - that's the directory in Solaris, I'm not sure its the same in FC, but I think it is.

    Anyway, that directory (if it exists) contains scripts for starting/stopping daemons as the system comes up/goes down. Find the one for sendmail and rename/delete it. That'll get it done immediately.

    Long-term, figger out which one fo the "rc" scripts calls that script. If it were Solaris, then I'd say look in /etc/rc2.d, but I dunno if that directory exists in FC.
    LVL 1

    Accepted Solution

    Hi, it's very easy!

    1. You boot system into single mode:
    From grub menu select -> enter 'e' to edit -> goto line "kernel /vmlinuz-2.6.9-.1667 ro root=/ ..." -> 'e' to edit
    ->enter "   1" at end of line -> ENTER -> enter 'b' to boot into single mode

    2. In single mode
    sh-3.00# chkconfig --level 35 sendmail off        
    -> to turn off sendmail service

    3. Goto level 5 ( Graphic & services )
    sh-3.00# telinit 5

    --> Ok!

    Hope you OK!
    LVL 7

    Assisted Solution

    It should be noted that sendmail is probably hanging because of issues looking up the DNS for your IP.  This may indicate a problem with /etc/hosts, DNS server on your network, etc.

    As linuxvn said, "chkconfig --level 35 sendmail off" will disable sendmail for the future.  There may also be a graphical tool to do this from within your window manager.  Also, sendmail will (eventually) time out when booting.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now