2

I've configured a new WordPress website to send emails from [email protected] for things like user registrations, password resets and newsletters.

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

[email protected] uses Namecheap's private email hosting, while [email protected] uses my own iRedMail mail server. I am able to receive emails at [email protected] and send from [email protected] without issues, however if I try send an email from [email protected] to [email protected], I receive the following error:

5.1.1 : Recipient address rejected: User unknown in virtual mailbox table. Please check the message recipient [email protected] and try again.

What can I do about this? I have tried creating a [email protected] user on the iRedMail server, however emails sent from [email protected] 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 [email protected].

2
  • I think you want a transport
    – sebix
    Nov 1, 2014 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, 2014 at 22:11

1 Answer 1

3

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.

12
  • 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, 2014 at 21:57
  • Just a plugin away: wordpress.org/plugins/webriti-smtp-mail Nov 1, 2014 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, 2014 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. Nov 1, 2014 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. Nov 1, 2014 at 23:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .