Search code examples
emailpleskqmail

Email aliasing with qmail


I'm trying to set up email domain aliasing in qmail (I'm on a Plesk server). What should happen is that emails sent to user@myalias.com get sent to user@realdomain.com (regardless of what user is). I would like this to happen without having to set up redirects and mess around with that sort of thing.

I've followed the details on this forum post with limited success. I only made changes to the qmail config as all other config is already there and correct as the myalias.com domain is set up through Plesk ...

  1. modify /var/qmail/control/virtualdomains
  2. add myalias.com:60 ("60" corresponds to the integer of the realdomain.com that is in the same file)
  3. restart qmail service

Logs are showing that qmail accepts the incoming email to @myalias.com and then routes it to @realdomain.com. The email then goes missing and is never actually delivered.

Any thoughts on where/how I could dig deeper to figure out what's happening to the email?

Thanks.


Solution

  • Just following up on this older question of mine. It is all working well now. I had the NOC check the server and they corrected it for me. Had something to do with remotehosts file.