I have a Debian Jessie (Version 8.1) server that serves multiple domain names. Each has their own folder configured under
/var/www/. Each domain name has a unique conf (
example.com.conf) file under
/etc/apache2/sites-enabled which is linked to a matching conf file under
conf file has:
<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/example_com_dir ServerName example.com ServerAlias *.example.com </VirtualHost>
I wanted to be able to accept all emails sent to each of the domains (any email sent to any firstname.lastname@example.org) and forward it to my Gmail. I successfully installed EXIM4 on it, and configured using
dpkg-reconfigure exim4-config as follows:
mail sent by smarthost; no local mail System mail name: myDomainName.TLD IP-addresses to listen on for incoming SMTP connections: 127.0.0.1 ; ::1 Other destinations for which mail is accepted: <BLANK> Visible domain name for local users: <BLANK> IP address or host name of the outgoing smarthost: smtp.gmail.com::587 Keep number of DNS-queries minimal (Dial-on-Demand)? No Split configuration into small files? No Root and postmaster mail recipient: <BLANK>
Then I completed all the other steps in this tutorial: https://www.vultr.com/docs/setup-exim-to-send-email-using-gmail-in-debian.
/etc/hosts I have:
127.0.0.1 localhost 127.0.1.1 install.install install # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters
/etc/hostname I have one line:
/etc/email-addresses I have:
root: myEmailAddress@gmail.com info: myEmailAddress@gmail.com *: myEmailAddress@gmail.com
When I run
echo 'Test Message.' | mail -s 'Test Message' email@example.com I do get an email in my Gmail. Also, if a run any script from
cron.d and it outputs any prints, I do get those as email notifications. So I know outgoing emails work. But when I send an email from
firstname.lastname@example.org I do not get any notification in
I want to be able to get all incoming emails and forward them to somewhere else. For example, I want to send from
email@example.com to my domain
firstname.lastname@example.org and have the server send it to
email@example.com. What do I have to configure in order to do so? How can that be configured for a server serving multiple domains?
Question #2: I know it might be opinion based, but what are some of the free, user friendly, with web GUI access email servers that I can configure on Debian Jessie (8.1)?