Alex Kramarov <[EMAIL PROTECTED]> wrote:
> 
> I am new to this list, but i am a diligent reader, and after reading all
> documentation on q-mail i couldn't find two things i need a lot , after I
> successfully installed a qmail server and put it instead of my old exchange,
> which was giving me a lot of trouble before ...

This is quite possibly the best "newbie" message to the list I've seen in
months.  Thank you for doing your research.

> 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
&you@yourdomain

This should forward copies of qmail bounces to you.  You could make the grep
term a little more flexible to catch bounces from other MTAs.

> 2. Is it possible to forward all mail (except the local mail, as listed in
> control/local) to another host - and I am not talking of smtproutes, which
> takes place after the original e-mail has been parsed and copies of it has
> been generated to every domain it's destined to go. I want to forward all
> non-local mail to the server of my provider, so that if someone sends a 2MB
> mail to 50 recipients, which unfortunately my users do sometimes, that will
> not take my 128 bit line till the rest of the day sending 50 copies of the
> mail (and instead, of course, forward 1 mail to my provider's server, so he
> would have to send these 50 copies).

Once a message hits qmail-queue, it will be sent once for each recipient.
An alternative would be to have a wrapper around qmail-queue which determines
if the message is to a local or remote address; if its local, it calls
qmail-queue; otherwise it sends it directly to your ISP's smarthost
(using nullmailer perhaps?).

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------

Reply via email to