Since version 810  Sendmail has implemented major improvements for supporting multiple domains You don’t need to use any kind of hack You need to configure sendmailmc as follows before installing Sendmail