/service/qmail-send: up (pid 85730) 0 seconds
/service/qmail-send/log: up (pid 84496) 595 seconds
/service/qmail-smtpd: up (pid 84497) 595 seconds
/service/qmail-smtpd/log: up (pid 84498) 595 seconds
messages in queue: 7
messages in queue but not yet preprocessed: 6
Sometimes qmail-send is 1 second and sometimes its 0 second.
I run the inst_check and it said:
root@shadow# sh inst_check
Congratulations, your LWQ installation looks good!
I can't see the send logs, because my files is empty
root@shadow# ls -l /var/log/qmail/
total 2
-rw-r--r-- 1 qmaill wheel 0 Feb 27 20:54 current
-rw------- 1 qmaill wheel 0 Feb 27 20:54 lock
drwxr-xr-x 2 qmaill wheel 512 Feb 27 20:54 smtpd
-rw-r--r-- 1 qmaill wheel 0 Feb 27 20:54 state
Thanks for your help.
José David Bravo Álvarez
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-...@muc.de
Please show us the output of:
cat /var/qmail/supervise/qmail-send/run
cat /var/qmail/rc
Try running the qmail-send startup script manually with:
/var/qmail/rc
...And post the output of that too.
Thanks,
Ted
That's your problem.
> Sometimes qmail-send is 1 second and sometimes its 0 second.
http://homepages.tesco.net/J.deBoynePollard/FGA/daemontools-service-not-staying-up.html
Read the above and follow its advice; if you still want to ask us for more
help /after/ you've done that, then please read the "12 steps ..." document
linked in my signature below.
Charles
--
--------------------------------------------------------------------------
Charles Cazabon <qm...@discworld.dyndns.org>
Read http://pyropus.ca/personal/writings/12-steps-to-qmail-list-bliss.html
My services include qmail consulting. See http://pyropus.ca/ for details.
--------------------------------------------------------------------------
root@shadow# cat /var/qmail/rc
#!/bin/sh
# Using stdout for logging
# Using control/defaultdelivery from qmail.local to deliver messages by
default
exec env . PATH="/var/qmail/bin:$PATH" \
root@shadow# cat /var/qmail/control/defaultdelivery
./Mailbox
root@shadow# /var/qmail/rc
alert: cannot start: unable to open mutex
I think the error is in /var/qmail/rc
You're right, if what you posted is what you have. Review section 2.8 of LWQ, and compare yours to what is listed there. You're missing a line, the one that actually starts qmail-send.
The solution for the up time was gived to my by Douglas Lane:
qmailctl stop
touch /var/qmail/queue/lock/sendmutex
chown qmails:qmail /var/qmail/queue/lock/sendmutex
qmailctl start
Now, Im triying to send mails with telnet port 25:
helo
250 shadow.icesi.edu.co
mail from:jbravo
250 ok
rcpt to:jbravo
250 ok
data
354 go ahead
hola
.
250 ok 1141137131 qp 2486
But in my current log, the only think that I see is that:
@4000000044045ed32cd827ec alert: unable to opendir info/0, sleeping...
@4000000044045edd2d731fcc alert: unable to opendir info/0, sleeping...
@4000000044045ee72e0e4e5c alert: unable to opendir info/0, sleeping...
@4000000044045ef12ea8f81c alert: unable to opendir info/0, sleeping...
root@shadow# qmailctl stat
/service/qmail-send: up (pid 2395) 429 seconds
/service/qmail-send/log: up (pid 2396) 429 seconds
/service/qmail-smtpd: up (pid 2399) 429 seconds
/service/qmail-smtpd/log: up (pid 2400) 429 seconds
messages in queue: 8
messages in queue but not yet preprocessed: 7
All my mails is in queue.
Thanks,
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start "`cat /var/qmail/control/defaultdelivery`"
that should be in /var/qmail/rc
Doug
Sorry, wrong url:
http://pyropus.ca/software/queue-repair/
Doug
-----Original Message-----
From: Douglas Lane [mailto:do...@interserve.co.za]
Sent: 28 February 2006 04:27 PM
To: 'José David Bravo Álvarez'
Cc: qm...@list.cr.yp.to
Subject: RE: qMail don't send mails
Hi Jose,
Simplist way to fix this is to go back to the source of qmail and do a:
make setup check.
It will re-create all directories.
It seems that your qmail installation is missing a lot of things :)
Alternatively, try http://www.qcc.ca/~charlesc/software/queue_repair/
The script will repair your var/qmail/queue directories.
Doug
> You're right, if what you posted is what you have. Review section 2.8 of
LWQ, and compare yours to what is listed there. You're missing a line, the
one that actually starts qmail-send.
>
>
>
Hmm, I copied bad the file, my real file is:
#!/bin/sh
# Using stdout for logging
# Using control/defaultdelivery from qmail.local to deliver messages by
default
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start "`cat /var/qmail/control/defaultdelivery`"
The solution for the up time was gived to my by Douglas Lane:
Thanks,
Simplist way to fix this is to go back to the source of qmail and do a:
make setup check.
It will re-create all directories.
It seems that your qmail installation is missing a lot of things :)
Alternatively, try http://www.qcc.ca/~charlesc/software/queue_repair/
The script will repair your var/qmail/queue directories.
Doug
-----Original Message-----
From: José David Bravo Álvarez [mailto:jbr...@braweb.com]
Sent: 28 February 2006 04:21 PM
To: Douglas Lane
Cc: qm...@list.cr.yp.to
Subject: Re: qMail don't send mails
José David Bravo Álvarez wrote:
> [snip]
>
> root@shadow# /var/qmail/rc
> alert: cannot start: unable to open mutex
>
- From qmail-send.c:
- ---------------------
fd = open_write("lock/sendmutex");
if (fd == -1)
{ log1("alert: cannot start: unable to open mutex\n"); _exit(111); }
- ---------------------
My server:
# ls -l /var/qmail/queue/lock/sendmutex
- -rw------- 1 qmails qmail 0 Feb 14 /var/qmail/queue/lock/sendmutex
These commands will fix the ownership/permission of
/var/qmail/queue/lock/sendmutex for a LWQ installation:
# qmailctl stop
# touch /var/qmail/queue/lock/sendmutex
# chown qmails:qmail /var/qmail/queue/lock/sendmutex
# chmod 600 /var/qmail/queue/lock/sendmutex
# qmailctl start
However odds are this problem comes from a messed-up installation of
qmail. Did you follow LWQ / http://www.lifewithqmail.org/ ?
- --
Best regards,
Thanos Massias
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEBGHQSy9m2i8jedwRApJ/AJ0UusiYBSvIuXTc2m9sUVheETIcLwCbBS3D
yCXUxRlfKEUpW/XYNxh27EU=
=Br20
-----END PGP SIGNATURE-----
My current log said:
@400000004404628a3518fea4 delivery 5: deferral:
Sorry,_message_has_wrong_owner._(#4.3.5)/
@400000004404628a351be8bc status: local 0/10 remote 1/20
@400000004404628a35209fc4 starting delivery 7: msg 296 to local
jbr...@shadow.icesi.edu.co
@400000004404628a3522da14 status: local 1/10 remote 1/20
@400000004404628a3526877c delivery 6: deferral:
Sorry,_message_has_wrong_owner._(#4.3.5)/
@400000004404628a352961f4 status: local 1/10 remote 0/20
@400000004404628a352d366c delivery 7: deferral:
Sorry,_message_has_wrong_owner._(#4.3.5)/
@400000004404628a352edc4c status: local 0/10 remote 0/20
@400000004404628a353306b4 starting delivery 8: msg 274 to local
jbr...@shadow.icesi.edu.co
@400000004404628a35352d7c status: local 1/10 remote 0/20
@400000004404628a3556b76c delivery 8: deferral:
Sorry,_message_has_wrong_owner._(#4.3.5)/
@400000004404628a355893fc status: local 0/10 remote 0/20
@400000004404629404e4bd2c status: exiting
As for email, well you need to follow the LWQ tutorial and focus on the POP3
section of it. It will explain how to setup a POP3 server to download your
email from.
http://www.lifewithqmail.org/lwq.html#pop-imap-servers
Alternatively, have a look at www.vmailmgr.org which is a virtual namebase
authentication system. It allows multiple domains to be hosted on 1 IP
address. Very nice toy :)
Enjoy!
Doug
-----Original Message-----
From: José David Bravo Álvarez [mailto:jbr...@braweb.com]
Sent: 28 February 2006 04:56 PM
To: Douglas Lane
Subject: Re: qMail don't send mails
Douglas Lane escribió:
> How did you fix the problem?
>
> doug
>
> -----Original Message-----
> From: José David Bravo Álvarez [mailto:jbr...@braweb.com]
> Sent: 28 February 2006 04:51 PM
> To: Douglas Lane; qm...@list.cr.yp.to
> Subject: Re: qMail don't send mails
>
> Douglas Lane escribió:
>
>> Jose,
>>
>> Can you do me a favour:
>>
>> ls -lRa /var/qmail
>>
>> and post the output to me...
>>
>> doug
> Now I can see the queue mails:
> root@shadow# qmailctl queue
> messages in queue: 9
> messages in queue but not yet preprocessed: 0
> 28 Feb 2006 14:47:28 GMT #302 2798 <ro...@shadow.icesi.edu.co>
> local ro...@shadow.icesi.edu.co
> 28 Feb 2006 14:47:28 GMT #280 200 <jbr...@braweb.com>
> local jbr...@shadow.icesi.edu.co
> 28 Feb 2006 14:47:28 GMT #286 183 <jbravo>
> remote ro...@donatello.icesi.edu.co
> 28 Feb 2006 14:47:28 GMT #289 190 <jbr...@shadow.icesi.edu.co>
> remote ro...@donatello.icesi.edu.co
> 28 Feb 2006 14:47:28 GMT #292 794 <ro...@shadow.icesi.edu.co>
> local ro...@shadow.icesi.edu.co
> 28 Feb 2006 14:47:28 GMT #295 229 <jbr...@braweb.com>
> local jbr...@shadow.icesi.edu.co
> 28 Feb 2006 14:47:28 GMT #296 203 <jbr...@shadow.icesi.edu.co>
> local jbr...@shadow.icesi.edu.co
> 28 Feb 2006 14:47:28 GMT #274 202 <jbravo>
> local jbr...@shadow.icesi.edu.co
>
>
>
>
>
>
Thanks Man!!!!!
chmod a+s /var/qmail/queue/mess
But, how I can get my mails? :D
Please trim your quotes properly.
> My current log said:
>
> @400000004404628a3518fea4 delivery 5: deferral:
> Sorry,_message_has_wrong_owner._(#4.3.5)/
[...]
Your queue is badly corrupted; something besides qmail has been stomping
around in your queue directory. As others have said, the easiest solution is
to stop all qmail processes, completely remove /var/qmail/queue and everything
under it, re-run `make setup check` from the qmail source directory, and then
re-start qmail.
Charles
--
--------------------------------------------------------------------------
Charles Cazabon <qm...@discworld.dyndns.org>
Read http://pyropus.ca/personal/writings/12-steps-to-qmail-list-bliss.html
My services include qmail consulting. See http://pyropus.ca/ for details.
--------------------------------------------------------------------------
--
However, since your qmailctl queue states "local", then I would guess that
the user "jbravo" does not exist, or does not have a maildir setup.
In this case, do the following:
mkdir -p Maildir/{new,cur,tmp}
and then chown it to the user jbravo
chown -R jbravo:jbravo ~/Maildir
Doug
>>> My current log said:
>>>
>>>
>>> @400000004404628a3518fea4 delivery 5: deferral:
>>> Sorry,_message_has_wrong_owner._(#4.3.5)/
Hi,
No man, my question is why my mails is in queue and not delivered?
Thanks
José David Bravo Álvarez
I don't use mailbox setup, as I prefer maildir. But if you google, or check
LWQ I am sure you'll find something on mailbox.
Doug
root@shadow# cat /var/qmail/control/defaultdelivery
./Mailbox
How I can create the mailbox for that?