LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 06-14-2004, 04:29 AM   #1
chrisfirestar
Member
 
Registered: Sep 2003
Location: Adelaide, Australia
Distribution: Fedora/RH
Posts: 231

Rep: Reputation: 30
Qmail - SMTP problems


I have done an install of Qmail from this guide:
http://sylvestre.ledru.info/howto/ho...l_vpopmail.php

the problem is that now its all setup i cant seem to send via SMTP.
from the webmail i get a Connection Refused Error and I have tried everything (not everything obviously cause otherwise i would have fixed it) but everything i can think of.

any where that i can check configurations etc?

the webmail works.. IMAP works, pop3 works everything seems to work except for the stupid SMTP

Any ideas? Anything you want me to post?


#######
btw its not a firewall issue.
########

Last edited by chrisfirestar; 06-14-2004 at 06:23 AM.
 
Old 06-14-2004, 07:22 AM   #2
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
When you try to send a message using SMTP, I would think there should be a message in /var/log/qmail/qmail-smtpd/current that may give you some insights.

You may also want to check /var/qmail/supervise/qmail-smtpd/run and be sure it looks like the tutorial specifies.

You may also want to try doing a "ps -ef | grep proc" and see if there are any errors showing up on readproctile service errors. Normally they will just be dots, which is fine.
 
Old 06-15-2004, 04:30 AM   #3
chrisfirestar
Member
 
Registered: Sep 2003
Location: Adelaide, Australia
Distribution: Fedora/RH
Posts: 231

Original Poster
Rep: Reputation: 30
Thumbs down

ok heres some more info for you... i have tried to fix the problems but so far can not find a solution

when i do a ./qmail stat i get this:

Code:

qmail-pop3d: up (pid 3589) 24652 seconds
qmail-send: up (pid 3597) 24652 seconds
qmail-smtpd: up (pid 3595) 24652 seconds
qmail-pop3d/log: up (pid 3609) 24650 seconds
qmail-send/log: up (pid 3606) 24650 seconds
qmail-smtpd/log: up (pid 3603) 24650 seconds
this means that it IS up and running but when i do this:
ps -efl | grep "service errors" | grep -v grep

i get this

Code:
0 S root      3592  3585  0  75   0    -   334 pipe_w 10:37 ?        00:00:00 readproctitle service errors: ...se/lock: temporary failure?supervise: fatal: unable to acquire log/supervise/lock: temporary failure?supervise: fatal: unable toacquire log/supervise/lock: temporary failure?supervise: fatal: unable to acquir
 
Old 06-15-2004, 06:29 AM   #4
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Ok, try going into the /var/qmail/supervise directory and delete the lock files. There are lock files located under each of the directories. Get them all. qmail will make them again in a few seconds. You may also wanna stop and restart qmail just for good measure.

Last edited by Donboy; 06-15-2004 at 06:30 AM.
 
Old 06-15-2004, 08:29 PM   #5
chrisfirestar
Member
 
Registered: Sep 2003
Location: Adelaide, Australia
Distribution: Fedora/RH
Posts: 231

Original Poster
Rep: Reputation: 30
ok when i clear the lock files and restart I got this in the qmail log:

Code:
@4000000040cfa22c136d9c24 tcpserver: fatal: unable to bind: address already used
@4000000040cfa22d15364664 tcpserver: fatal: unable to bind: address already used
@4000000040cfa22e1700fffc tcpserver: fatal: unable to bind: address already used
so i did a restart.... im really baffled on this... i have obviously done SOMETHING wrong but cant figure it out...
 
Old 06-15-2004, 08:56 PM   #6
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Yeah, sorry.. I seem to have forgotten that would happen. It's trying to start another instance of qmail and you've already got daemons listening on those ports. You can reboot and it'll clear right up, but if you don't wanna reboot, you can just stop qmail and be sure to kill all those processes that are running. Just do ps -ef and kill anything that talks about qmail, but of course be sure to stop qmail first.
 
Old 06-15-2004, 09:30 PM   #7
chrisfirestar
Member
 
Registered: Sep 2003
Location: Adelaide, Australia
Distribution: Fedora/RH
Posts: 231

Original Poster
Rep: Reputation: 30
yeah but as soon as i reboot i end up with the same problem with SMTP
 
Old 06-15-2004, 10:53 PM   #8
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Ok, let's try this... run the command /var/qmail/bin/qmail-showctl and post the output here. This will show all your current settings and how you've got qmail configured. If you feel like you need to censor the output, that's Ok, but be aware that it really helps to show everything as-is so we can be sure it's all good.

also, is it possible you have a CR/LF problem? Have you modified any of your control files using a windows text editor through samba? If so, this is certainly a problem. If you have been editing your control files through windows, you'll need to do a vi -b on each control file and delete the ^M characters you see at the end of each line.
 
