This is a discussion on Disabling copy messages (QUEUE_EXTRA) within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; Hi, During the compile time, I have set QUEUE_EXTRA to keep a copy of all e-mail. Is there a ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On 14 Jul 2004 09:39:09 -0700, Vahid <sunman@ureach.com> wrote:
> Hi, > During the compile time, I have set QUEUE_EXTRA to keep a copy of all e-mail. > Is there a way to disable that feature without having to recompile qmail? no [1]. just edit extra.h and type command "make qmail-queue" and after about one second it's done. then just replace the real qmail-queue in /var/qmail/bin or whatever with the fresh one (careful with the permissions). [1] unless you have a good disassembler and can code asm... -- Safari - safari@linuxmail.orgies |
|
|||
|
sunman@ureach.com (Vahid) writes:
> During the compile time, I have set QUEUE_EXTRA to keep a copy of all e-mail. > Is there a way to disable that feature without having to recompile qmail? Sure, just configure the .qmail file that receives the copies to throw them away. E.g.: echo '#' > ~alias/.qmail-log (assuming you set QUEUE_EXTRA to "Tlog\0". -- Dave Sill Oak Ridge National Lab, Workstation Support Author, The qmail Handbook <http://web.infoave.net/~dsill> <http://lifewithqmail.org/>: Almost everything you always wanted to know. |
|
|||
|
Dave Sill wrote:
> sunman@ureach.com (Vahid) writes: > > >>During the compile time, I have set QUEUE_EXTRA to keep a copy of all e-mail. >>Is there a way to disable that feature without having to recompile qmail? > > > Sure, just configure the .qmail file that receives the copies to throw > them away. E.g.: > > echo '#' > ~alias/.qmail-log > > (assuming you set QUEUE_EXTRA to "Tlog\0". I also had to remove the user "log" from the system, I would still get the copies even with ~alias/.qmail-log. Wouldn't having QUEUE_EXTRA "Tlog\0" and then add .qmail-log slow down the mail delivery? I guess qmail still have to deliver mail to "log" but ..qmail-log has no valid address. Thank you, |
|
|||
|
Vahid <NOSPAM-sunman@ureach.com> writes:
> Dave Sill wrote: >> sunman@ureach.com (Vahid) writes: >> >>>During the compile time, I have set QUEUE_EXTRA to keep a copy of all e-mail. >>>Is there a way to disable that feature without having to recompile qmail? >> Sure, just configure the .qmail file that receives the copies to >> throw >> them away. E.g.: >> echo '#' > ~alias/.qmail-log >> (assuming you set QUEUE_EXTRA to "Tlog\0". > > I also had to remove the user "log" from the system, I would still get > the copies even with ~alias/.qmail-log. OK, I was guessing at your configuration since you didn't supply the details. If you have a "log" user, ~alias/.qmail-log is a no-op. > Wouldn't having QUEUE_EXTRA "Tlog\0" and then add .qmail-log slow down > the mail delivery? I guess qmail still have to deliver mail to "log" > but .qmail-log has no valid address. Of course, but you *did* ask how to disable it without rebuilding. That's the price you pay. -- Dave Sill Oak Ridge National Lab, Workstation Support Author, The qmail Handbook <http://web.infoave.net/~dsill> <http://lifewithqmail.org/>: Almost everything you always wanted to know. |
|
|||
|
Dave Sill wrote: > Vahid <NOSPAM-sunman@ureach.com> writes: > > >>Dave Sill wrote: >> >>>sunman@ureach.com (Vahid) writes: >>> >>> >>>>During the compile time, I have set QUEUE_EXTRA to keep a copy of all e-mail. >>>>Is there a way to disable that feature without having to recompile qmail? >>> >>>Sure, just configure the .qmail file that receives the copies to >>>throw >>>them away. E.g.: >>> echo '#' > ~alias/.qmail-log >>>(assuming you set QUEUE_EXTRA to "Tlog\0". >> >>I also had to remove the user "log" from the system, I would still get >>the copies even with ~alias/.qmail-log. > > > OK, I was guessing at your configuration since you didn't supply the > details. If you have a "log" user, ~alias/.qmail-log is a no-op. > > >>Wouldn't having QUEUE_EXTRA "Tlog\0" and then add .qmail-log slow down >>the mail delivery? I guess qmail still have to deliver mail to "log" >>but .qmail-log has no valid address. > > > Of course, but you *did* ask how to disable it without rebuilding. > That's the price you pay. > Yes I did, thanks, that worked fine. On the two machines that I am setting qmail up, performance is very important. Let me ask this question then, is that possible not to compile qmail with QUEUE_EXTRA "Tlog\0" and still be able to log all mails? e.g. via env var, etc... If not, which binary handles this feature so I compile two versions of it, with and w/o "Tlog\0" set in the header and use whichever I need? Thanks, Vahid. |
|
|||
|
Vahid <NOSPAM-sunman@ureach.com> writes:
> Let me ask this question then, is that possible not to compile qmail > with QUEUE_EXTRA "Tlog\0" and still be able to log all mails? e.g. via > env var, etc... No. > If not, which binary handles this feature so I compile two versions of > it, with and w/o "Tlog\0" set in the header and use whichever I need? $ grep QUEUE_EXTRA *.c qmail-queue.c: if (substdio_bput(&ssout,QUEUE_EXTRA,QUEUE_EXTRALEN) == -1) die_write(); $ So that would be the qmail-queue binary. -- Dave Sill Oak Ridge National Lab, Workstation Support Author, The qmail Handbook <http://web.infoave.net/~dsill> <http://lifewithqmail.org/>: Almost everything you always wanted to know. |
|
|||
|
Dave Sill <MaxFreedom@sws5.ornl.gov> wrote in message news:<wx0zn60i1fq.fsf@sws5.ornl.gov>...
> Vahid <NOSPAM-sunman@ureach.com> writes: > > > Let me ask this question then, is that possible not to compile qmail > > with QUEUE_EXTRA "Tlog\0" and still be able to log all mails? e.g. via > > env var, etc... > > No. > > > If not, which binary handles this feature so I compile two versions of > > it, with and w/o "Tlog\0" set in the header and use whichever I need? > > $ grep QUEUE_EXTRA *.c > qmail-queue.c: if (substdio_bput(&ssout,QUEUE_EXTRA,QUEUE_EXTRALEN) == -1) die_write(); > $ > > So that would be the qmail-queue binary. done! thanks. |