On 2007-09-09 13:23:36 -0500, Tim Tsai wrote:
> It's silly to keep replying to myself, but here goes.  I  notice in 
> smtp-forward this loop:
> 
>  for ($transaction->recipients) {
>    $smtp->to($_->address) or return (DECLINED, "To: Unable to queue 
> message ($!)");
>  }
> 
> this seems to suggest that if any one recipient fails, the whole 
> transaction fails.  That seems to be contrary to my experiences with 
> mail servers.  Would it be better for me to count the number of valid 
> recipients and DECLINED or DENY only if there are no valid recipients at 
> all?

No, it would be better to give up on smtp-forward. It isn't suitable to
your needs, as I explained in my previous mail.

You could use it as a starting point to write a plugin which does smtp
callouts during the rcpt hook. 

But as it currently is, it is only suitable to forward a message which
has already been accepted. At that point you must already have
established that all recpipients exist and there is no sane way to
handle errors any more.

        hp


-- 
   _  | Peter J. Holzer    | I know I'd be respectful of a pirate 
|_|_) | Sysadmin WSR       | with an emu on his shoulder.
| |   | [EMAIL PROTECTED]         |
__/   | http://www.hjp.at/ |    -- Sam in "Freefall"

Attachment: signature.asc
Description: Digital signature

Reply via email to