Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| email:forward [2026/04/14 07:30] – willy | email:forward [2026/04/14 07:37] (current) – willy | ||
|---|---|---|---|
| Line 55: | Line 55: | ||
| ===== Usage ===== | ===== Usage ===== | ||
| - | Try it from the command line: | + | In order for your root (or any user) emails to be sent to a specific address (example, myself@mydomain.com) you need to create a **~/ |
| + | <file - .forward> | ||
| + | myself@mydomain.com | ||
| + | </ | ||
| + | |||
| + | Now, try it from the command line: | ||
| <code bash> | <code bash> | ||
| (echo " | (echo " | ||
| </ | </ | ||
| + | |||
| + | Now test that the forward setting works as well: | ||
| + | <code bash> | ||
| + | echo "This is a test email from root" | mail -s "Test Subject" | ||
| + | </ | ||
| + | |||
| + | you should receive both emails at myself@mydomain.com, | ||