Note: pair customers wanting the sendmail-to-qmail migration script can find it at

mdforward is a mail forwarding and delivery utility, suitable for calling from a .forward file with sendmail.

mdforward is particularly useful in the presence of virtual domains, where all mail for a domain is delivered to one account as it allows mail to different users in the domain to be handled independently.

mdforward supports reliable loop detection (via Delivered-to:) and preserves the envelope sender when forwarding mail, so loops are not created.

mdforward requires perl5.004 or later.


mdforward is free software and may be downloaded from

More Information

mdforward was written by Giles Lean.
Comments, bug reports and requests for enhancement all welcome.