Bosco So wrote:
I'm spooling VERPed emails to a James server for remote delivery. I want to record in a database table the ultimate status of each delivery (after all retries).

What's the best way to do this? A blind approach is to extend the RemoteDelivery mailet to record successes and failures and replace all references to RemoteDelivery with my new mailet. Is there an easier way?

I'm using James 2.2.0a15 on Redhat Linux 8 & 9 with Sun's 1.4.2_01 java.

You don't need to touch RemoteDelivery. Modifying RemoteDelivery would only help you catch deliveries that failed fast, and not messages that get processed remotely and bounced back (two alternate ways a remote server could do the same thing).


Setup a matcher that looks for your address pattern, and then fire whatever mailet you want when that VERP address arrives.

There is a mime type that defines how/why a message bounces, and I was surprised that a large number (> 60%) of the bounces I get include this information. I don't know whether anyone has had time to, but there was talk of having RemoteDelivery create this mime type as part of bounces, and then code to help you read this. Unfortunately I forget the RFC off hand.

But for my purpose, I just records bounces as yes/no. It's not as intelligent as I would like, but it works for now.

--
Serge Knystautas
President
Lokitech >>> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to