I've configured a new WordPress website to send emails from no-reply@domain.com for things like user registrations, password resets and newsletters.

The email info@domain.com is the only other mailbox for this domain which is what the site's owner will use for enquiries and personal outgoing mail.

info@domain.com uses Namecheap's private email hosting, while no-reply@domain.com uses my own iRedMail mail server. I am able to receive emails at info@domain.com and send from no-reply@domain.com without issues, however if I try send an email from no-reply@domain.com to info@domain.com, I receive the following error:

5.1.1 : Recipient address rejected: User unknown in virtual mailbox table. Please check the message recipient info@domain.com and try again.

What can I do about this? I have tried creating a info@domain.com user on the iRedMail server, however emails sent from no-reply@domain.com go to the inbox on the iRedMail server rather than the intended Namecheap inbox.

This is an issue primarily because the contact form on the site will send enquiries to info@domain.com.

  • I think you want a transport – sebix Nov 1 '14 at 21:54
  • I'm not familiar with postfix transports (I haven't configured iRedMail components that much beyond the default configuration), but I'll have a look at the documentation and see if they do what I need. – Torvero Nov 1 '14 at 22:11

The error message that you are receiving is coming from your internal iRedMail mail server and is not a response from the Namecheap SMTP server. Since you configured iRedMail with the Domain "domain.com" it does not even attempt to send mail outside of its own mail server for the email domain that it believes it is hosting.

Configure the Wordpress server to send email through Namecheap's SMTP server rather than the localhost iRedMail server.

| improve this answer | |
  • As he uses Wordpress, this is not as easy as it might appear. It does not support SMTP, only local mail delivery via PHP's-mail functions AFAIK. – sebix Nov 1 '14 at 21:57
  • Just a plugin away: wordpress.org/plugins/webriti-smtp-mail – Kevin Hayashi Nov 1 '14 at 21:58
  • Thanks for your reply, however I am using the iRedMail server for no-reply emails because I have an existing iRedMail server and don't want to purchase another mailbox with Namecheap just for no-reply emails. I'm using an SMTP plugin to send emails from the no-reply address, and the iRedMail installation is on a separate server from the website. I should have explained the setup better. – Torvero Nov 1 '14 at 22:03
  • 1
    If that is the case, then setup a Mandrill account to send email out (Free account for up to 12k emails a month) and you can setup DKIM using their service. Use this Wordpress plugin wordpress.org/plugins/wpmandrill to send mail through that service. You will still need to update the public DNS server to setup your SPF and DKIM records. – Kevin Hayashi Nov 1 '14 at 23:42
  • 1
    I use Mandrill myself and it works perfect. I cant believe that the service is free. Just be sure to validate the domain and setup DKIM and SPF records properly, otherwise Mandrill will deliver mail "On Behalf Of" the sending domain. – Kevin Hayashi Nov 1 '14 at 23:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.