Before anyone asks, yes, I've read the other 50 threads about this, but none have worked. (And my reputation is low enough that I can't seem to comment on existing threads, hence having to restart this post again.)
I've sucessfully set up mdadm forwarding to firstname.lastname@example.org (hosted by Google) using exim4, but any emails sent to root refuse to route correctly. All end up being sent straight out to email@example.com, which blows up, as it does not currently exist. I've run newalises, restarted exim4, etc, and no joy. I know this has to be simple, but I am just not quite understanding what the problem is.
Couple quick notes before the config files appear:
- rDNS is not set up, as this is a random server at home. (MX record for the domain points to gmail, as gmail is handling the actual domain email hosting.)
- This thread seems to be close to correct, but my server's hostname is not of the format asdf.example.org, so I'm not quite sure how to translate it. (Various attempts haven't quite worked.)
root@zetaServer:~# hostname zetaServer
Contents of /etc/aliases:
postmaster: root root: firstname.lastname@example.org, /root/mailbox
Contents of /root/.forward:
Contents of /etc/exim4/update-exim4.conf.conf:
dc_eximconfig_configtype='smarthost' dc_other_hostnames='' dc_local_interfaces='127.0.0.1 ; ::1' dc_readhost='' dc_relay_domains='' dc_minimaldns='false' dc_relay_nets='' dc_smarthost='smtp.gmail.com::587' CFILEMODE='644' dc_use_split_config='false' dc_hide_mailname='false' dc_mailname_in_oh='true' dc_localdelivery='mail_spool'
Contents of /var/log/exim4/mainlog after sending a test email:
root@zetaServer:~# echo test | mail -s "test message" root root@zetaServer:~# tail /var/log/exim4/mainlog -n 3 2016-11-24 20:55:29 1cA7bl-0006Xf-K0 <= email@example.com U=root P=local S=482 2016-11-24 20:55:30 1cA7bl-0006Xf-K0 => firstname.lastname@example.org R=smarthost T=remote_smtp_smarthost H=gmail-smtp-msa.l.google.com [18.104.22.168] X=TLS1.2:RSA_AES_128_CBC_SHA1:128 DN="C=US,ST=California,L=Mountain View,O=Google Inc,CN=smtp.gmail.com" A=gmail_login C="250 2.0.0 OK 1480046130 c15sm63433639pfd.36 - gsmtp" 2016-11-24 20:55:30 1cA7bl-0006Xf-K0 Completed
Delivery to the following recipient failed permanently: email@example.com
I know I have to be close... Just need a little help.