Change Qmail Mailer Domain

I’m running several dedicated servers from mediatemple and I have dozens of domains that I’m hosting for clients running on those. The qmail application seemed to have chosen the very first domain on each server as it’s default return address for all alert and mailer-daemon messages.

I wanted to alter the domain it used, so I changed it by editing the configuration file:


$ vi /var/qmail/control/me

Enter the domain name you want and save the file, then reboot qmail:


$ service qmail stop
$ service qmail start