If SERVER_NAME not set, use $domain as the domain in message-id.