LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-01-2004, 11:33 AM   #1
myguest
LQ Newbie
 
Registered: Jun 2004
Location: Zimbabwe
Distribution: redhat
Posts: 21

Rep: Reputation: 15
Failing to connect to port 25 after installing Qmail


I 've compiled and installed Qmail using documentation from lifewithqmail.org

I was running sendmail which comes with redhat 9.

if i try to telnet port 25 it is refusing to connect.

I also ran qmailctl stat and all the services are up but the qmail-smtpd service is always showing 1 second and after a while it shows 0 seconds.

Also ran inst_check script and this is the result i am getting

inst_check: line 247 [: /var/qmail/alias: binary operator expected
and Congratulations , your LWQ installation looks good
Which file is it referring to


Also checked my run scripts off the supervise directory and they are OK

Also checked the /var/qmail/supervise/qmail-smtpd directory - and they are two directories off this path, log and supervise.

The supervise directory has the following files - lock, control and status - is this setup correct
 
Old 07-01-2004, 12:48 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
The first thing to check is if the service is listening on the correct interfaces:
netstat -nlp

Then that there are no firewall rules blocking requests:
iptables -nL

If you are unsure about this then post the output from the above commands.
 
Old 07-02-2004, 11:07 AM   #3
myguest
LQ Newbie
 
Registered: Jun 2004
Location: Zimbabwe
Distribution: redhat
Posts: 21

Original Poster
Rep: Reputation: 15
I checked my firewall and its accepting traffic on 25 and the service is listening to
my ethernet inferface (eth0) and lo
 
Old 07-02-2004, 01:41 PM   #4
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Run these commands and post the output...

/var/qmail/bin/qmail-showctl

ps -ef | grep readproc
 
Old 07-03-2004, 04:09 AM   #5
myguest
LQ Newbie
 
Registered: Jun 2004
Location: Zimbabwe
Distribution: redhat
Posts: 21

Original Poster
Rep: Reputation: 15
ps -ef | grep readproc

root 3530 3500 0 10:41 ? 00:00:00 readproctitle service errors: .................................................................................................... ..................
root 6815 3954 0 10:52 pts/1 00:00:00 grep readproc

/var/qmail/bin/qmail-showctl - output

qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 120.
subdirectory split: 23.
user ids: 1251, 1252, 1253, 0, 1254, 1255, 1256, 1257.
group ids: 1254, 1255.

badmailfrom: (Default.) Any MAIL FROM is allowed.

bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.

bouncehost: (Default.) Bounce host name is zdb.co.zw.

concurrencylocal: (Default.) Local concurrency is 10.

concurrencyremote: (Default.) Remote concurrency is 20.

databytes: (Default.) SMTP DATA limit is 0 bytes.

defaultdomain: Default domain name is co.zw.

defaulthost: (Default.) Default host name is zdb.co.zw.

doublebouncehost: (Default.) 2B recipient host: zdb.co.zw.

doublebounceto: (Default.) 2B recipient user: postmaster.

envnoathost: (Default.) Presumed domain name is zdb.co.zw.

helohost: (Default.) SMTP client HELO host name is zdb.co.zw.

idhost: (Default.) Message-ID host name is zdb.co.zw.

localiphost: (Default.) Local IP address becomes zdb.co.zw.

locals:
Messages for zdb.co.zw are delivered locally.

me: My name is zdb.co.zw.

percenthack: (Default.) The percent hack is not allowed.

plusdomain: Plus domain name is co.zw.

qmqpservers: (Default.) No QMQP servers.

queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds.

rcpthosts:
SMTP clients may send messages to recipients at zdb.co.zw.

morercpthosts: (Default.) No effect.

morercpthosts.cdb: (Default.) No effect.

smtpgreeting: (Default.) SMTP greeting: 220 zdb.co.zw.

smtproutes: (Default.) No artificial SMTP routes.

timeoutconnect: (Default.) SMTP client connection timeout is 60 seconds.

timeoutremote: (Default.) SMTP client data timeout is 1200 seconds.

timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds.

virtualdomains: (Default.) No virtual domains.

defaultdelivery: I have no idea what this file does.

concurrencyincoming: I have no idea what this file does.
 
Old 07-03-2004, 07:26 AM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
When you say that you are failing to connect - are you able to connect or do you get an immediate "connection refused". Using telnet would be a good way to test this:
telnet ip.of.mail.server 25
 
Old 07-03-2004, 11:21 AM   #7
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Yeah, in addition to testing with telnet, I also recommend trying to run the service manually. Stop qmail completely with qmailctl stop and then run qmailctl stat just to make sure it's really stopped. Then try.. /var/qmail/supervise/qmail-smtpd/run.

This is actually a suggestion found in LWQ here http://lifewithqmail.org/lwq.html#test

I don't mean to suggest that you haven't tried these, as I'm sure you must have since you were thoughtful enough to try the inst_check script. I suggest these now simply because we haven't seen the output here and I think it'd be helpful to see what it says.
 
Old 07-05-2004, 07:59 AM   #8
myguest
LQ Newbie
 
Registered: Jun 2004
Location: Zimbabwe
Distribution: redhat
Posts: 21

Original Poster
Rep: Reputation: 15
thankz guy i finally it's working

But i must confess i don't know the solution. what i did was to re-write the scripts again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cyberoam connection client is failing to connect! pradeepmenon777 Mandriva 5 12-31-2005 02:40 AM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 11:29 AM
Failing to connect to Internet myguest Linux - Networking 1 06-22-2004 01:06 PM
smb4k failing to connect to windows workgroup fitzy85 Linux - Software 0 05-29-2004 01:13 PM
Failing to connect to TELNET, FTP or SSH dbadft Linux - Networking 10 04-16-2003 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration