Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #157541 > unrolled thread
| Started by | James Allsopp <jamesaallsopp@googlemail.com> |
|---|---|
| First post | 2015-09-08 09:10 +0200 |
| Last post | 2015-09-09 15:10 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.debian.user
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
| From | James Allsopp <jamesaallsopp@googlemail.com> |
|---|---|
| Date | 2015-09-08 09:10 +0200 |
| Subject | Redirecing root emails to a gmail account |
| Message-ID | <q6lcu-5wa-21@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
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. James
[toc] | [next] | [standalone]
| From | Peter Ludikovsky <peter@ludikovsky.name> |
|---|---|
| Date | 2015-09-08 15:30 +0200 |
| Message-ID | <q6r8e-5u9-17@gated-at.bofh.it> |
| In reply to | #157541 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, First of all, use -v -s instead of -sv, as the latter says to set the subject to 'v', and adds an additional recipient Testing. Other than that, can you post your /etc/postfix/main.cf, and/or the relevant parts from /var/log/mail.log? Regards, /peter Am 08.09.2015 um 09:03 schrieb 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. > > James > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJV7t5/AAoJEM+6Ng5pbtyZsBQQAJuXnS0qZ5qonTpEiXvAynFx 5ierTpmuLiIez2mlfc52bz0gmQWKBbkPcQBFCuOehkAYB3+56HT4HyIjw2ID/luF eFudNhTSUPd83e5SSEgry1BgpJZltJ6dW65tTrqwJQLdk2Rie0dDwVXSmrhmWXj/ RUUQVXGxEiS8gO4vpmoyZ3INXKuqwh9kn+mGIdk0zTnq5e6GLVtMP3gpD3WHU5JV QFRd0y4cFbYTt1GDuT5BpeiBoQxXZv3jZXL9/Hh+ll6DLAhBpnG6GEIn9uobX8Wv wNoXYyfOefLIDOC7IV2jbHZ2rteA+q8rwQcWq0W67t7Zg46bO/hsNxXpOVUhdGUD 9UOVW3Y28UiW1VplT9imJaI+DWl6WUN233QgxqUB0eorvQR5nK+pOSPvUYb0/IyO 6TSMB0xGmi4MSVm01dU5CipJkQHWVU0XXLOlgAX7ceGnAvNiOSP1Ubm/ldiR5PgD caGq8EXHStQlngwV74lorKS04KfIG8AcRthmjgRT7Bww5H+Z1mWWBGIx8aNWlEDL nuSD43HeKRAb8IHCvtQuWnvygxElp9ZX4i1JYW4yg8hg/qBg9hWoevrJbmh4r/Uw JC8iFmhx9398HxCJ0bMW5Hm0U1l/Up9juZks/OyWDNOvPd8Xry6QrOTRrZ4pBffi lFF9IDxtZZ+3VmsN6K70 =SLx9 -----END PGP SIGNATURE-----
[toc] | [prev] | [next] | [standalone]
| From | Linux 4 Bene <linux4bene@telenet.be> |
|---|---|
| Date | 2015-09-09 15:10 +0200 |
| Message-ID | <q6Nip-3WS-9@gated-at.bofh.it> |
| In reply to | #157541 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web