linux tcpserver

Posted on 2000-04-02
Last Modified: 2010-03-18
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?
Question by:mishelm
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 40

Expert Comment

ID: 2678087
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.

Accepted Solution

alien_life_form earned 50 total points
ID: 2680214

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.


Author Comment

ID: 2683119
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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.


Expert Comment

ID: 2683216

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

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


Author Comment

ID: 2697819
thanks to all it's working is
my fault i'm frorunning it from rc.local and it's work fine

Author Comment

ID: 2697824
it's working it was my fault

Featured Post

Independent Software Vendors: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
apache and php 3 162
IPA - how do I choose who can log into which servers? 1 88
best simple nfs export and fstab commands for basic sharing? 3 94
How to Edit Files in Linux 6 132
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 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