On Sun, 9 Sep 2007, 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?

The right solution to this problem has been discussed here previously - the smtp-forward plugin should hook into multiple hooks, and pass the mail_from and rcpt_to data to the back end as it is received, relaying responses as the back end gives them.

---
Charlie

Reply via email to