Question: how control a double-bounce in a virtualdomains environment.

I'm using qmail 1.03 with two virtualdomains in a RedHat 6.1 Linux box.

This is the content of various control files:
ME:
mydomain.org

LOCALS:
mydomains.org

VIRTUALDOMAINS:
domain1.org:dm1
domain2.org:dm2

In /var/qmail/alias there are usual files:
.qmail-postmaster
.qmail-root
.qmail-mailer-daemon

.qmail-dm1-postmaster
.qmail-dm1-root
.qmail-dm1-mailer-daemon

.qmail-dm2-postmaster
.qmail-dm2-root
.qmail-dm2-mailer-daemon

Different users inside virtualdomains are controlled by
users/assign and related "cdb" database.
These are the first rows
------------------------------------------------------------------
=alias:alias:104:501:/var/qmail/alias:::
+alias-:alias:104:501:/var/qmail/alias:-::

=dm1-alfa:dm1-alfa:108:500:/var/mail/d/dm1-alfa:::
+dm1-alfa-:dm1-alfa:108:500:/var/mail/d/dm1-alfa:-::

=dm1-beta:dm1-beta:108:500:/var/mail/d/dm1-beta:::
+dm1-beta-:dm1-beta:108:500:/var/mail/d/dm1-beta:-::

=dm2-delta:dm2-delta:108:500:/var/mail/d/dm2-delta:::
+dm2-delta-:dm2-delta:108:500:/var/mail/d/dm2-delta:-::
--------------------------------------------------------------------


Now I create a double-bounce using an email client (outlook express) on
onother PC connected to LAN.
This email client is setup with a non existing account inside a
virtualdomain (From field):
 [EMAIL PROTECTED]

Now I send a message to another non existing account in the same
virtualdomain:
 [EMAIL PROTECTED]

Right, qmail send the bounce to alias/.qmail-postmaster because
[EMAIL PROTECTED] doesn't exist.

This are the first rows of the failure notice message:
----------------------------------
Hi. This is the qmail-send program at mydomain.org.
I've tried to deliver a bounce message to this address, but the bounce
bounced!

etc. etc.
----------------------------------

**And NOW the question:**

I have many different real "postmaster" (inside
alias/.qmail-???-postmaster), one for every
virtualdomains.

So:

1) How can I setup qmail to send a generic double bounce to
.qmail-dm1-postmaster
and so on for every virtualdomains ? I want that a bounce about a particular
virtualdomain will be sent to his postmaster
Perhaps setting up a "~dm1/" and a "~dm2/" directory ?

2) How can I setup the content of "failure notice" above to show the
virtualdomain
"Hi. This is the qmail-send program at domain1.org."
instead of
"Hi. This is the qmail-send program at mydomain.org."


---
Alessandro Ambrosini
Cernusco s/N (MI)
Italy
+39-0347-2443074
[EMAIL PROTECTED]

Reply via email to