438ec2e62ad2670092963d259e3e7dac30154d1d
By:
Jasonrj

How should I go about setting up wildcard aliases *@mydomains.com to forward to me@gmail.com?

February 8, 2015 1.2k views

I don't care to have inboxes or the ability to send "from" my domains. I do however want the server to be able to send emails such as when Cron runs and Drupal sends a notice of security updates.

As for my email, all I want is for *@mydomains.com to forward to me@gmail.com and I will read and respond from me@gmail.com.

I'm very new to VPS, what should I be looking at to make this happen?

1 Answer

You can configure cron to send emails/notifications to your @gmail.com email address instead of the system's root user. Run crontab -e and add the following line before any cronjobs:

MAILTO="you@gmail.com"

As for Drupal, browse to Administration > Reports > Available Updates and enter your email address there.

You might have to install an MTA (mail transfer agent) on your droplet in order to be able to send emails, see How To Install and Configure Postfix as a Send-Only SMTP Server on Ubuntu 14.04.

Postfix is an MTA (Mail Transfer Agent), an application used to send and receive email. In this tutorial, we will install and configure Postfix so that it can be used to send emails by local applications only.
Have another answer? Share your knowledge.