class EmailNotifier implements Notifier, TransportListener {

    public void messageNotDelivered(TransportEvent event) {
        LOG.debug("Got messageNotDelivered event {}", event);
        handleFail(event);
    }

}