[vchkpw] local delivery failure when forwarding messages
Good evening, I had a disk failure on my local server recently and had to rebuild from scratch (only data backups, not full system). I used Shupp's toaster to install qmail/vpopmail. I think my problem may be with qmail, but I'm trying here first. Messages arrive (via smtp) fine and get inserted into the queue. If the address is a mailbox then all is fine and message is delivered locally. But if the address is a forward ([EMAIL PROTECTED] line in .qmail file) then I get errors like the following: 2008-01-05 19:30:03.317667500 starting delivery 19: msg 635441 to local [EMAIL PROTECTED] 2008-01-05 19:30:03.331851500 delivery 19: deferral: Unable_to_forward_message:_unable_to_exec_qq_(#4.3.0)./ I've done lots of googling and can't find a cause for that error with solutions (that apply in my case). I've checked permissions, done a 'queue-fix' and everything else I can think of. I'm not sure where to look next. Advice and suggestions would be appreciated. Thanks, Charlie -- Charlie Garrison [EMAIL PROTECTED] PO Box 141, Windsor, NSW 2756, Australia O ascii ribbon campaign - stop html mail - www.asciiribbon.org http://www.ietf.org/rfc/rfc1855.txt !DSPAM:477f4b66310541331714317!
Re: [vchkpw] local delivery failure when forwarding messages
Check the ownership and permissions on the .qmail files. From memory this can cause the problem you describe. EG: ls -la .qmail-joe -rw-r--r-- 1 vpopmail vchkpw 24 2006-12-09 14:56 .qmail-joe Shane On Sat, 2008-01-05 at 20:18 +1100, Charlie Garrison wrote: Good evening, I had a disk failure on my local server recently and had to rebuild from scratch (only data backups, not full system). I used Shupp's toaster to install qmail/vpopmail. I think my problem may be with qmail, but I'm trying here first. Messages arrive (via smtp) fine and get inserted into the queue. If the address is a mailbox then all is fine and message is delivered locally. But if the address is a forward ([EMAIL PROTECTED] line in .qmail file) then I get errors like the following: 2008-01-05 19:30:03.317667500 starting delivery 19: msg 635441 to local [EMAIL PROTECTED] 2008-01-05 19:30:03.331851500 delivery 19: deferral: Unable_to_forward_message:_unable_to_exec_qq_(#4.3.0)./ I've done lots of googling and can't find a cause for that error with solutions (that apply in my case). I've checked permissions, done a 'queue-fix' and everything else I can think of. I'm not sure where to look next. Advice and suggestions would be appreciated. Thanks, Charlie !DSPAM:477f4ee5310548744011494!
Re: [vchkpw] local delivery failure when forwarding messages
Good evening, On 5/1/08 at 6:33 PM +0900, Shane Chrisp [EMAIL PROTECTED] wrote: Check the ownership and permissions on the .qmail files. From memory this can cause the problem you describe. EG: ls -la .qmail-joe -rw-r--r-- 1 vpopmail vchkpw 24 2006-12-09 14:56 .qmail-joe Thanks for the suggestion, but the permissions look good: # ls -l total 40 -rw--- 1 vpopmail vchkpw34 Jan 5 18:47 .dir-control -rw--- 1 vpopmail vchkpw31 Jan 5 19:20 .qmail-admin -rw--- 1 vpopmail vchkpw97 Jan 5 19:23 .qmail-default -rw--- 1 vpopmail vchkpw 0 Jan 5 18:44 .qmailadmin-limits -rw--- 1 vpopmail vchkpw 0 Jan 5 18:44 .vpasswd.lock drwx-- 3 vpopmail vchkpw 136 Jan 5 20:27 charlie drwx-- 3 vpopmail vchkpw 136 Jan 5 18:44 postmaster -rw--- 1 vpopmail vchkpw 332 Jan 5 18:47 vpasswd -rw--- 1 vpopmail vchkpw 2446 Jan 5 18:47 vpasswd.cdb I also tried loosening the permissions, but still get the error: # ls -la total 40 drwxr-xr-x 5 vpopmail vchkpw 408 Jan 5 19:29 . drwxr-xr-x 5 vpopmail vchkpw 204 Jan 5 18:44 .. -rw--- 1 vpopmail vchkpw34 Jan 5 18:47 .dir-control -rw-r--r-- 1 vpopmail vchkpw31 Jan 5 19:20 .qmail-admin -rw-r--r-- 1 vpopmail vchkpw97 Jan 5 19:23 .qmail-default -rw-r--r-- 1 vpopmail vchkpw 0 Jan 5 18:44 .qmailadmin-limits -rw--- 1 vpopmail vchkpw 0 Jan 5 18:44 .vpasswd.lock drwxr-xr-x 3 vpopmail vchkpw 136 Jan 5 20:27 charlie drwx-- 3 vpopmail vchkpw 136 Jan 5 18:44 postmaster -rw--- 1 vpopmail vchkpw 332 Jan 5 18:47 vpasswd -rw--- 1 vpopmail vchkpw 2446 Jan 5 18:47 vpasswd.cdb Charlie -- Charlie Garrison [EMAIL PROTECTED] PO Box 141, Windsor, NSW 2756, Australia O ascii ribbon campaign - stop html mail - www.asciiribbon.org http://www.ietf.org/rfc/rfc1855.txt !DSPAM:477f557c310545377220710!
Re: [vchkpw] local delivery failure when forwarding messages
It still sounds like a permissions error to me. Did you follow the toaster exactly or did you deviate from it at all? Maybe you could add recordio to the logging and see more details in the logs as to where it is failing or run a strace? On Sat, 2008-01-05 at 20:56 +1100, Charlie Garrison wrote: Good evening, On 5/1/08 at 6:33 PM +0900, Shane Chrisp [EMAIL PROTECTED] wrote: Check the ownership and permissions on the .qmail files. From memory this can cause the problem you describe. EG: ls -la .qmail-joe -rw-r--r-- 1 vpopmail vchkpw 24 2006-12-09 14:56 .qmail-joe Thanks for the suggestion, but the permissions look good: # ls -l total 40 -rw--- 1 vpopmail vchkpw34 Jan 5 18:47 .dir-control -rw--- 1 vpopmail vchkpw31 Jan 5 19:20 .qmail-admin -rw--- 1 vpopmail vchkpw97 Jan 5 19:23 .qmail-default -rw--- 1 vpopmail vchkpw 0 Jan 5 18:44 .qmailadmin-limits -rw--- 1 vpopmail vchkpw 0 Jan 5 18:44 .vpasswd.lock drwx-- 3 vpopmail vchkpw 136 Jan 5 20:27 charlie drwx-- 3 vpopmail vchkpw 136 Jan 5 18:44 postmaster -rw--- 1 vpopmail vchkpw 332 Jan 5 18:47 vpasswd -rw--- 1 vpopmail vchkpw 2446 Jan 5 18:47 vpasswd.cdb I also tried loosening the permissions, but still get the error: # ls -la total 40 drwxr-xr-x 5 vpopmail vchkpw 408 Jan 5 19:29 . drwxr-xr-x 5 vpopmail vchkpw 204 Jan 5 18:44 .. -rw--- 1 vpopmail vchkpw34 Jan 5 18:47 .dir-control -rw-r--r-- 1 vpopmail vchkpw31 Jan 5 19:20 .qmail-admin -rw-r--r-- 1 vpopmail vchkpw97 Jan 5 19:23 .qmail-default -rw-r--r-- 1 vpopmail vchkpw 0 Jan 5 18:44 .qmailadmin-limits -rw--- 1 vpopmail vchkpw 0 Jan 5 18:44 .vpasswd.lock drwxr-xr-x 3 vpopmail vchkpw 136 Jan 5 20:27 charlie drwx-- 3 vpopmail vchkpw 136 Jan 5 18:44 postmaster -rw--- 1 vpopmail vchkpw 332 Jan 5 18:47 vpasswd -rw--- 1 vpopmail vchkpw 2446 Jan 5 18:47 vpasswd.cdb Charlie !DSPAM:477f7036310542939215916!
Re: [vchkpw] local delivery failure when forwarding messages
Good evening, On 5/1/08 at 8:55 PM +0900, Shane Chrisp [EMAIL PROTECTED] wrote: It still sounds like a permissions error to me. Did you follow the toaster exactly or did you deviate from it at all? Maybe you could add recordio to the logging and see more details in the logs as to where it is failing or run a strace? I installed on OS X (Leopard) so I had to deviate a bit to get things to compile. And vpopmail couldn't go in /home due to something about that being a network automount path (I didn't explore that; just changed to /usr/local instead). And I didn't install everything, eg. no imap. Otherwise I followed the toaster as closely as I could. Where do you suggest I add recordio? I've confirmed it's not an issue with smtp; the following command generates an error (admin is a forwarding address): $ echo to: [EMAIL PROTECTED] | /var/qmail/bin/qmail-inject $ more .qmail-admin [EMAIL PROTECTED] From /var/log/qmail/send/current: 2008-01-05 21:58:01.211526500 delivery 32: deferral: Unable_to_forward_message:_unable_to_exec_qq_(#4.3.0)./ While this command works fine (charlie is a mailbox): $ echo to: [EMAIL PROTECTED] | /var/qmail/bin/qmail-inject Also, I don't have strace available. I do have dtrace but I'm not sure how to use it (rather never used it before) and don't know how to find which process to watch. From the testing I've done, I believe qmail-local is generating the error, and I'm not sure how to find and watch that process since it's so transient. I'd be very happy for it to be a permissions problem, but after *many* hours of comparing to other working vpopmail installs, I can't see what is different. Thanks, Charlie -- Charlie Garrison [EMAIL PROTECTED] PO Box 141, Windsor, NSW 2756, Australia O ascii ribbon campaign - stop html mail - www.asciiribbon.org http://www.ietf.org/rfc/rfc1855.txt !DSPAM:477f7c26310544572353896!
Re: [vchkpw] local delivery failure when forwarding messages
I remember I had an issue with a certain version of vpopmail using forwards. I dont remember now if the format which caused the problem was [EMAIL PROTECTED] or /home/vpopmail/domains/domain.com/user/Maildir/ All I remember is that one worked and the other caused an error of some sort. It may have been the same error your getting but I dont recall for sure. Shane On Sat, 2008-01-05 at 23:46 +1100, Charlie Garrison wrote: Good evening, On 5/1/08 at 8:55 PM +0900, Shane Chrisp [EMAIL PROTECTED] wrote: It still sounds like a permissions error to me. Did you follow the toaster exactly or did you deviate from it at all? Maybe you could add recordio to the logging and see more details in the logs as to where it is failing or run a strace? I installed on OS X (Leopard) so I had to deviate a bit to get things to compile. And vpopmail couldn't go in /home due to something about that being a network automount path (I didn't explore that; just changed to /usr/local instead). And I didn't install everything, eg. no imap. Otherwise I followed the toaster as closely as I could. Where do you suggest I add recordio? I've confirmed it's not an issue with smtp; the following command generates an error (admin is a forwarding address): $ echo to: [EMAIL PROTECTED] | /var/qmail/bin/qmail-inject $ more .qmail-admin [EMAIL PROTECTED] From /var/log/qmail/send/current: 2008-01-05 21:58:01.211526500 delivery 32: deferral: Unable_to_forward_message:_unable_to_exec_qq_(#4.3.0)./ While this command works fine (charlie is a mailbox): $ echo to: [EMAIL PROTECTED] | /var/qmail/bin/qmail-inject Also, I don't have strace available. I do have dtrace but I'm not sure how to use it (rather never used it before) and don't know how to find which process to watch. From the testing I've done, I believe qmail-local is generating the error, and I'm not sure how to find and watch that process since it's so transient. I'd be very happy for it to be a permissions problem, but after *many* hours of comparing to other working vpopmail installs, I can't see what is different. Thanks, Charlie !DSPAM:477f7d59310542136954509!
Re: [vchkpw] local delivery failure when forwarding messages
you need to use vdelivermail like this.. locationofyourvpopmail/bin/vdelivermail '' $DEFAULT@webmail.yourclient.com good luck Remo Charlie Garrison wrote: Good evening, On 5/1/08 at 8:55 PM +0900, Shane Chrisp [EMAIL PROTECTED] wrote: It still sounds like a permissions error to me. Did you follow the toaster exactly or did you deviate from it at all? Maybe you could add recordio to the logging and see more details in the logs as to where it is failing or run a strace? I installed on OS X (Leopard) so I had to deviate a bit to get things to compile. And vpopmail couldn't go in /home due to something about that being a network automount path (I didn't explore that; just changed to /usr/local instead). And I didn't install everything, eg. no imap. Otherwise I followed the toaster as closely as I could. Where do you suggest I add recordio? I've confirmed it's not an issue with smtp; the following command generates an error (admin is a forwarding address): $ echo to: [EMAIL PROTECTED] | /var/qmail/bin/qmail-inject $ more .qmail-admin [EMAIL PROTECTED] From /var/log/qmail/send/current: 2008-01-05 21:58:01.211526500 delivery 32: deferral: Unable_to_forward_message:_unable_to_exec_qq_(#4.3.0)./ While this command works fine (charlie is a mailbox): $ echo to: [EMAIL PROTECTED] | /var/qmail/bin/qmail-inject Also, I don't have strace available. I do have dtrace but I'm not sure how to use it (rather never used it before) and don't know how to find which process to watch. From the testing I've done, I believe qmail-local is generating the error, and I'm not sure how to find and watch that process since it's so transient. I'd be very happy for it to be a permissions problem, but after *many* hours of comparing to other working vpopmail installs, I can't see what is different. Thanks, Charlie !DSPAM:477fa531310541381836233!
Re: [vchkpw] local delivery failure when forwarding messages
Remo Mattei wrote: you need to use vdelivermail like this.. locationofyourvpopmail/bin/vdelivermail '' $DEFAULT@webmail.yourclient.com good luck Sorry I haven't been keeping up on this thread, but this looks like a good place for an important warning: N E V E R ,E V E RC A L LV D E L I V E R M A I L F R O MA N Y W H E R EE X C E P TT H E . Q M A I L - D E F A U L TF I L E O F A V P O P M A I LD O M A I N ! ! ! Yes I am shouting at the top of my lungs! I had a disk failure on my local server recently and had to rebuild from scratch (only data backups, not full system). I used Shupp's toaster to install qmail/vpopmail. I think my problem may be with qmail, but I'm trying here first. Thanks, it is best not to bother the qmail list with vpopmail problems, even if the problem isn't directly related to vpopmail. I installed on OS X (Leopard) so I had to deviate a bit to get things to compile. And vpopmail couldn't go in /home due to something about that being a network automount path (I didn't explore that; just changed to /usr/local instead). How? Hopefully you changed the home directory of the vpopmail user in /etc/passwd before you compiled vpopmail. Just moving stuff around may not work because vpopmail compiles in a number of things like this. Where do you suggest I add recordio? I've confirmed it's not an issue with smtp; the following command generates an error (admin is a forwarding address): I don't see any need to look at network i/o. You can deliver mail directly to a mailbox, so the smtp part of things is working. The message was accepted, queued and a local delivery was started. $ echo to: [EMAIL PROTECTED] | /var/qmail/bin/qmail-inject $ more .qmail-admin [EMAIL PROTECTED] From /var/log/qmail/send/current: 2008-01-05 21:58:01.211526500 delivery 32: deferral: Unable_to_forward_message:_unable_to_exec_qq_(#4.3.0)./ While this command works fine (charlie is a mailbox): $ echo to: [EMAIL PROTECTED] | /var/qmail/bin/qmail-inject I don't believe .qmail-admin involves vdelivermail at all. When the message is submitted to qmail-local for processing, qmail-local finds the forward and attempts to run qmail-queue to re-queue the message. Vdelivermail will not be called because qmail-local found a .qmail file that matched in the domain directory. What we know... qmail-smtpd can execute qmail-queue (qq) qmail-inject can not execute qmail-queue qmail-local can not execute qmail-queue What are the permissions in /var/qmail/bin? If you haven't looked at the qmail Big Picture, it might be helpful... http://www.nrg4u.com/ !DSPAM:477fbea2310543100517900!
Re: [vchkpw] local delivery failure when forwarding messages
On Jan 5, 2008, at 4:46 AM, Charlie Garrison wrote: 2008-01-05 21:58:01.211526500 delivery 32: deferral: Unable_to_forward_message:_unable_to_exec_qq_(#4.3.0)./ This error message means that it's having trouble running qmail- queue, probably as called from qmail-inject. -Tom !DSPAM:477fbab3310541028110374!
[vchkpw] Global .qmail file for all domains
Hi, I just made maildrop sort spam to a Spam folder for my own user and I'd like the same functionality for all my domains. Is it possible to have a global .qmail file or such? Or simply use maildrop instead of vdelivermail (or whatever it's called)? Thanks !DSPAM:477fde3d310548088720428!
Re: [vchkpw] local delivery failure when forwarding messages
Good morning, On 5/1/08 at 10:30 AM -0700, Rick Widmer [EMAIL PROTECTED] wrote: I installed on OS X (Leopard) so I had to deviate a bit to get things to compile. And vpopmail couldn't go in /home due to something about that being a network automount path (I didn't explore that; just changed to /usr/local instead). How? Hopefully you changed the home directory of the vpopmail user in /etc/passwd before you compiled vpopmail. Just moving stuff around may not work because vpopmail compiles in a number of things like this. Yes, the home directory for vpopmail user was set before I began compiling. Output from configure shows the correct directories. I don't believe .qmail-admin involves vdelivermail at all. When the message is submitted to qmail-local for processing, qmail-local finds the forward and attempts to run qmail-queue to re-queue the message. Vdelivermail will not be called because qmail-local found a .qmail file that matched in the domain directory. What we know... qmail-smtpd can execute qmail-queue (qq) qmail-inject can not execute qmail-queue qmail-local can not execute qmail-queue Yep., that's pretty much the conclusion I've come to. But I can't find anything to indicate why qmail-local can't execute qmail-queue. What can I do to diagnose/test this further? I though about calling qmail-local manually, but I'm having trouble finding an example for that. The man page says the message needs to be seekable and I'm not sure how to set that up. What are the permissions in /var/qmail/bin? # ls -la /var/qmail/bin/ total 2696 drwxr-xr-x 2 rootqmail1870 Jan 5 12:53 . drwxr-xr-x 16 rootqmail 646 Jan 5 12:31 .. -rwxr-xr-x 1 rootqmail 17596 Jan 5 11:33 bouncesaying -rwxr-xr-x 1 rootqmail 22780 Jan 5 11:33 condredirect -rwxr-xr-x 1 rootqmail 126 Jan 5 11:33 datemail -rwxr-xr-x 1 rootqmail 114 Jan 5 11:33 elq -rwxr-xr-x 1 rootqmail 17596 Jan 5 11:33 except -rwxr-xr-x 1 rootqmail 22676 Jan 5 11:33 forward -rwxr-xr-x 1 rootqmail 27524 Jan 5 11:33 maildir2mbox -rwxr-xr-x 1 rootqmail 13440 Jan 5 11:33 maildirmake -rwxr-xr-x 1 rootqmail 27468 Jan 5 11:33 maildirwatch -rwxr-xr-x 1 rootqmail 179 Jan 5 11:33 mailsubj -rwxr-xr-x 1 rootqmail 115 Jan 5 11:33 pinq -rwxr-xr-x 1 rootqmail 18416 Jan 5 11:33 predate -rwxr-xr-x 1 rootqmail 22736 Jan 5 11:33 preline -rwxr-xr-x 1 rootqmail 115 Jan 5 11:33 qail -rwxr-xr-x 1 rootqmail 18800 Jan 5 11:33 qbiff -rwxr-xr-x 1 rootqmail 22438 Jan 5 13:01 qmHandle -rwx--x--x 1 rootqmail 18568 Jan 5 11:33 qmail-clean -rws--x--x 1 qmailq qmail 43024 Jan 5 11:33 qmail-dk -rwx--x--x 1 rootqmail 13536 Jan 5 11:33 qmail-getpw -rwxr-xr-x 1 rootqmail 51000 Jan 5 11:33 qmail-inject -rwx--x--x 1 rootqmail 55372 Jan 5 11:33 qmail-local -rwx-- 1 rootqmail 23884 Jan 5 11:33 qmail-lspawn -rwx-- 1 rootqmail 22820 Jan 5 11:33 qmail-newmrh -rwx-- 1 rootqmail 19028 Jan 5 11:33 qmail-newst -rwx-- 1 rootqmail 18832 Jan 5 11:33 qmail-newu -rwxr-xr-x 1 rootqmail 37452 Jan 5 11:33 qmail-pop3d -rwx--x--x 1 rootqmail 19356 Jan 5 11:33 qmail-popup -rwx--x--x 1 rootqmail 23816 Jan 5 11:33 qmail-pw2u -rwxr-xr-x 1 rootqmail 23624 Jan 5 11:33 qmail-qmqpc -rwxr-xr-x 1 rootqmail 23096 Jan 5 11:33 qmail-qmqpd -rwxr-xr-x 1 rootqmail 32448 Jan 5 11:33 qmail-qmtpd -rwxr-xr-x 1 rootqmail 23080 Jan 5 11:33 qmail-qread -rwxr-xr-x 1 rootqmail 371 Jan 5 11:33 qmail-qstat -rws--x--x 1 qmailq qmail 19664 Jan 5 11:33 qmail-queue -rwx--x--x 1 rootqmail 51892 Jan 5 11:33 qmail-remote -rwx--x--x 1 rootqmail 19372 Jan 5 11:33 qmail-rspawn -rwx--x--x 1 rootqmail 56520 Jan 5 11:33 qmail-send -rwxr-xr-x 1 rootqmail 27356 Jan 5 11:33 qmail-showctl -rwxr-xr-x 1 rootqmail 184996 Jan 5 11:33 qmail-smtpd -rwx-- 1 rootqmail9316 Jan 5 11:33 qmail-start -rwxr-xr-x 1 rootqmail 17692 Jan 5 11:33 qmail-tcpok -rwxr-xr-x 1 rootqmail 18032 Jan 5 11:33 qmail-tcpto -rwxr-xr-x 1 rootqmail3636 Jan 4 02:04 qmailctl -rwxr-xr-x 1 rootqmail 32116 Jan 5 11:33 qreceipt -rwxr-xr-x 1 rootqmail 19044 Jan 5 11:33 qsmhook -rwxr-xr-x 1 rootqmail 27760 Jan 5 09:31 queue-fix -rwxr-xr-x 1 rootqmail 26286 Jan 5 09:37 queue_repair.py -rwxr-xr-x 1 rootqmail 18236 Jan 5 11:33 sendmail -rwx--x--x 1 rootqmail 13812 Jan 5 11:33 splogger -rwxr-xr-x 1 rootqmail 28060 Jan 5 11:33 tcp-env -rwxr-xr-x 1 rootqmail 831 Jan 5 11:33 update_tmprsadh -rwxr-xr-x 1 rootqmail2613 Jan 4 02:37 vpopmailctl If you haven't looked at the qmail Big Picture, it might be helpful... http://www.nrg4u.com/ Thanks, had been looking for