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

linux tcpserver

i'm install qmail on redhat-6.0
and i want to run it fprom inetd.conf
with tcpserver programe if i run it
without this everything look fine.
but when i put this command in my
inetd.conf "tcpserver -v -x/etc/tcp.smtp.cdb -uused -ggroup 0 smtp /var/qmail/bin/qmail-smtpd &"
i get the error message in my /var/log/messages unknown service
or address already in use. i check the service file and i try ps -ef | grep smtp or someting like this but nothing
if run it from the command prompt it's ok is someone can help me with this?
0
mishelm
Asked:
mishelm
  • 3
  • 2
1 Solution
 
jlevieCommented:
I don't use qmail, but if it follows the sendmail model, you don't run it from inetd. The master daemon needs to be running all the time and it will spawn children as needed to process email.
0
 
alien_life_formCommented:
Greetings.

While I second jlevie's comment, let me point out that what you are inserting in inetd.conf is *deeply wrong*: the line should look something like

smtp stream tcp nowait root tcpserver <cmd and args>  

- do a man inetd.conf to find the exact sysntax. Surely no '&' should be in the command line. 'smtp' should be listed in /etc/services. Are you sure you want to do the inetd thing? It'll be pretty inefficient, assuming it works at all.

Besides, 'address already in use' seems to point to the fact that qmail may be already running, which is a no-no: you can have standalone qmail or (maybe) inetd qmail, but not both.

Cheers,
   alf
0
 
mishelmAuthor Commented:
hai
i take this line from the qmail faq.
maybe i put it wrong in inetd

i need to check it now
so tanks for your help
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
alien_life_formCommented:
Greetings.

You are misreading the FAQ: it explans how to run qmail *standalone* meaning *NOT from inetd*. The critical points are (emphasis added):

*REMOVE the smtp line from /etc/inetd.conf*, and put the two lines
[...]
into your *SYSTEM BOOT SCRIPTS*

Under redhat, a possible place to insert the command would be /etc/rc.d/rc.local.

Cheers,
    alf
0
 
mishelmAuthor Commented:
thanks to all it's working is
my fault i'm frorunning it from rc.local and it's work fine
0
 
mishelmAuthor Commented:
Thanks
it's working it was my fault
0

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.

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