I implemented it as suggested by Hanno and it works like a charm. And
since this mail switching qpsmtpd instance is feed by a qmail process
there can't be more than one recipient in a transaction, so we don't have
a problem if one of the destination MTAs fails.

Jörg


> On Mon, 29 Sep 2008 14:51:08 +0200 (CEST)
> Jörg C. Meyer <[EMAIL PROTECTED]> wrote:
>> I want to queue mails via SMTP to different SMTP servers based on the
>> rcpt
>> to: address. The goal is to route different parts of an email domain to
>> different servers in a mail server migration szenario.
>>
>> How should I implement this? I thought about hacking the "smtp-forward"
>> plugin.
> Why not wrap this plugin's hook_queue and return DECLINED if the
> destination is not for this instance... and then load the wrapper
> multiple times with different arguments, see docs/plugins.pod.
>
>       Hanno
>


Reply via email to