Solved

linux tcpserver

Posted on 2000-04-02
6
260 Views
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?
0
Comment
Question by:mishelm
  • 3
  • 2
6 Comments
 
LVL 40

Expert Comment

by:jlevie
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.
0
 
LVL 3

Accepted Solution

by:
alien_life_form earned 50 total points
ID: 2680214
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
 

Author Comment

by:mishelm
ID: 2683119
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
New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

 
LVL 3

Expert Comment

by:alien_life_form
ID: 2683216
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
 

Author Comment

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

Author Comment

by:mishelm
ID: 2697824
Thanks
it's working it was my fault
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

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…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 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

24 Experts available now in Live!

Get 1:1 Help Now