Integrating Mail Hail, Exim, & Hailbox

Instructions for integrating Mail Hail with Exim and Hailbox are provided here. Your success may vary with other programs.

Exim uses directors to delegate local mail delivery to an appropriate transport. The default director for mailbox delivery is localuser. Local transports are used to deliver mail to local files or programs. The default transport for mailbox delivery is local_delivery. A pipe transport can be configured to invoke Hailbox. Hailbox can in turn invoke Mail Hail.

You will want to stop the Exim daemon before changing its configuration file.

Exim is configured by a single file, which is divided into seven parts. Add the following transport to the transports part:

hailbox_pipe:
  driver = pipe
  command = "/usr/local/sbin/hailbox ${local_part}"
  user = $local_part
  group = mail

This transport assumes that Hailbox has been configured to use "mail" as the name of the group that owns the mail spool. The transport must be used by the localuser director to handle local mailboxes.

In the directors part you will find a director marked

localuser:

Comment out the line reading

#transport = local_delivery

and add the following line below it:

transport = hailbox_pipe

Exim is now configured to use Hailbox for local delivery. You can safely restart the Exim daemon once Hailbox and Mail Hail are configured. See the associated instructions for details.

Once Hailbox is configured to use Mail Hail as its notification agent, Mail Hail is integrated into the mail system. Users receive an instant message as notification for each E-Mail message that arrives. Depending on the features of the associated instant messaging service, the notification may be stored as an offline message if a user is not connected.