Re: [vchkpw] Vacation Messages *and* redirect
Jon Coulter wrote: Alternately, you can put this in the ~vpopmail/domains/domain.ext/user/.qmail file: | /bin/cat /dev/null This will cause cat to cat /dev/null (which takes no fileio cpu, since its null and empty), and exits with a clean 0, telling vpopmail that everything went okay. There are many ways to do many things, isn't qmail/vpopmail great? :) OK, I will experiment. I was worried that if I did the above the autoresponder would not work. Many thanks. -- Phil Dibowitz [EMAIL PROTECTED] Freeware and Technical Pages Insanity Palace of Metallica http://home.earthlink.net/~jaymzh666/ http://www.ipom.com/ They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin, 1759
RE: [vchkpw] Vacation Messages *and* redirect
Create a .qmail-user file for that person with the auto-responder line in it (I'm not sure off the top of my head what that syntax is). If there is a .qmail-user file in the domain's home directory, then vpopmail (well qmail, really) ignores the 'real' user, and does whatever the .qmail file says to do (so it will send the auto respond, and then never save the message anywhere). Alternately, you can put this in the ~vpopmail/domains/domain.ext/user/.qmail file: | /bin/cat /dev/null This will cause cat to cat /dev/null (which takes no fileio cpu, since its null and empty), and exits with a clean 0, telling vpopmail that everything went okay. There are many ways to do many things, isn't qmail/vpopmail great? :) Jon Coulter [EMAIL PROTECTED] -Original Message- From: Phil Dibowitz [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 6:57 PM To: vchkpw Subject: [vchkpw] Vacation Messages *and* redirect Hey all, I'd like to have a user whose email is redirected to /dev/null, and who has an auto-responder (vacation message). I'm not quite sure how to go about this, can someone tell me if it's possible, and maybe tell me how to do it, or point me to a link if it's documented already... Thanks, -- Phil Dibowitz [EMAIL PROTECTED] Freeware and Technical Pages Insanity Palace of Metallica http://home.earthlink.net/~jaymzh666/ http://www.ipom.com/ They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin, 1759
Re: [vchkpw] Vacation Messages *and* redirect
Hello Jon, On Tuesday, August 27, 2002 at 7:40:18 AM you wrote: | /bin/cat /dev/null This will cause cat to cat /dev/null (which takes no fileio cpu, since its null and empty), and exits with a clean 0, telling vpopmail that everything went okay. It will create a process and therefor use fileIO and CPU, as it has to look for '/bin/cat', read the file and execute it; therefore reserve memory, etc. etc. etc ... Why not doing it the 'qmail-way'??? $cat .qmail-emtpy # This will make qmail-local ignore the line as it is 'only' a comment, but not take any further steps for delivering the mail, as one valid instruction (the dot-qmail-file) was found. No need to spawn additional processes or doing some really nifty stuff to make simple thing look really complicated done by a simple instruction :-) -- Best regards Peter Palmreuthermailto:[EMAIL PROTECTED]
RE: [vchkpw] Vacation Messages *and* redirect
Ah, touché. I knew that an empty file would cause qmail to consider it a 'tmp file', but I never figured that it would treat an comment-line'd file any different. And my point about not using fileio is that something like '/bin/cat /dev/null' would actually have cat reading from stdin, and print to stdout, where as '/bin/cat /dev/null' would just tell cat to read /dev/null and print to stdio, and said file is obviously empty, so very little cpu/fileio :) Jon Coulter [EMAIL PROTECTED] -Original Message- From: Peter Palmreuther [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 11:57 AM To: [EMAIL PROTECTED] Subject: Re: [vchkpw] Vacation Messages *and* redirect Hello Jon, On Tuesday, August 27, 2002 at 7:40:18 AM you wrote: | /bin/cat /dev/null This will cause cat to cat /dev/null (which takes no fileio cpu, since its null and empty), and exits with a clean 0, telling vpopmail that everything went okay. It will create a process and therefor use fileIO and CPU, as it has to look for '/bin/cat', read the file and execute it; therefore reserve memory, etc. etc. etc ... Why not doing it the 'qmail-way'??? $cat .qmail-emtpy # This will make qmail-local ignore the line as it is 'only' a comment, but not take any further steps for delivering the mail, as one valid instruction (the dot-qmail-file) was found. No need to spawn additional processes or doing some really nifty stuff to make simple thing look really complicated done by a simple instruction :-) -- Best regards Peter Palmreuthermailto:[EMAIL PROTECTED]