sendmail and fetchmail problem.

Posted on 2005-04-22
Last Modified: 2010-04-20
Hi experts,

we have our mailboxes hosted on an isp. we use fetchmail to fetch mails from isp to deliver locally. we use sendmail to forward mails to our isp.

we receive error query status = 10 error. On "Deamonportoptions =" then the problem gets resolved. but now when we sending mails from outlook express cleint "no socket error"

if we change the entry to "" then the mail sending is ok. again fetchmail query status = 10 error.

help me. urgent.

Question by:prathab

    Expert Comment

    I guess that you have a redhat system, if i well remember, by default the sendmail shipped with redhat only listens on the local interface (, you have to edit the file (that file can be on /etc/ or /etc/mail) and remove the daemon options to listen only on the interface

    Next, re-create the sendmail config file using:

    m4 >

    stop and start sendmail again:

    /etc/init.d/sendmail stop
    /etc/init.d/sendmail start

    LVL 7

    Accepted Solution

    The no socket error is probably an indication that it was unable to connect to the server on the SMTP port. is the loopback interface; if you connect to that IP, it will connect to the local system.  The loopback interface is _only_ available to the local system, it is not associated with any network card, and cannot be reached from any other system.  If a daemon or service (such as sendmail) is configured to listen specifically to that interface, then it's not going to be able to receive connections from other systems.

    As bzImage8 indicated, you'll need to modify; either modify it to listen to mulitple IP's (both local and network), modify it to listen to just the network interface, or modify it to not have any statement here, which should allow it to default to listening to all interfaces.

    the m4 command is for the m4 preprocessor.  It takes a "simple" file, the .mc file, runs it against a template, and produces the "real" config file which is used by sendmail.  Because sendmail's options are so complex, and cryptic, the m4 config files are highly recommended.  Just make sure that you're in the same directory as the files when running the command, or that you're specifying the full paths, e.g. m4 /etc/mail/ > /etc/mail/

    Also, depending on your distribution, you may find the init scripts in a different place, e.g. /etc/rc.d/sendmail, /etc/rc.d/init.d/sendmail, or /sbin/init.d/sendmail.  You should be able to use either the "stop" and "start" syntax, or just a single command line of "restart" (/etc/rc.d/init.d/sendmail restart).

    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

    Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    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.

    733 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

    23 Experts available now in Live!

    Get 1:1 Help Now