Thank you all for this advice, and it did seem a good idea, until I somehow
brought my server to his knees (good thing it is after work hours) just by
recompiling and running "make setup check" - I was unable to start qmail
with the "alert: cannot start: unable to read controls" messages in the log.
Well now I am past it. I now have all messages duplicated to the log alias,
but there is a problem...

|grep -qv MAILER-DAEMON && exit 99 - this does not catch anything at all ...

|grep -q MAILER-DAEMON && exit 99 - this one causes the message to log to be
deferred.
|grep -q MAILER-DAEMON  || exit 99 - this works, but cause a loop in the
system because every message forwarded to a user specified after this line
(me of course) eventually goes again through qmail-queue and gets replicated
to the log alias again.

Any suggestions (and if you could please tell me where can I read how that
line functions - I am not familiar with this command form.)

Thank you.

Alex
Incredimail Admin.


-----Original Message-----
From: Peter Green [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 10, 2000 7:53 PM
To: [EMAIL PROTECTED]
Cc: Charles Cazabon
Subject: Re: all mail forwarding and catching all bounces


* Charles Cazabon <[EMAIL PROTECTED]> [001210 10:19]:
> > 1. Is it possible to copy every bounce message generated to any user to
> > another user (in this case - me : i want to know when my users do not
> > succeede sending, or someone from the outside is sending mail to a wrong
> > address in my domain)
>
> A bounce message is just another message to qmail.  What you could do is
use
> the QUEUE_EXTRA feature to send copies of all mail to an alias (msglog is
> a common choice).  Then have a file ~alias/.qmail which does something
like:
>
> |grep -q MAILER-DAEMON && exit 99

Shouldn't this use ``||'' instead of ``&&''? If he wants to see only the
bounces...

Also, it might be a good idea to use the mess822 package to only grep for
MAILER-DAEMON in the headers, where it makes sense.

/pg
--
Peter Green : Gospel Communications Network, SysAdmin : [EMAIL PROTECTED]
---
For mad scientists who keep brains in jars, here's a tip: why not add a
slice
of lemon to each jar, for freshness?
 (Jack Handey)


Reply via email to