Map<MailAddress, DeliveryReturnCode> replies = new HashMap<MailAddress, DeliveryReturnCode>();
// Deliver to each recipient
for (MailAddress recipient : env.getRecipients())
{
DeliveryReturnCode reply = DeliveryReturnCode.TEMPORARY_FAILURE; // default LMTP reply
DeliveryAction deliveryAction = DeliveryAction.DELIVER; // default delivery action
Mailbox mailbox = new Mailbox(recipient.toString());
String logMsg = new StringBuilder(" ").append(mailbox.getId())
.append(" DID").append(deliveryId).toString();