[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 279
  • Last Modified:

sendmail and fetchmail problem.

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 sendmail.cf "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.

1 Solution
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 sendmail.mc 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 sendmail.mc > sendmail.cf

stop and start sendmail again:

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

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 sendmail.mc; 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/sendmail.mc > /etc/mail/sendmail.cf

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now