You could always use: https://www.npmjs.org/package/address-rfc2822 which is what it was designed for. Or just use the mail_from domain again in this example.