Disabling copy messages (QUEUE_EXTRA)

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 ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-14-2004
Vahid
 
Posts: n/a
Default Disabling copy messages (QUEUE_EXTRA)

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?
Thanks.
Vahid.
Reply With Quote
  #2 (permalink)  
Old 07-14-2004
Safari
 
Posts: n/a
Default Re: Disabling copy messages (QUEUE_EXTRA)

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

Reply With Quote
  #3 (permalink)  
Old 07-14-2004
Dave Sill
 
Posts: n/a
Default Re: Disabling copy messages (QUEUE_EXTRA)

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.
Reply With Quote
  #4 (permalink)  
Old 07-15-2004
Vahid
 
Posts: n/a
Default Re: Disabling copy messages (QUEUE_EXTRA)

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,

Reply With Quote
  #5 (permalink)  
Old 07-15-2004
Dave Sill
 
Posts: n/a
Default Re: Disabling copy messages (QUEUE_EXTRA)

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.
Reply With Quote
  #6 (permalink)  
Old 07-16-2004
Vahid
 
Posts: n/a
Default Re: Disabling copy messages (QUEUE_EXTRA)



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.

Reply With Quote
  #7 (permalink)  
Old 07-16-2004
Dave Sill
 
Posts: n/a
Default Re: Disabling copy messages (QUEUE_EXTRA)

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.
Reply With Quote
  #8 (permalink)  
Old 07-17-2004
Vahid
 
Posts: n/a
Default Re: Disabling copy messages (QUEUE_EXTRA)

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.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:32 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0