I'm trying to configure exim4 to send all e-mail to my Gmail account (including e-mails to root).
It's almost working, but my Gmail address is in the BCC field of the TO field.
Here is a command I use to send a test message:
echo 'Just testing' | mail root -s 'Testing e-mail'
...and here is the result from Gmail:
Bcc: jsmith@gmail.com
Return-Path: <jsmith@gmail.com>
From: John Smith <jsmith@gmail.com>
Subject: Testing e-mail
To: <root@debian.home.myserver.net>
Date: Tue, 12 Jun 2018 11:00:55 -0400
Just testing
Here is my /etc/aliases snippet:
# /etc/aliases
root: jsmith@gmail.com
What can I be doing wrong? I'm not sure why exim4 is reading the aliases file and using that as the BCC field and not the TO field?