Old 06-16-2004, 02:03 AM   #9
chrisfirestar
Member
 
Registered: Sep 2003
Location: Adelaide, Australia
Distribution: Fedora/RH
Posts: 231

Original Poster
Rep: Reputation: 30
ok this is what i get from ./qmail-showctl

Code:
qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 255.
subdirectory split: 199.
user ids: 91, 92, 93, 0, 94, 95, 96, 97.
group ids: 91, 92.

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

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

bouncehost: (Default.) Bounce host name is mailsvr2.domain.com.

concurrencylocal: (Default.) Local concurrency is 10.

concurrencyremote: Remote concurrency is 255.

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

defaultdomain: Default domain name is domain.com

defaulthost: (Default.) Default host name is mailsvr2.domain.com

doublebouncehost: (Default.) 2B recipient host: mailsvr2.domain.com

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

envnoathost: (Default.) Presumed domain name is mailsvr2.domain.com

helohost: (Default.) SMTP client HELO host name is mailsvr2.domain.com

idhost: (Default.) Message-ID host name is mailsvr2.domain.com

localiphost: (Default.) Local IP address becomes mailsvr2.domain.com

locals: 
Messages for mailsvr2.domain.com are delivered locally.

me: My name is mailsvr2.domain.com

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

plusdomain: Plus domain name is com.

qmqpservers: (Default.) No QMQP servers.

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

rcpthosts: (Default.) SMTP clients may send messages to any recipient.

morercpthosts: (Default.) No rcpthosts; morercpthosts is irrelevant.

morercpthosts.cdb: (Default.) No effect.

smtpgreeting: (Default.) SMTP greeting: 220 mailsvr2.domain.com

smtproutes:

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: 
Virtual domain: mailsvr2.domain.com:mailsvr2.domain.com

virtualdomains.lock: I have no idea what this file does.
i have just changed my domain to domain.com thats the only change.

in relation to editing on windows machines ive been ssh'ing in and using vi

Thanks for your help.. hope we are getting somewhere

Last edited by chrisfirestar; 06-16-2004 at 02:16 AM.
 
Old 06-16-2004, 02:26 AM   #10
chrisfirestar
Member
 
Registered: Sep 2003
Location: Adelaide, Australia
Distribution: Fedora/RH
Posts: 231

Original Poster
Rep: Reputation: 30
Ps: this line i have not modified... i think this is not correct??

virtualdomains.lock: I have no idea what this file does.
 
Old 06-16-2004, 02:26 AM   #11
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
can you successfully telnet to port 25 of your mail server?
 
Old 06-16-2004, 02:30 AM   #12
chrisfirestar
Member
 
Registered: Sep 2003
Location: Adelaide, Australia
Distribution: Fedora/RH
Posts: 231

Original Poster
Rep: Reputation: 30
can... comes up with a blank screen i guess this means it can... then as soon as i press CTRL it kicks me out...
 
Old 06-16-2004, 02:51 AM   #13
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
QMail should respond with something when you telnet to port 25 ... AFAIK it can't be blank.

Does

#netstat -ltp

show qmail listening on port 25?
 
Old 06-16-2004, 02:54 AM   #14
chrisfirestar
Member
 
Registered: Sep 2003
Location: Adelaide, Australia
Distribution: Fedora/RH
Posts: 231

Original Poster
Rep: Reputation: 30
tcp 0 0 *:smtp *:* LISTEN 3604/

results...
 
Old 06-16-2004, 02:55 AM   #15
chrisfirestar
Member
 
Registered: Sep 2003
Location: Adelaide, Australia
Distribution: Fedora/RH
Posts: 231

Original Poster
Rep: Reputation: 30
further more:

.qmail stat gives

qmail-pop3d: up (pid 3596) 1829 seconds
qmail-send: up (pid 3599) 1829 seconds
qmail-smtpd: up (pid 3604) 1829 seconds
qmail-pop3d/log: up (pid 3615) 1825 seconds
qmail-send/log: up (pid 3612) 1825 seconds
qmail-smtpd/log: up (pid 3609) 1825 seconds
 
  


Reply



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
Help with smtp side of qmail !! fuzzyash Linux - Software 3 05-19-2004 01:14 PM
qmail: pop before smtp - HOW? Zingaro2002 Linux - Software 2 07-14-2003 03:46 AM
qmail and smtp ethanchic Linux - Networking 1 04-18-2003 11:36 PM
qmail, imap and smtp help please yosh9779 Linux - Software 1 03-18-2003 10:43 AM
Qmail and SMTP Authentication miknight Linux - Software 0 01-30-2003 04:03 AM

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

All times are GMT -5. The time now is 04:51 PM.

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
Open Source Consulting | Domain Registration