[prev in list] [next in list] [prev in thread] [next in thread] 

List:       imp
Subject:    [imp] IMP E-Mail Send Hook (postprocess,
From:       Harakiri <harakiri_23 () yahoo ! com>
Date:       2009-03-26 11:38:58
Message-ID: 219019.85501.qm () web52209 ! mail ! re2 ! yahoo ! com
[Download RAW message or body]


Hi,

im using the pear smtp package to sent all mails from imp webmailer to an internal \
postfix filter. The problem is the pear smtp package has no support for error \
handling (while sendmail binary has, and imp code seems to handle this correctly, but \
sendmail doesnt allow to send to other ports then 25).

Briefly speaking, the filter will not allow specific recipient e-mail domains and \
denies sending the message - the pear smtp package  has no support for standard \
"recipient not allowed" error codes like 451 - the newest version at least return \
there is an error but not which one. So IMP can only write to the end user "there was \
an error sending your message" but it cannot show "recipient XYZ is not allowed".

Therefor i thought of a send hook - i didnt found one in the sources - does there \
exist one?

Alternativly - im about to hack the Compose.php

 function sendMessage($email, &$headers, &$message, $charset)

to hook in my own validation for recipients address if nobody has a cleaner solution.

Thanks


      
--
IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscribe@lists.horde.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic