View Full Version : Qmail does not send.
causticmtl
04-04-2004, 01:41 AM
Hey folks,
I've got a base qmail install running on my laptop and Slackware 9.0. qmailctl says:
/service/qmail-send: up (pid 676) 1183 seconds
/service/qmail-send/log: up (pid 677) 1183 seconds
/service/qmail-smtpd: up (pid 679) 1183 seconds
/service/qmail-smtpd/log: up (pid 680) 1183 seconds
messages in queue: 1
messages in queue but not yet preprocessed: 0
See that one message in the queue? It is there forever. I tried "qmailctl doqueue" and that just emptied the queue essentially deleting the message. It didn't send anything.
I added my ISP's smtp to smtproutes with the leading colon and still no go.
I am so close to getting qmail to work. I know I'm missing something that will seem silly when I finally learn what it is.
Any help would be greatly appreciated.
causticmtl
04-05-2004, 01:18 PM
Ok doing a ps -aux reveals this:
g gid ] [ -u uid ] [ -b backlog ] [ -l localname ] [ -t timeout ] host port program?./run: line 6: [: missing `]'?./run: line 7: myserver.homelinux.com: command not found?tcpserver: option requires an argument -- c?tcpserver: usage: tcpserver [ -1UXpPhHrRoOdDqQv ] [ -c limit ] [ -x rules.cdb ]
[ -B banner ] [ -g gid ] [ -u uid ] [ -b backlog ] [ -l localname ] [ -t timeout ] host port program?
Seems like I have to change something in a run program, but what and which one?
causticmtl
04-05-2004, 05:22 PM
I just wiped everything out and re-installed, step by step and I get the exact same problem. Here are some error messages I get.
# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
-ERR usage: popup hostname subprogram
Connection closed by foreign host.
ps -aux gives this:
root 4420 0.0 0.0 1312 232 ? S 15:11 0:00 readproctitle service errors: ...db ] [ -B banner ] [ -g gid ] [ -u uid ] [ -b backlog ] [ -l localname ] [ -t timeout ] host port program?./run: line 6: [: missing `]'?./run: line 7: ]: command not found?tcpserver: option requires an argument -- c?tcpserver: usage: tcpserver [ -1UXpPhHrRoOdDqQv ] [ -c limit ] [ -x rules.cdb ] [ -B banner ] [ -g gid
] [ -u uid ] [ -b backlog ] [ -l localname ] [ -t timeout ] host port program?
Does anyone have any idea what the problem could be?
causticmtl
04-05-2004, 06:41 PM
Problem solved ... although I'd like to know why this worked.
Instead of using qmail-smtpd/run from this site, I used the one they gave on the life with qmail site.
Is there any potential long-term problems if I do this?
Bookworm
04-06-2004, 02:48 AM
Not really - although the run from here does make it work better. (specifically the users it's run as, etc. )
Note - the scripts work on Slackware 9.1 - is there any particular reason you're using 9.0?
BW
causticmtl
04-07-2004, 01:20 AM
Well, Slack9 has a 2.4.20 kernel whereas Slack9.1 has a 2.4.22 kernel. That's the main difference between the two. Other than that, it's a bunch of other packages that I can upgrade as the need arises.
When Slackware has oh, a 2.6.xx kernel, then I'll upgrade. In the mean time, why fix what isn't broken?
sighlous
04-10-2004, 01:32 AM
I am having the same issue here with a slackware 9.0 box that I used slackupdate to update to 9.1.
I have everything installed and seems to be working just nothing flowing from the server to any mailboxes.
If i do a qmailctl queue I can see the 20 some messages in the queue, but if I do a doqueue or anything nothing nada zilch....
I have poped in the run script as you posted that fixed your prob. but I still seem to have the issue. Could I beg you to post your run script here to see if I may have missed something...
Any other Ideas of what to look for would be greatly appreciated!
causticmtl
04-11-2004, 06:09 AM
I have followed the instructions here for two different machines and two different ISPs and I have come to a conclusion to qmail not sending. It has to do with one of two things:
- Either the hostname that you provided qmail doesn't actually match what is written in the HOSTNAME file in the /etc directory (Slackware-centric perhaps, but I'm hoping that it won't matter).
or
- Your ISP is blocking port 25. I have yet to find a way around this.
If anyone knows a way around ISPs that block port 25. please do contribute.
sighlous
04-11-2004, 01:32 PM
I know in my case port 25 is not blocked as I am working with this in my datacenter where I have full control over what is and is not routed, and I know that 25 is open to it's ip.
As far as /etc/hostname , that no longer applies to Slack after 9.0 so I am not sure where you are going with that..
But once again in my case if I do a hostname -f from cmd line I do see my hostname is the same as my dns name, and my fqdn for mail in qmail.
My issue remains to be that mail gets queued but does not appear to get delivered local or remote.... // I have gone through and back through the tut and do not see where I screwed up. or even see any errors that would indicate as such.... I am lost, and guidance would be appreciated.
Happy Easter Guys....
Curtis
Bookworm
04-12-2004, 01:05 AM
I'm too tired to go into explicit detail, but anyway.
tcpserver is referenced in the following 'run' files
/var/qmail/supervise/qmail-smtpd/run
/var/qmail/supervise/qmail-pop3d/run
I'd possibly try running each by hand, (after doing a qmailctl stop, of course) .
possibly use the strace option
strace /var/qmail/supervise/qmail-smtpd/run
And, I can't emphasize this enough - read through the logs. Each log tends to hold all sorts of interesting information.
BW
vBulletin® v3.6.8, Copyright ©2000-2009, Jelsoft Enterprises Ltd.