def regenerate(directory=None):
    """Regenerate the full aliases file.

        :param directory: The directory to write the MTA specific support
            files to.  Defaults to $DATA_DIR.
        :type directory: string
        """
