Dave Sill wrote:
>
> I can't really tell what you're trying to accomplish. How about
> describing in words the paths you want incoming and outgoing messages
> for the various classes of domains to take?
>
> -Dave
OK, so here I go:
There are a number of customers, whose incoming and outgoing e-mail must be
rerouted via a central service that provides virus-scanning. As these
customers are connected each to various ISP's, and we want to provide the
virus-scanning service (and eventually other mail processing services), all
mail should be routed through one relay host (MYRELAY), the one I have to
setup. The virus-scanning is provided by a third party relay host
(PROCRELAY) who will accept smtp-connections from our relay host, process the
mail and route it back to the final destination.
Incoming mail:
1. any sender: mail sent to: [EMAIL PROTECTED]
2. mail is relayed to MYRELAY (MX record for customer.net)
3. (after checking that the message is not coming from PROCRELAY and thus
has to be processed before forwarded) mail is relayed to PROCRELAY
4. (after being processed) mail is sent to MYRELAY (MX record for
customer.net)
5. (message comes from PROCRELAY so can be safely forwarded to customers
postoffice/private relay)
Outgoing mail:
1. mail is sent from customers private mail-gateway to
[EMAIL PROTECTED]
2. mail is relayed to MYRELAY
3. (after checking that the message is not coming from PROCRELAY and thus
has to be processed before forwarded) mail is relayed to PROCRELAY
4. (after being processed) mail is sent out to MX for somewhere.net
I hope this clarifies the situation.
Because I have to route the mail on MYRELAY depending on where the previous
mail-hop was, I think I have to run 2 different mailprocesses, and use
portforwarding based on the smtp conversations client host. (there seems no
-inexpensive- way to let qmail-smtpd conversate with qmail-send)
This way I can use two different routing setups.
Lieven