Qmail problems

bregtbeer

New Email
I tried to configure qmail on my server using the following guide
Qmailrocks updated : Debian qmail installation guide for version 5.0 (Lenny)

Testing my configuration gave some errors.

telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HELO localhost
HELO google.com
--> just no response ...

telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Hello there.
user test@test.com
+OK Password required.
pass brol2
-ERR Temporary problem, please try again later
Connection closed by foreign host.

Roundcube webmail says connection with imap server failed when trying to login

qmailctl stat :
/service/qmail-send: up (pid 5254) 1934 seconds
/service/qmail-send/log: up (pid 13691) 1 seconds
/service/qmail-smtpd: up (pid 5256) 1934 seconds
/service/qmail-smtpd/log: up (pid 13693) 1 seconds
/service/qmail-smtpdssl: up (pid 5258) 1934 seconds
/service/qmail-smtpdssl/log: up (pid 13692) 1 seconds
messages in queue: 0
messages in queue but not yet preprocessed: 0

Something obviously wrong here, just can't figure out what ...
 

popowich

EQ Forum Admin
Staff member
Hello,

There is something wrong with your logging scripts :

/service/qmail-send/log: up (pid 13691) 1 seconds
/service/qmail-smtpd/log: up (pid 13693) 1 seconds
/service/qmail-smtpdssl/log: up (pid 13692) 1 seconds

The one second uptime is the clue that this is the source of at least one of your problems.

If you copy and pasted files to create them make sure that long lines are really 1 long line that did not get broken into 2 or more lines wile creating the run scripts.

You can copy and paste the run scripts for each of the logs here and we should see the problem.

Also, if it's not too late, my preference for new qmail installs is Life with qmail and not Qmailrocks. LWQ is a great starting point for qmail!

:welcome: to Email Questions!
 

bregtbeer

New Email
First, thanks for your reply :)
Second, LifeWithQmail was a lot more difficult to follow. Tried it, and it went wrong ...

So here are my run scripts :

cat /service/qmail-send/log/run
#!/bin/sh
VQ="/var/qmail"

exec env - PATH="$VQ/bin:/usr/local/bin:/usr/bin:/bin" \
setuidgid qmaill multilog t n1024 s1048576 /var/log/qmail/qmail-send
# '-*' '+*ver: status:*' =lstatus


cat /service/qmail-smtpd/log/run
#!/bin/sh
VQ="/var/qmail"

exec env - PATH="$VQ/bin:/usr/local/bin:/usr/bin:/bin" \
setuidgid qmaill multilog t n1024 s1048576 /var/log/qmail/qmail-smtpd
# '-*' '+*ver: status:*' =lstatus


cat /service/qmail-smtpdssl/log/run
#!/bin/sh
VQ="/var/qmail"

exec env - PATH="$VQ/bin:/usr/local/bin:/usr/bin:/bin" \
setuidgid qmaill multilog t n1024 s1048576 /var/log/qmail/qmail-smtpdssl
# '-*' '+*ver: status:*' =lstatus
 

popowich

EQ Forum Admin
Staff member
Use vi to edit the files. Are the line breaks where you expect them. Did you set the permissions correctly with chmod as instructed in these steps - Configure Daemontools - Updated Qmail installation guide for Debian ? Are the permissions on your logging directory correct to that qmail can create log files in that directory? Do a "ps -auxwww" and look for errors after the readproctitle process. Most likely whatever problem you are having there will be a clue in that output.
 
Top