new email address not forwarding

December 7, 2014 980 views

I've just moved a new domain (newboston.net) over to Digital Ocean, creating the A records and then updating the registrar (godaddy.com) of the change. After a few minutes, nslookup and dig confirm that the change has propagated. Checking the apache logs, I've also confirmed that web pages are now being served from Digital Ocean. So far so good.

Now to forward email sent to a few newboston.net addresses. This is currently handled by my current ISP, but I'd like to do this through DigitalOcean. I added a new A record for mail, as well as an MX record, and then updated /etc/postfix/main.cf to include the new domain under virtualaliasdomains, and a pair of new email aliases in /etc/postfix/virtual. I ran "newaliases", reloaded and restarted postfix, but I'm still getting an error when sending an email to "paul@newboston.net":

Delivery to the following recipient failed permanently:

paul@newboston.net

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain newboston.net by mail.newboston.net. [162.243.90.225].

The error that the other server returned was:
550 5.1.1 paul@newboston.net: Recipient address rejected: User unknown in virtual alias table

Is there something wrong with the way I've set up the alias?

Here is the contents of /etc/postfix/virtual. I can confirm that paul@extraspecialbitter.com is forwarding correctly.

root@pescadero:/etc/postfix# cat virtual
paul@extraspecialbitter.com pauldavidmena@gmail.com
paul@bostonhaikusociety.org pauldavidmena@gmail.com
paul@newboston.net pauldavidmena@gmail.com
pdm@newboston.net pauldavidmena@gmail.com
info@bostonhaikusociety.org jfziemba@gmail.com
mmm@newboston.net marymelodeemena@gmail.com

1 Answer

This issue is resolved. I must have missed the step to run the following two steps in this order, after which things began to work as expected.

postmap /etc/postfix/virtual
postfix reload

Have another answer? Share your knowledge.