Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #157625

Re: Redirecing root emails to a gmail account

From Linux 4 Bene <linux4bene@telenet.be>
Newsgroups linux.debian.user
Subject Re: Redirecing root emails to a gmail account
Date 2015-09-09 15:10 +0200
Message-ID <q6Nip-3WS-9@gated-at.bofh.it> (permalink)
References <q6Nip-3WS-11@gated-at.bofh.it> <q6lcu-5wa-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Op Tue, 08 Sep 2015 08:03:01 +0100, schreef James Allsopp:

> Hello,
> I want to have the root e-mails sent to my gmail account if possible. I
> can send email here via commandline
> 
> echo "This is a test." | mail -s Test <external addess>
> 
> but despite editing /etc/aliases so that root points to the external
> address I can't get this to work.
> 
> echo "This is a test.(root)" | mail -sv Testing root
> 
> adding a verbose to the mail command doesn't give any more details.
> I tried running newaliases, but that didn't make any difference.
> 
> Any help would be greatly appreciated.

I did that once on a setup. First you want to make sure you can mail to an
external address. You have this already covered.
What I did next was a .forward file to the system users home directory.
Content of the file was the external email address.

This worked in my case.

Cheers,
Bene

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Redirecing root emails to a gmail account James Allsopp <jamesaallsopp@googlemail.com> - 2015-09-08 09:10 +0200
  Re: Redirecing root emails to a gmail account Peter Ludikovsky <peter@ludikovsky.name> - 2015-09-08 15:30 +0200
  Re: Redirecing root emails to a gmail account Linux 4 Bene <linux4bene@telenet.be> - 2015-09-09 15:10 +0200

csiph-web