Class MailEventController

java.lang.Object
com.onec.mail.web.MailEventController

@RestController public class MailEventController extends Object
Inbound delivery-event webhook (enabled via onec.mail.webhook.enabled=true). Accepts a list of normalised events and feeds the MailSuppressionList: hard bounces and complaints suppress the address; unsubscribes suppress it; deliveries/opens are ignored.

Providers post their own payload shapes (SES/SNS, SendGrid, ...). Translate them to this schema — [{"email": "x@y.com", "type": "bounce|complaint|unsubscribe|delivery", "detail": "..."}] — in a thin proxy or a provider-specific controller. This endpoint intentionally stays provider-agnostic.